var ea = "<%= Request.Form["__EVENTARGUMENT"] %>";
if (ea != "HdnFldSet")
var ttt = "val1";
var oRouteType = document.getElementById("<%= HiddenField6.ClientID %>");
oRouteType.Value = ttt;
__doPostBack("HiddenField6",'HdnFldSet'); //i even tried "<%= HiddenField6.ClientID %>" in place of "HiddenField6" here
<asp:HiddenField ID="HiddenField6" runat="server" OnValueChanged="HiddenField6_ValueChanged" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></p>
Then on code behind page:
protected void HiddenField6_ValueChanged(object sender, EventArgs e)
Label1.Text = "someText...never shows for some reason.";
By the way I have page EnableEventValidation set to false. I open this page as a popup from another page.
Please tell me if there is anything wrong with this code....the valueChanged event never fires and I can't understand why.