Click here to Skip to main content
15,885,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have textbox in my web form,on button click there is a for loop and want to display the value each time it is hitted in for loop like
C#
for(int i=1; i <=10; i++)
{
tbcount.text = i.tostring();
}

how it is possible,
Posted
Comments
[no name] 6-Jan-16 3:50am    
Do you have only one textbox tbcount and you are setting text value within loop. It will display 11 as value to textbox. Please share your exact requirement.
Sajid227 6-Jan-16 4:15am    
yes please,in fact i am reading a pdf file using itextsharp,and file uploadcontrol,because it is time consuming ,so i use a two textbox one show total pages of file selected,and show remaing pages of that file,i did it in window form just updating that textbox,i want to do this in web form,
Suvabrata Roy 6-Jan-16 4:05am    
You try it in web from then you required javascript? should I explain it more...
Sajid227 6-Jan-16 4:15am    
yes please,in fact i am reading a pdf file using itextsharp,and file uploadcontrol,because it is time consuming ,so i use a two textbox one show total pages of file selected,and show remaing pages of that file,i did it in window form just updating that textbox,i want to do this in web form,
Suvabrata Roy 6-Jan-16 4:26am    
Best way to do it is : SignalR.
http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900