Click here to Skip to main content
15,891,372 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Edit the data in a detail view at run time Pin
Sherin Iranimose4-Jul-08 1:48
Sherin Iranimose4-Jul-08 1:48 
GeneralRe: Edit the data in a detail view at run time Pin
Rock Star.4-Jul-08 21:06
Rock Star.4-Jul-08 21:06 
QuestionHow to check session is created or not? Pin
BalasubramanianK3-Jul-08 20:58
BalasubramanianK3-Jul-08 20:58 
AnswerRe: How to check session is created or not? Pin
eyeseetee3-Jul-08 21:09
eyeseetee3-Jul-08 21:09 
GeneralRe: How to check session is created or not? Pin
BalasubramanianK3-Jul-08 21:31
BalasubramanianK3-Jul-08 21:31 
GeneralRe: How to check session is created or not? Pin
Sherin Iranimose3-Jul-08 21:41
Sherin Iranimose3-Jul-08 21:41 
GeneralRe: How to check session is created or not? Pin
tina->newcoder3-Jul-08 23:53
tina->newcoder3-Jul-08 23:53 
GeneralRe: How to check session is created or not? Pin
N a v a n e e t h4-Jul-08 1:06
N a v a n e e t h4-Jul-08 1:06 
BalasubramanianK wrote:
If it is working with !=, why it is not working with '=='. Why it throws error?


Do you know what != and == means ? First one is checking inequality and second is equality checking. So if you write
if(Session["name"] == NULL)
  string name = Session["name"].ToString();
will throw error as you are trying to access a method in a NULL referenced object. If you change the code to
if(Session["name"] != NULL)
  string name = Session["name"].ToString();
, you are accessing ToString() only when Session["name"] exist.

Hope it helps

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

QuestionAn error has occurred while establishing a connection to the server. Pin
Raghvendra Kumar Roy3-Jul-08 20:15
Raghvendra Kumar Roy3-Jul-08 20:15 
AnswerRe: An error has occurred while establishing a connection to the server. Pin
N a v a n e e t h4-Jul-08 1:08
N a v a n e e t h4-Jul-08 1:08 
QuestionError:Cannot convert type string to int Pin
rockram3-Jul-08 20:05
rockram3-Jul-08 20:05 
AnswerRe: Error:Cannot convert type string to int Pin
Sherin Iranimose3-Jul-08 20:48
Sherin Iranimose3-Jul-08 20:48 
GeneralRe: Error:Cannot convert type string to int Pin
Sutheesh chandran3-Jul-08 21:00
Sutheesh chandran3-Jul-08 21:00 
GeneralRe: Error:Cannot convert type string to int Pin
Sherin Iranimose3-Jul-08 21:21
Sherin Iranimose3-Jul-08 21:21 
GeneralRe: Error:Cannot convert type string to int Pin
rockram4-Jul-08 0:54
rockram4-Jul-08 0:54 
AnswerRe: Error:Cannot convert type string to int Pin
N a v a n e e t h4-Jul-08 1:13
N a v a n e e t h4-Jul-08 1:13 
QuestionJavascript for Space validation ? Pin
Masood Kochi,SSF3-Jul-08 19:47
Masood Kochi,SSF3-Jul-08 19:47 
AnswerRe: Javascript for Space validation ? Pin
Sherin Iranimose3-Jul-08 20:21
Sherin Iranimose3-Jul-08 20:21 
GeneralThanks for ur solution Pin
Masood Kochi,SSF3-Jul-08 20:36
Masood Kochi,SSF3-Jul-08 20:36 
AnswerRe: Javascript for Space validation ? Pin
N a v a n e e t h4-Jul-08 1:14
N a v a n e e t h4-Jul-08 1:14 
GeneralRe: Javascript for Space validation ? Pin
Sherin Iranimose4-Jul-08 1:42
Sherin Iranimose4-Jul-08 1:42 
QuestionActiveX Pin
Member 47748683-Jul-08 19:05
Member 47748683-Jul-08 19:05 
Questionwebconfig values into dropdownlistbox? [modified] Pin
Member 38798813-Jul-08 18:51
Member 38798813-Jul-08 18:51 
AnswerRe: webconfig values into dropdownlistbox? Pin
Francofu3-Jul-08 19:28
Francofu3-Jul-08 19:28 
GeneralRe: webconfig values into dropdownlistbox? Pin
Member 38798813-Jul-08 19:41
Member 38798813-Jul-08 19:41 

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.