PC Review


Reply
Thread Tools Rate Thread

displaying session value in formview?

 
 
xbound
Guest
Posts: n/a
 
      19th May 2010
I have a session object (I.e. Session("message")) passed on from the first
web page to the second web page. In the second page I have a formview
object. For formatting reason I would like to display the session value
WITHIN the formview. All other values in the formview are drawn from
database via a sql select statement.

So far it doesn't work. Is it possible?

 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      19th May 2010
xbound wrote:
> I have a session object (I.e. Session("message")) passed on from the
> first web page to the second web page. In the second page I have a
> formview object. For formatting reason I would like to display the
> session value WITHIN the formview. All other values in the formview
> are drawn from database via a sql select statement.
>
> So far it doesn't work. Is it possible?


ASP.NET developers use session variables all the time to populate form
controls, even passing the variable from one form to another form in a
session.

Maybe, the session variable is empty.string when you're trying to use it
to populate a control.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FormView Insert Session value d-42 Microsoft ASP .NET 1 17th Apr 2008 01:37 AM
FormView not displaying the correct templates Nathan Sokalski Microsoft ADO .NET 0 26th Aug 2007 10:26 PM
FormView not displaying the correct templates Nathan Sokalski Microsoft ASP .NET 0 26th Aug 2007 10:26 PM
Formview edit displaying the same record even when I change the parameter Chris Microsoft ASP .NET 1 7th May 2007 07:18 PM
session, objectdatasource and formview issue andy Microsoft C# .NET 0 23rd Jan 2007 11:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:51 PM.