About Bug For Code snippets

Posted by Jayakumars under DotNetFunda.Com on 9/18/2013 | Points: 10 | Views : 974 | Status : [Member] [MVP] | Replies : 4
hi

i post like this
DropDownList1.Items.Add(DrpList.Items[i].Text);

but here [i] did not updated why?

my code this url
http://www.dotnetfunda.com/codes/code5451-how-to-copy-the-data-in-textboxes.aspx

Mark as Answer if its helpful to you


Responses

Posted by: Jayakumars on: 9/18/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

check this image i canot post code snippets
 Download source file

Mark as Answer if its helpful to you

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 9/18/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Jayakumar,

Please modifly you code as below:-

protected void Bt_Submit_Click(object sender, EventArgs e)

{
Txt2.Text = Txt1.Text;
foreach (ListItem li in DrpList.Items)
{
DropDownList1.Items.Add(li);
}
}


Happy Coding

If it helps you or directs U towards the solution, MARK IT AS ANSWER

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/18/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Allemahesh

i did not ask my code issue

i asked my code i put square brackets arrays but here did not allow thats y i post
not my code mistake

Mark as Answer if its helpful to you

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 9/18/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Jayakumar,

I have not understood you replay.
Can you ex-plane clearly?

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response