Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 5th, 2005, 02:50 AM
Authorized User
Join Date: Dec 2004
Location: pune, maharashtra, India.
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to NitinJoshi
Default sub Routine problem

can any body solve this problem..the code is right or wrong..it is giving me an error


    <script language="vb" runat="server">
    sub Onclick(Sender As Object, E As EventArgs)
    dim abc as string
    abc="Hello Your Name is " & text1.text &
    end sub

    <body bgColor="#ffccff" MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
<asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 110px; POSITION: absolute; TOP: 258px" runat="server" Width="47px" Height="24px" Font-Bold="True">Password</asp:Label>

<asp:Label id="Label1" style="Z-INDEX: 102; LEFT: 119px; POSITION: absolute; TOP: 204px" runat="server" Width="47px" Height="24px" Font-Bold="True">Name</asp:Label>

<asp:TextBox id="TextBox2" runat="server"></asp:TextBox>

<asp:TextBox id="TextBox1" runat="server" TextMode="Password" style="Z-INDEX: 101; LEFT: 192px; POSITION: absolute; TOP: 257px"></asp:TextBox></P>

<asp:Button id="Button1" runat="server" Text="Submmit" OnClick="Onclick" style="Z-INDEX: 104; LEFT: 227px; POSITION: absolute; TOP: 309px"></asp:Button>

Reply With Quote
  #2 (permalink)  
Old January 5th, 2005, 04:10 AM
Friend of Wrox
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi

--- ' abc="Hello Your Name is " & text1.text & '----
This line is wrong..
Line should be abc="Hello your name is " & TextBox1.Text
No & operator after the TextBox1.Text

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Routine Maintenance englere BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 10 May 2nd, 2009 04:25 AM
Change An Objects Properties Via Sub Routine Rood67 Access 6 October 12th, 2007 12:14 PM
Need exit routine in ASPX page pbyrum ASP.NET 2.0 Basics 11 November 13th, 2005 02:01 PM
File copy routine error! Janet C++ Programming 3 March 13th, 2004 02:41 PM

All times are GMT -4. The time now is 03:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.