Click here to Skip to main content
15,898,769 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 7:24
Leandrão3-Apr-08 7:24 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 3:02
Leandrão3-Apr-08 3:02 
GeneralRe: Losing Session in IIS Pin
N a v a n e e t h3-Apr-08 3:03
N a v a n e e t h3-Apr-08 3:03 
GeneralRe: Losing Session in IIS Pin
eyeseetee3-Apr-08 3:08
eyeseetee3-Apr-08 3:08 
GeneralRe: Losing Session in IIS Pin
N a v a n e e t h3-Apr-08 3:09
N a v a n e e t h3-Apr-08 3:09 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 3:43
Leandrão3-Apr-08 3:43 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 3:13
Leandrão3-Apr-08 3:13 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 3:31
Leandrão3-Apr-08 3:31 
Ok,
Let's go...

Code:
the first moment, this code is called in load method

****************************************
dim ds as dataset

ds = obj.list ' the method return a dataset of products

listbox1.DataSource = ds
listbox1.DataTextField = "Name"
listbox1.DataValueField = "ID"
listbox1.DataBind()

Session("ds") = ds
****************************************


the second moment, this code is called in detail method, when select a item in listbox1

****************************************
ds = Session("ds")

Dim dr() As DataRow = ds.Tables(0).Select("ID = " & listbox1.SelectedValue)

txtName.Text = dr(0)("Name")
txtDescript.Text = dr(0)("Descript")
lblNameSystem.Text = dr(0)("NameSystem")
****************************************

The Error:

Object not istance.

I identified that error is ocurring in Session("ds"), but is ocurring only IIS 5.1., in debug it isn't ocurrign.

Did you understand me?

Thanks,
GeneralRe: Losing Session in IIS Pin
N a v a n e e t h3-Apr-08 4:07
N a v a n e e t h3-Apr-08 4:07 
GeneralRe: Losing Session in IIS Pin
Sankar Komma 3-Apr-08 4:15
Sankar Komma 3-Apr-08 4:15 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 4:19
Leandrão3-Apr-08 4:19 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 4:39
Leandrão3-Apr-08 4:39 
GeneralRe: Losing Session in IIS Pin
Sankar Komma 3-Apr-08 4:51
Sankar Komma 3-Apr-08 4:51 
GeneralRe: Losing Session in IIS Pin
Leandrão3-Apr-08 5:06
Leandrão3-Apr-08 5:06 
GeneralRe: Losing Session in IIS Pin
Pete O'Hanlon3-Apr-08 11:48
mvePete O'Hanlon3-Apr-08 11:48 
GeneralRe: Losing Session in IIS Pin
Leandrão4-Apr-08 8:46
Leandrão4-Apr-08 8:46 
QuestionFlowing submenu right to left Pin
Saba023-Apr-08 2:29
Saba023-Apr-08 2:29 
GeneralRe: Flowing submenu right to left Pin
Declan Bright3-Apr-08 3:51
Declan Bright3-Apr-08 3:51 
Questionhow to get "month" from dd-mm-yyyy format Pin
tutut4u3-Apr-08 2:23
tutut4u3-Apr-08 2:23 
AnswerRe: how to get "month" from dd-mm-yyyy format Pin
eyeseetee3-Apr-08 2:52
eyeseetee3-Apr-08 2:52 
AnswerRe: how to get "month" from dd-mm-yyyy format Pin
Eduard Keilholz3-Apr-08 2:56
Eduard Keilholz3-Apr-08 2:56 
AnswerRe: how to get "month" from dd-mm-yyyy format Pin
Pete O'Hanlon3-Apr-08 11:46
mvePete O'Hanlon3-Apr-08 11:46 
GeneralJavascript Problem in ASP.Net Pin
lav naphade3-Apr-08 2:08
lav naphade3-Apr-08 2:08 
GeneralRe: Javascript Problem in ASP.Net Pin
eyeseetee3-Apr-08 2:47
eyeseetee3-Apr-08 2:47 
AnswerRe: Javascript Problem in ASP.Net Pin
Ashish Sehajpal3-Apr-08 3:27
Ashish Sehajpal3-Apr-08 3:27 

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.