C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » ASP.NET WebForms »

Array of Text Boxes


Posted Date: 29 Nov 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: SravyaMember Level: Gold    
Rating: 1 out of 5Points: 7




<script runat="Server" language="C#">
void Page_Load()
{
string[] strArrayDetails = new string[3];
int intLoop;

strArrayDetails[0] = text1.Text;
strArrayDetails[1] = text2.Text;
strArrayDetails[2] = text3.Text;

Message1.Text = strArrayDetails[0];
Message2.Text = strArrayDetails[1];
Message3.Text = strArrayDetails[2];

}
</script>

<html>
<head>
<title>Text Box Example</title>
</head>
<body>
<asp:label id="Message1" runat="server" />
<br />
<asp:label id="Message2" runat="server" />
<br />
<asp:label id="Message3" runat="server" />
<br />
<form runat="server">
Please enter your name:
<asp:textbox id="text1" runat="server" />
<br /><br />
Please enter your address:
<asp:textbox id="text2" runat="server" rows=5 textmode="multiline" />
<br /><br />
Please enter your chosen password:
<asp:textbox id="text3" runat="server" textmode="password" />
<br /><br />
<input type="Submit">
</form>
</body>
</html>



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: calculate tax
Previous Resource: Demo for functions
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use