473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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?

Feb 28 '06 #1
4 883
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

"HockeyFan" <Ho*******@discussions.microsoft.com> schreef in bericht
news:5C**********************************@microsof t.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?

Feb 28 '06 #2
HockeyFan wrote:
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.


As it's an <input>, it must be on a <form>. Do you want the form's action to
be processed, or are you trying to do
<a href="somewhere.html"><img src="../images/btnShortcutSystemOn.gif"
border="0"></a>

?

Andrew
Feb 28 '06 #3
"HockeyFan" <Ho*******@discussions.microsoft.com> schrieb
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?

I know VB.Net pretty good, but I know nothing about ASP.Net. Maybe you
should post to one of the ASP.Net groups:

microsoft.public.dotnet.framework.aspnet[.*]
Armin

Mar 3 '06 #4
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
Mar 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave Patton | last post by:
Using my About page as an example: http://members.shaw.ca/davepatton/about.html What is the best/proper way to markup a page such as this that has "the main body" and "a navigation menu"? It...
0
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
4
by: Sandy.Pittendrigh | last post by:
I don't want to get into a frames discussion here. We all know they have numerous drawbacks, especially with search engine visibility. (Google, ironically, uses framesets for displaying individual...
28
by: laredotornado | last post by:
Hi, Surprisingly, I can't get the drop down menus to work on PC IE 6. If you roll over "PRODUCTS", normally a drop down menu appears (on Safari and Firefox), but on PC IE, nada. ...
3
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
10
by: EA | last post by:
I am sure I must be missing something about building navigation bars with CSS. Yes it is a very clever and efficient way to format navigation structures on simple one navigation level webs, i.e....
1
by: quartzy | last post by:
I have a strict doc type: However, I am still unsure about css. Problems I have now are to do with floating both navigation lists. I have used tables and divs, as layouts are just too difficult for...
0
by: emalcolm_FLA | last post by:
Hello and TIA for your consideration. I have created several db's for a non-profit and they want custom navigation buttons to display "You are on the first record, last record, etc". With this...
0
by: tom59593 | last post by:
Hi there. I have been attempting (for a few days on end, sadly) to get a navigation section of my new site to work. Granted, this is the first time I've ever written CSS...although I had PLENTY of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.