.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> JavaScript/VBScript >> Post New QuestionBookmark and Share Subscribe to Forum

how to acess the value of hidden field on reload

Posted By: jay     Posted Date: April 26, 2010    Points:2   Category :JavaScript/VBScript
HI I AM STORING ONE VALUE IN A HIDDEN FIELD ON RELOAD OF THAT PAGE I WANT TO ACCESS THAT VALUE HOW CAN I DO THAT...

i.e from my page1 to i am going to page2 and again coming back to page1 now i want to access the hidden value how?

Responses
Author: Venkat             
Posted Date: April 27, 2010     Points: 5   

Hi,

Use Viewstate to get the value form value. Or you can use Asp.net hidden field control

to use view state here is the code

ViewState["save"] = txtVal.Text;

//after postback when you want to get value

string getData = ViewState["save"].ToString();


Mark As Answer if this solve your problem
Warm Regards,
Venkat
Author: Lalij Mer             
Posted Date: April 28, 2010     Points: 5   

U can try this code sample


function showPopUp()
{
var hdnValue= document.getElementById('hdnHideUsers').value// Hidden Field vale
var formname="frmGuestUser.aspx?hdnvalue="+hdnValue; //Name of the Page & Query string value
uploadtqpwin=window.open(formname, "GuestUser","top=50px,left=50px,height=500px,width=800px,resizable=no,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
if(uploadtqpwin)
uploadtqpwin.focus();
}


Please Check my answer if you help....
Thank You...

Lalit.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend