-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: niyati
Message 1 in Discussion

Hi guys,

I have just started learning asp.net from the book "Programming Asp.net" book O'Reilly.
And below is the example mentioned in that book.
I couldn't get where I am wrong.
Can anybody help me please.....:)


<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" 
Inherits="csHTMLServerControls2.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
        <HEAD>
                
                <title>WebForm1</title>
                <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
                <meta name="CODE_LANGUAGE" Content="C#">
                <meta name="vs_defaultClientScript" content="JavaScript">
                <meta name="vs_targetSchema" 
content="http://schemas.microsoft.com/intellisense/ie5";>
         runat="server">
                void Page_Load(Object Source,EventArgs E)
                {
                        string strHtml="";
                        strHtml+=txtName.Value+"<br/>";
                        strHtml+=txtStreet.Value+"<br/>";
                        strHtml+=txtCity.Value+","+txtState.Value;
                        tdInnerHtml.InnerHtml=strHtml;
                        
                }
                        
                </script>
                </HEAD>
        <body>
                <form runat="server">
                        HTML Server Controls
                        InnerHTML
                        
                                
                                        Name:
                                        
                                                <input type="text" id="txtName" 
runat="server" />
                                        
                                
                                
                                        Street:
                                        
                                                <input type="text" id="txtStreet" 
runat="server" />
                                        
                                
                                
                                        City:
                                        
                                                <input type="text" id="txtCity" 
runat="server" />
                                        
                                
                                
                                        State:
                                        
                                                <input type="text" id="txtState" 
runat="server" />
                                        
                                
                                
                                        
                                        
                                
                        
                        <input type="submit" value="Do It!" />
                </form>
        </body>
</HTML>


Thanks in advance.....
Niyati

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to