开发者

Get HTML Element Data with PostBack on an ASP.NET Page

开发者 https://www.devze.com 2022-12-25 02:54 出处:网络
One site would take data from the site var. C# PostBack method.But when the page\'s source code as submitted does not renewed开发者_C百科. Object Can not Be Coming Referanced error. So I do post but t

One site would take data from the site var. C# PostBack method.But when the page's source code as submitted does not renewed开发者_C百科. Object Can not Be Coming Referanced error. So I do post but the page refresh itself. This post has been displayed next to new data coming from the user how can I get?


I can't follow your question, but your title makes it sound like you want to get the data from an HTML form element on a post back in C#. To do that, all you have to say is

Request["myElement"]

if you have an HTML element defined as

<input name="myElement" ...
0

精彩评论

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