Click here to Skip to main content
15,889,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: help me check my executescaler Pin
Venkatesh Mookkan3-Apr-07 21:34
Venkatesh Mookkan3-Apr-07 21:34 
GeneralRe: help me check my executescaler Pin
neodeaths3-Apr-07 21:43
neodeaths3-Apr-07 21:43 
GeneralRe: help me check my executescaler Pin
Colin Angus Mackay3-Apr-07 21:14
Colin Angus Mackay3-Apr-07 21:14 
AnswerRe: help me check my executescaler Pin
meghak3-Apr-07 21:47
meghak3-Apr-07 21:47 
QuestionAccessing IIS server from other computers.. Pin
MinhajuddinK3-Apr-07 16:28
MinhajuddinK3-Apr-07 16:28 
AnswerRe: Accessing IIS server from other computers.. Pin
N a v a n e e t h3-Apr-07 17:11
N a v a n e e t h3-Apr-07 17:11 
AnswerRe: Accessing IIS server from other computers.. Pin
Venkatesh Mookkan3-Apr-07 18:56
Venkatesh Mookkan3-Apr-07 18:56 
QuestionRetrieving ViewState value across Page events Pin
tjkota3-Apr-07 13:43
tjkota3-Apr-07 13:43 
Hello, I am trying to enable/disable a textbox prior to the page rendering based on its value. To be able to access the textbox value I had to implement this in Page_LoadComplete event of the page. After the enable/disable logic in Page_LoadComplete I obtain a boolean value that I save to ViewState and access it from Page.IsPostBack( ) method of Page_Load. I tried using ViewState to save the value as string and retrieve it in Page.IsPostBack( ) method but I am getting a NullReferenceException meaning the value of the ViewState variable is null. Why is the state not saving in ViewState variable? Here is my Page_LoadComplete method:

public void Page_LoadComplete(object sender, System.EventArgs e)
{
//Here I obtain value of textbox and based on it's value enable or disable the textbox
//Obtain a boolean value that I need to pass to Page.IsPostBack( ) method of Page_Load
ViewState["istempVar"] = aboolValue;
}

I am trying to access this ViewState variable in:

public void Page_Load(object sender, System.EventArgs e)
{
...
if (Page.IsPostBack )
{
// obtain ViewState["istempVar"]
}

Any help is appreciated.

Confused | :confused: Thanks.


AnswerRe: Retrieving ViewState value across Page events Pin
N a v a n e e t h3-Apr-07 17:20
N a v a n e e t h3-Apr-07 17:20 
QuestionAssembly problem Pin
DanB19833-Apr-07 10:21
DanB19833-Apr-07 10:21 
Questionmanage session Pin
ASPDevelopper12348753-Apr-07 7:52
ASPDevelopper12348753-Apr-07 7:52 
AnswerRe: manage session Pin
ToddHileHoffer3-Apr-07 8:01
ToddHileHoffer3-Apr-07 8:01 
GeneralRe: manage session Pin
ASPDevelopper12348753-Apr-07 8:27
ASPDevelopper12348753-Apr-07 8:27 
QuestionEdit <head> in page with code behind file Pin
Alice@mywonderland3-Apr-07 7:08
Alice@mywonderland3-Apr-07 7:08 
AnswerRe: Edit <head> in page with code behind file Pin
kubben3-Apr-07 7:43
kubben3-Apr-07 7:43 
AnswerRe: Edit <head> in page with code behind file - Thanks Pin
Alice@mywonderland3-Apr-07 22:52
Alice@mywonderland3-Apr-07 22:52 
QuestionASP.Net from Scratch Pin
xbiplav3-Apr-07 6:25
xbiplav3-Apr-07 6:25 
AnswerRe: ASP.Net from Scratch Pin
MinhajuddinK3-Apr-07 7:10
MinhajuddinK3-Apr-07 7:10 
QuestionPage-wide state with Master pages? Pin
Tom Welch3-Apr-07 6:11
Tom Welch3-Apr-07 6:11 
AnswerRe: Page-wide state with Master pages? Pin
ToddHileHoffer3-Apr-07 7:58
ToddHileHoffer3-Apr-07 7:58 
GeneralRe: Page-wide state with Master pages? Pin
Tom Welch3-Apr-07 11:05
Tom Welch3-Apr-07 11:05 
Questionprinting a code behind textbox text value Pin
indian1433-Apr-07 5:53
indian1433-Apr-07 5:53 
QuestionPLease help getting error as The process cannot access the file 'D:\Inventracksys\Inventorytracking Vendorwisereport_1.emf' because it is being used by another process Pin
mohd imran abdul aziz3-Apr-07 4:33
mohd imran abdul aziz3-Apr-07 4:33 
Questiondate range search Pin
Kunal P3-Apr-07 4:24
Kunal P3-Apr-07 4:24 
QuestionRun time access Pin
viveknair203-Apr-07 4:02
viveknair203-Apr-07 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.