I've got a WebControl that I want to dynamically add a HiddenField from.
I've tried the following example: Click here, but that doesn't work due to the fact this.Page.Form is null in the Page Init event.
I've tried the following, but the value is never maintained:
HiddenField hd_IsDirty = new HiddenField();
protected override void O...
Hi All,
I have a page in which I want to maintain the value of object between post backs.
I am thinking of two ways to maintain the value of objects
Store the value in View Sate
Store the value in hidden field
which is best option to use based on performance
...
How can I clear the value of an asp:HiddenField control when the user hits the refresh button in the browser?
...
Hi,
I have a page that's derived from a master page. On this page, I have a hiddenfield ("hfUser"). How can I access this "hfUser" control and get/set its value using JQuery?
I've tried variants of this:
$(document).ready(function() {
var test = $("#hfUser").val();
alert(test);
});
but test = undefined. I'm guessing I've g...
I have a ascx page where I am using a hidden field to store the value of a the drop down box as it is generated using a google address finder. My problem is that when I try to store the value directly in the hidden field :
hfDdlVerifyID.Value = ddlVerifySS.SelectedValue;
in the event of a button click, the value is stored but on post...
Hi,
Is is possible to say something like
"If you have those situations then SessionState is a must to use for storing your values between postbacks."
Can you list me the basic reasons which forces an asp.net developer to switch SessionState from ViewState or HiddenFields or querystrings?
thanks
...
I have a checkbox that allows users to keep the input in a detailsview to help if they are inputting many similair items. I'd like one field to increment, but it won't take. I've even tried putting it in a hidden field.
Incrementing field:
Protected Sub DetailsView3_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebContr...