Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir.
I want to enter some data in textbox, this textbox is in gridview footertemplate. When ever i click the submit button. this data should be display in item template textbox. I write below code but this is showing some error. how to do this.

C#
gvCustomer.FindControl("txtCustomerID") = gvCustomer.FooterRow.FindControl("txtCustomerID");

any body please help me.

thanking you.
Posted
Updated 3-Mar-11 2:29am
v2
Comments
Richard MacCutchan 3-Mar-11 8:33am    
but this is showing some error
Do you expect people to guess what the error is?
Piccadilly Yum Yum 3-Mar-11 9:17am    
You cannot assign an R-value ...

Definition: An rvalue is a way of describing the term on the right hand side of an assignment.

In this declaration and initialization of the int variable a, the rvalue is 9*7+c.


int a = 9*7+c;
Albin Abel 3-Mar-11 10:05am    
Hi instead of assign one control to another, assign its text property.

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