'filt.dynamic' does not contain a definition for 'name2' and no extension method 'name2'
Hi I got this error in c#..since am using the html controls and their 开发者_如何学Goid is name 2 it is not recognized in c#..how can i solve this?
string a=project.value; string b=name2.value;
i used this in c# to store into the database.name2 is the id of textbox created using html..
"id of textbox created using html"
I am guessing you've missed out the runat="server"
from your controls definition.
That is, if it's even an ASP .Net control. Are you defining it as an HTML textbox, or an ASP .net textbox?
Should be: <asp:TextBox runat="server" ID="name2" />
, or similar.
精彩评论