Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: RE: Issues with ViewState


Message #1 by "Sampath, Ramanujam (Cognizant)" <SRamanuj@c...> on Mon, 2 Sep 2002 11:07:31 +0530
Well virgil...
	At times .Net works weired... and breaks our head.... for some
similar reasons it works fine in some pages but not in other pages.. but
......As far u have explained, every thing should work fine the same way as
other pages... but still pls tell me whether if u have added the dropdown
during run-time or during development time... In both the case.. check if u
have set the contrls viewstate propery to true.... and check while debugging
if the codes written inside the 'If not Me.IsPostBack Then..' is being
executed... always the best way to debug during such times is to run the
code line by line and having a 'watch' set for the controls property....

keep me posted if u still have issues...

==============================
S.Ramanujam
Programmer Analyst
Cognizant technology Solutions (p) Ltd. - CTS
38 & 39 Whites Road,
WCB - Whites Road Circular Building
Royapettah, Chennai - 600014
Ph : +xx xx xxx xxxx Extn 5113 [Off]
     : +xx xx xxx xxxx                 [Res]


-----Original Message-----
From: Virgil Carroll [mailto:vcarroll@i...]
Sent: Friday, August 30, 2002 8:13 PM
To: ASP+
Subject: [aspx] Issues with ViewState


Group,

First thank you to everyone who helped me with the issue of trying to find a
way to measure user bandwidth.  We ended up not having to do it, instead
going with a user selection dialog box (got to love those clients that
change their mind every 10 minutes :)).  

Now I have the weirdest problem.  On a site I am working on I have two drop
down menus for registration page and when the registration page is submitted
for some reason it is not holding the drop down list Selected Item state,
thus putting the "Select One" (first item) into the database.

I have the DropDownList populating via the Page_Load function, but I have it
covered in a "If Not IsPostBack" statement.  I have this on other pages on
other sites and it works fine, but on this page I cannot get the viewstate
to maintain for the dropdownlists.  Any ideas?

The only thing different I am doing from other similar pages is I am sending
the data into the database via a Stored Procedure, but I cannot think of how
that could cause an issue.

Any help is greatly appreciated.

Tx,
Virgil Carroll
President/CEO
IStream Interactive
2013 2nd Avenue North, Suite B-4
Anoka, MN 55303
(xxx) xxx-xxxx
vcarroll@i...
www.istreaminteractive.com


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---


  Return to Index