![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm not sure how I handle links in an ASP.Net file? |
#3
| |||
| |||
|
|
What is the web control used in asp.net for a link? A form web control in an ASP.Net page uses the following: asp:textbox ID="username" MaxLength="50" runat="server" TextMode="SingleLine" class="tbyellow" / I can then add the code behind logic in my class file to do what I need for the form web control object. For a link, the tag is: a href="somefile.aspx">Click Here</a What is the control for this tag in ASP.Net, so I can use code behind logic? Is it the same? Or, do I just add: asp:a href="somefile.aspx">Click Here</a I'm not sure how I handle links in an ASP.Net file? Thanks, -D- |
#4
| |||
| |||
|
|
Hi, it would be asp:Hyperlink id="Something" runat="server"></asp:hyperlink Then in your code behind you can set the properties you need, NavigateUrl (the page you want to go to), Text (the text to display) etc Jon "-D-" <noone (AT) nospam (DOT) com> wrote in message news:cm91e6$pni$1 (AT) forums (DOT) macromedia.com... What is the web control used in asp.net for a link? A form web control in an ASP.Net page uses the following: asp:textbox ID="username" MaxLength="50" runat="server" TextMode="SingleLine" class="tbyellow" / I can then add the code behind logic in my class file to do what I need for the form web control object. For a link, the tag is: a href="somefile.aspx">Click Here</a What is the control for this tag in ASP.Net, so I can use code behind logic? Is it the same? Or, do I just add: asp:a href="somefile.aspx">Click Here</a I'm not sure how I handle links in an ASP.Net file? Thanks, -D- |
#5
| |||
| |||
|
|
Would it be better or is it more common to not use the text for the link in the page...i.e. asp:Hyperlink id="Something" runat="server">Click Here</asp:hyperlink But rather, set the text for the link in the code behind...i.e. Text (the text to display) |
#6
| |||
| |||
|
|
Thnaks for the information. I appreciate the help. Would it be better or is it more common to not use the text for the link in the page...i.e. asp:Hyperlink id="Something" runat="server">Click Here</asp:hyperlink But rather, set the text for the link in the code behind...i.e. Text (the text to display) Thanks again for your help! -D- "Jon Spivey" <jons (AT) mvps (DOT) org> wrote in message news:cm92fj$qm5$1 (AT) forums (DOT) macromedia.com... Hi, it would be asp:Hyperlink id="Something" runat="server"></asp:hyperlink Then in your code behind you can set the properties you need, NavigateUrl (the page you want to go to), Text (the text to display) etc Jon "-D-" <noone (AT) nospam (DOT) com> wrote in message news:cm91e6$pni$1 (AT) forums (DOT) macromedia.com... What is the web control used in asp.net for a link? A form web control in an ASP.Net page uses the following: asp:textbox ID="username" MaxLength="50" runat="server" TextMode="SingleLine" class="tbyellow" / I can then add the code behind logic in my class file to do what I need for the form web control object. For a link, the tag is: a href="somefile.aspx">Click Here</a What is the control for this tag in ASP.Net, so I can use code behind logic? Is it the same? Or, do I just add: asp:a href="somefile.aspx">Click Here</a I'm not sure how I handle links in an ASP.Net file? Thanks, -D- |
![]() |
| Thread Tools | |
| Display Modes | |
| |