![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Onclick
I am not used to programming in ASP.net, i am mainly a C# / Java person, can you explain to me this:
I have a label.. and I want to do something when it is clicked.... ie show another label... i tried this to no avail: <span><span style="color: activecaption" onclick="<%bestOffer_help.Visible=true;%>">what's this ?</span> <br /> but the label that i want to show was visible as soon as I loaded the page, even though I had visible set to false for it.... none the less... how can i click on a label or text and get it to do something when i click on it ps: im doing this in ASP.net with c# many thanks |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Feb 2008
Posts: 11
Rep Power: 0
![]() |
Re: Onclick
ASP.net IDE will add all the required code by itself isn't?
Just add a label and double click on it
__________________
Free Programming help http://www.itgalary.com Free Revenue Sharing http://blog.itgalary.com Online Site seeing http://www.itgalary.com/maps/ |
|
|
|
|
|
#3 |
|
Professional Programmer
|
Re: Onclick
How often do you see a site where you can just click " some text " and it does stuff ? Asp.Net is not WinForms, it still relies on the old html on the client side. If you want an onclick event , use an <asp:Button or <asp:LinkButton or <asp:HyperLink .
If you want to do it on the client, you can always use JavaScript. Do take a look at a tutorial on asp.net before asking questions like this.
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnClick HElP | paulchwd | ASP | 2 | Nov 15th, 2005 5:03 PM |