.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old December 22nd, 2000, 09:58 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Help needed for Button click in ASP.NET

<i><b>Originally posted by : Ram (golrm@hotmail.com)</b></i><br />I have following code, <br /><br />%@ Page Language="VB" clienttarget=downlevel %> <br /><script language="VB" runat="server"> <br />Sub LoginBtn_Click(sender As Object, e As EventArgs) <br />Label1.Text="Page is invalid" <br />End Sub <br /><form runat=server> <br />User-id: <input type="text" size="10" id="Userid" runat=server> <br /><input type="submit" name="Login" value="Login" OnServerClick="LoginBtn_Click" runat=server> <br /><asp:Label id=Label1 font-name="Verdana" font-size="10pt" runat="server">aaaaaaaaa</asp:Label> <br /></form> <br /><br />If I click Login button then under LoginBtn_Click should get execute then display "Page is invalid" in Label1. But <br />it is not working. <br /><br />Can anyone help one this? <br /><br />Thanks in advance <br /><br /><br />

Reply With Quote
  #2  
Old December 26th, 2000, 01:58 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Sachin D. (sdabke@vsnl.com)</b></i><br />How does your code compile??? In the code u have submitted, the script tag is not ended properly. Well the following worked for me:<br /><%@ Page Language="VB" clienttarget=downlevel %> <br /><script language="VB" runat="server"> <br />Sub LoginBtn_Click(sender As Object, e As EventArgs) <br />Label1.Text="Page is invalid" <br />End Sub <br /></script><br /><form runat=server> <br />User-id: <input type="text" size="10" id="Userid" runat=server> <br /><input type="submit" name="Login" value="Login" OnServerClick="LoginBtn_Click" runat=server> <br /><asp:Label id=Label1 font-name="Verdana" font-size="10pt" runat="server">aaaaaaaaa</asp:Label> <br /></form> <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Help needed for Button click in ASP.NET


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway