开发者

'filt.dynamic' does not contain a definition for 'name2' and no extension method 'name2'

开发者 https://www.devze.com 2023-03-02 16:23 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消