Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 5th, 2005, 02:50 AM
Authorized User
Join Date: Dec 2004
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>

Old January 5th, 2005, 04:10 AM
Friend of Wrox
Join Date: Oct 2003
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

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

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