I have pass new value from client to server, like this:
HiddenValue.value = "test";
<input id="HiddenValue" type="hidden" runat="server">
Then, I need to use this value on Code Behind, like this:
protected System.Web.UI.HtmlControls.HtmlInputHidden HiddenValue;
private void btnAdd_Click(object sender, System.EventArgs e)
clsArticle m_oArticle = new clsArticle();
m_oArticle.InsertArticle(HiddenValue.Value); // Not Working
Why after I have web-controls HiddenValue the Value is still null? Or,
Server-side did not recognize HiddenValue?
ps: What is relation between this control with AutoEventWireUp="true"?
You have to pass the new value from client to server separately, the Label
element won't do it for you. There is a number of ways for doing this, most
common one is via a hidden <input> element.
|All times are GMT. The time now is 07:01 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.