|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
navigation?I've got a newbie question. I'm new to ASP.Net and have a control that
someone else wrote that produces the following: <td style="white-space:nowrap;"><input type="image" name="ctl00$btnSystem" id="ctl00_btnSystem" src="../images/btnShortcutSystemOn.gif" style="border-width:0px;" /></td> If I want someone to be able to click on that image and take them to another page, how's the best way to do that? Redirection? How specifically. I'm new to .Net. I figure I'll have to write a handler that handles ctl00_btnSystem.click. Is this correct? And what do I put inside the handler to take the browser to the new page? Hockeyfan.
Are you using Visual Studio Net and code behind. Than in the clickevent of that image which you have to set Response.Redirect("~/default.aspx") Be aware that you better can use an image button for this. I hope this helps, Cor Show quoteHide quote "HockeyFan" <Hockey***@discussions.microsoft.com> schreef in bericht news:5CA1633D-35B4-4BA0-AE53-19AA0E6B610F@microsoft.com... > I've got a newbie question. I'm new to ASP.Net and have a control that > someone else wrote that produces the following: > > <td style="white-space:nowrap;"><input type="image" name="ctl00$btnSystem" > id="ctl00_btnSystem" src="../images/btnShortcutSystemOn.gif" > style="border-width:0px;" /></td> > > If I want someone to be able to click on that image and take them to > another > page, how's the best way to do that? Redirection? How specifically. I'm > new to .Net. > > I figure I'll have to write a handler that handles ctl00_btnSystem.click. > Is this correct? And what do I put inside the handler to take the browser > to > the new page? > HockeyFan wrote:
> I've got a newbie question. I'm new to ASP.Net and have a control As it's an <input>, it must be on a <form>. Do you want the form's action to > that someone else wrote that produces the following: > > <td style="white-space:nowrap;"><input type="image" > name="ctl00$btnSystem" id="ctl00_btnSystem" > src="../images/btnShortcutSystemOn.gif" style="border-width:0px;" > /></td> > > If I want someone to be able to click on that image and take them to > another page, how's the best way to do that? Redirection? How > specifically. I'm new to .Net. be processed, or are you trying to do <a href="somewhere.html"><img src="../images/btnShortcutSystemOn.gif" border="0"></a> ? Andrew
Show quote
Hide quote
"HockeyFan" <Hockey***@discussions.microsoft.com> schrieb I know VB.Net pretty good, but I know nothing about ASP.Net. Maybe you > I've got a newbie question. I'm new to ASP.Net and have a control > that someone else wrote that produces the following: > > <td style="white-space:nowrap;"><input type="image" > name="ctl00$btnSystem" id="ctl00_btnSystem" > src="../images/btnShortcutSystemOn.gif" > style="border-width:0px;" /></td> > > If I want someone to be able to click on that image and take them to > another page, how's the best way to do that? Redirection? How > specifically. I'm new to .Net. > > I figure I'll have to write a handler that handles > ctl00_btnSystem.click. Is this correct? And what do I put inside > the handler to take the browser to the new page? should post to one of the ASP.Net groups: microsoft.public.dotnet.framework.aspnet[.*] Armin Armin,
Why > microsoft.public.dotnet.framework.aspnet[.*] This can be done pretty good with VB.Net code, as it can be done by other > code as well. The solution given in the newsgroup ASPNET will most likely not be the same as in VB.Net Which depends if Visual Studio Net is used. Cor
View Source from WebBrowser (2005)
Please help with an 'impossible' error! Menory compaction datagrid and vertical gridline color Web service - business objects don't show up FTP with SSH Eventhandler FS: Visual Basic.NET VB.NET books for sale - CHEAP!!!!!! OnRenderMenuItemBackground question Exchange 2003 |
|||||||||||||||||||||||