ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 19th, 2002, 02:56 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
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

Reply With Quote
  #2  
Old October 19th, 2002, 05:22 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
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.

Reply With Quote
  #3  
Old October 19th, 2002, 04:14 PM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
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

Reply With Quote
  #4  
Old October 19th, 2002, 08:42 PM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
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...

Reply With Quote
  #5  
Old October 20th, 2002, 09:32 AM
Nauman Nauman is offline
Twenty Seven
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Multan, Pakistan
Posts: 103 Nauman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 33 m 2 sec
Reputation Power: 7
Send a message via ICQ to Nauman
Thanks

Hello...

Thanks James... I'll download these SP from Microsoft site. By the
way did u get the error?

Thanks...
Nauman Ahmed

Reply With Quote
  #6  
Old October 20th, 2002, 10:23 AM
James Yang James Yang is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Atlanta, Georgia
Posts: 284 James Yang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 45 sec
Reputation Power: 7
Send a message via ICQ to James Yang
nope..

but make sure you change that code u posted so that the form tag is out side the message label

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > ASP.NET Button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT