C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




To Rekha......


Posted Date: 02 Sep 2008      Total Responses: 1

Posted By: sathish       Member Level: Silver     Points: 1


Hi
Thanks for your replay,But in your code you use the count++,Where I havo to declare this....what is the purpose of this....Please tell where I initialize count...

use a placeholder control to do this.
and on the button click event. give this code.

TextBox txt = new TextBox();
int j = Convert.ToInt32(Button1.CommandArgument);//Here I am getting System.FormatException: Input string was not in a correct format.

for (int i = 0; i <= j ; i++)
{
txt.Text = Convert.ToString(i);
PlaceHolder1.Controls.Add(txt);
txt = new TextBox();
count++;
Button1.CommandArgument = Convert.ToString(count);
}
}




Responses

Author: Rekha    02 Sep 2008Member Level: GoldRating:     Points: 2
i have taken count as the global variable ..

code is added in the button event handler... so it works for me




Post Reply
You must Sign In to post a response.
Next : error in javascript
Previous : checkbox
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference call

Contact Us    Privacy Policy    Terms Of Use