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

ASP.NET

 
AnswerRe: How do I access a csv file without hardcoding it in my code? Pin
Norris Chappell30-Apr-15 7:01
Norris Chappell30-Apr-15 7:01 
QuestionExport data to excel in asp.net Pin
Obaidullah Sulaimankhail26-Apr-15 20:07
Obaidullah Sulaimankhail26-Apr-15 20:07 
AnswerRe: Export data to excel in asp.net Pin
Abhinav S27-Apr-15 19:00
Abhinav S27-Apr-15 19:00 
QuestionServer Side Code and Client Side Code Pin
King Fisher23-Apr-15 18:37
professionalKing Fisher23-Apr-15 18:37 
AnswerRe: Server Side Code and Client Side Code Pin
aarif moh shaikh24-Apr-15 0:10
professionalaarif moh shaikh24-Apr-15 0:10 
AnswerRe: Server Side Code and Client Side Code Pin
Kornfeld Eliyahu Peter26-Apr-15 20:32
professionalKornfeld Eliyahu Peter26-Apr-15 20:32 
QuestionHow do I assign Session value to label in Asp.net? Pin
samflex23-Apr-15 4:52
samflex23-Apr-15 4:52 
AnswerRe: How do I assign Session value to label in Asp.net? Pin
F-ES Sitecore23-Apr-15 22:37
professionalF-ES Sitecore23-Apr-15 22:37 
This
VB
'Assign intHours to session:
Session("intHours")
needs to be
VB
'Assign intHours to session:
Session("intHours") = intHours

You might also need to amend where you are setting the text value
VB
if (Session("intHours) Is Not Nothing) then
    lblhourspassedval.Text = Session("intHours").ToString
end if

I don't know vb.net, the above is just a guess but I'm sure you can work it out.

The other issue you might be having is if you are always setting the session variable from the querystring and you visit the page when there is nothing in the querystring then your session variables will be cleared. You can check if the value you're looking for exists on the querystring using something like

if not string.IsNullOrWhiteSpace(Request.QueryString("yourvar")) then
QuestionUse of LastOrDefault() Pin
Member 1096876723-Apr-15 0:16
Member 1096876723-Apr-15 0:16 
AnswerRe: Use of LastOrDefault() Pin
Richard Deeming23-Apr-15 2:05
mveRichard Deeming23-Apr-15 2:05 
QuestionHow to encrypt message in WCF by writing code Pin
Tridip Bhattacharjee22-Apr-15 22:05
professionalTridip Bhattacharjee22-Apr-15 22:05 
AnswerRe: How to encrypt message in WCF by writing code Pin
Richard MacCutchan22-Apr-15 23:28
mveRichard MacCutchan22-Apr-15 23:28 
AnswerRe: How to encrypt message in WCF by writing code Pin
Gerry Schmitz24-Apr-15 16:08
mveGerry Schmitz24-Apr-15 16:08 
QuestionMultiple page redirection in ASP.NET WebApi Pin
Abdul Shakoor p22-Apr-15 20:34
Abdul Shakoor p22-Apr-15 20:34 
Questiondefault gridview listing not showing on page Pin
spirospap22-Apr-15 14:30
spirospap22-Apr-15 14:30 
AnswerRe: default gridview listing not showing on page Pin
Richard Deeming23-Apr-15 2:00
mveRichard Deeming23-Apr-15 2:00 
GeneralRe: default gridview listing not showing on page Pin
spirospap23-Apr-15 12:34
spirospap23-Apr-15 12:34 
Questionasp.net, c# Pin
Member 1124536521-Apr-15 16:28
Member 1124536521-Apr-15 16:28 
QuestionASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 7:48
indian14320-Apr-15 7:48 
AnswerRe: ASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 10:20
indian14320-Apr-15 10:20 
Questionquestion Pin
yousfi amina19-Apr-15 0:20
yousfi amina19-Apr-15 0:20 
AnswerRe: question Pin
Richard Andrew x6419-Apr-15 13:00
professionalRichard Andrew x6419-Apr-15 13:00 
QuestionHow to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee17-Apr-15 10:04
professionalTridip Bhattacharjee17-Apr-15 10:04 
QuestionRe: How to write to fileOutputStream mapped to physical file c# Pin
jkirkerx17-Apr-15 13:04
professionaljkirkerx17-Apr-15 13:04 
AnswerRe: How to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee18-Apr-15 7:48
professionalTridip Bhattacharjee18-Apr-15 7:48 

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.