Click here to Skip to main content
15,893,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow can I correct my code? Pin
strawberrysh4-Sep-08 6:30
strawberrysh4-Sep-08 6:30 
AnswerRe: how can I correct my code? Pin
Blue_Boy4-Sep-08 10:24
Blue_Boy4-Sep-08 10:24 
GeneralRe: how can I correct my code? Pin
strawberrysh4-Sep-08 10:44
strawberrysh4-Sep-08 10:44 
GeneralRe: how can I correct my code? [modified] Pin
Blue_Boy4-Sep-08 13:41
Blue_Boy4-Sep-08 13:41 
GeneralRe: how can I correct my code? Pin
strawberrysh4-Sep-08 21:16
strawberrysh4-Sep-08 21:16 
GeneralRe: how can I correct my code? Pin
Blue_Boy4-Sep-08 21:26
Blue_Boy4-Sep-08 21:26 
GeneralRe: how can I correct my code? Pin
strawberrysh4-Sep-08 22:20
strawberrysh4-Sep-08 22:20 
GeneralRe: how can I correct my code? Pin
Blue_Boy4-Sep-08 22:30
Blue_Boy4-Sep-08 22:30 
I have make a sample based on your code:

<br />
        string[] values ={"zero", "one", "two", "three" ,"four"};<br />
        GridView1.DataSource = values;<br />
        GridView1.DataBind();<br />
        <br />
         /*TextBox1 is within ItemTemplate of Gridview1*/<br />
        //add values on textbox1<br />
        for (int i = 0; i <= GridView1.Rows.Count - 1; i++)<br />
        {<br />
            TextBox qty = (TextBox)GridView1.Rows[i].FindControl("Textbox1");<br />
            qty.Text = i.ToString();<br />
        }<br />
<br />
        string resultvalues = "";<br />
        //read values from textbox1<br />
        for (int i = 0; i <= GridView1.Rows.Count - 1; i++)<br />
        {<br />
            TextBox qty = (TextBox)GridView1.Rows[i].FindControl("Textbox1");<br />
            resultvalues += qty.Text + ";";<br />
        }


and result of variable resultvalues is:0;1;2;3;4;


I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.


Questionhow design without programming Pin
raquidd224-Sep-08 5:19
raquidd224-Sep-08 5:19 
AnswerRe: how design without programming Pin
raquidd224-Sep-08 11:49
raquidd224-Sep-08 11:49 
AnswerRe: how design without programming Pin
J4amieC4-Sep-08 22:22
J4amieC4-Sep-08 22:22 
Questioncalling a remote/localhost webservice from asp.net application Pin
Member 7816104-Sep-08 4:40
Member 7816104-Sep-08 4:40 
QuestionHow to restrict multiple logon to an application? Pin
surender9394-Sep-08 3:56
surender9394-Sep-08 3:56 
AnswerRe: How to restrict multiple logon to an application? Pin
John Ad4-Sep-08 4:18
John Ad4-Sep-08 4:18 
Questionhow to insert more than one value from checkboxlist in a form Pin
avineshkumar4-Sep-08 3:40
avineshkumar4-Sep-08 3:40 
QuestionHow can i include youtube videos in my web application Pin
reogeo20084-Sep-08 3:23
reogeo20084-Sep-08 3:23 
AnswerRe: How can i include youtube videos in my web application Pin
Manas Bhardwaj4-Sep-08 3:29
professionalManas Bhardwaj4-Sep-08 3:29 
Questionreply Pin
reminston4-Sep-08 3:07
reminston4-Sep-08 3:07 
JokeRe: reply Pin
Manas Bhardwaj4-Sep-08 3:20
professionalManas Bhardwaj4-Sep-08 3:20 
Questioni need of simple coding for asp.net using visual basic Pin
reminston4-Sep-08 3:05
reminston4-Sep-08 3:05 
AnswerRe: i need of simple coding for asp.net using visual basic Pin
Manas Bhardwaj4-Sep-08 3:22
professionalManas Bhardwaj4-Sep-08 3:22 
AnswerRe: i need of simple coding for asp.net using visual basic Pin
Kevin McFarlane4-Sep-08 3:46
Kevin McFarlane4-Sep-08 3:46 
AnswerRe: i need of simple coding for asp.net using visual basic Pin
eyeseetee4-Sep-08 3:50
eyeseetee4-Sep-08 3:50 
QuestionVisual Studio .NET Command Prompt ????????????? Pin
Karan_TN4-Sep-08 2:47
Karan_TN4-Sep-08 2:47 
AnswerRe: Visual Studio .NET Command Prompt ????????????? Pin
Deepak the Cool4-Sep-08 3:32
Deepak the Cool4-Sep-08 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.