|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP.NET Button
Hello...
Im designing a form in ASP.NET using VB.NET. I want to include a button server control here on the form so that when user click on that button a message display onclick event. I've done all but the problem is that when user clicks the button the back button of brower thats grayed out become active... i dont want this... Thanks... Nauman Ahmed |
|
#2
|
|||
|
|||
|
wow that's something i haven't seen b4..
could you post some screenshots? or some code?
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ Last edited by James Yang : October 19th, 2002 at 06:22 AM. |
|
#3
|
|||
|
|||
|
Really James...
Hello James...
Actually Im using a button in asp.net that works as submit button and uses postback. Here is example: <script runat="server"> sub Message_onClick 'any subroutine... Message.Text = "Thanks For Clicking this button" end sub </script> <html><body><form runat=server> <asp:button id="Thanks" Text="Thanks" runat="Server" onclick="Message_onClick"/> </form> <asp:label id="Message" runat="Server"/> </body> </html> here Code works fine but when i press the button the browser acts on postback and get to other page so that back button of browser enables... I've checked the all process quite closely what happand is: When I click on button the Message Displays but after this it get to the next page with browser back button hilited... Thanks... Nauman Ahmed |
|
#4
|
|||
|
|||
|
Nauman.. Ive tried that one my comp and its working fine!
Just one thing though, you need to have Message label inside the form tag. See if that works.. Maybe its a bug . There is a SP out for .NET so try installing that.. (there are 2) and soon there will be Ver 1.1 so... |
|
#5
|
|||
|
|||
|
Thanks
Hello...
Thanks James... I'll download these SP from Microsoft site. By the way did u get the error? Thanks... Nauman Ahmed |
|
#6
|
|||
|
|||
|
nope..
but make sure you change that code u posted so that the form tag is out side the message label |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > ASP.NET Button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|