Click here to Skip to main content
15,916,293 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: dropdown list Pin
Jamil Hallal22-Apr-10 5:58
professionalJamil Hallal22-Apr-10 5:58 
QuestionGRID VIEW ISSUE Pin
Amit Patel198519-Apr-10 23:10
Amit Patel198519-Apr-10 23:10 
AnswerRe: GRID VIEW ISSUE Pin
Brij19-Apr-10 23:20
mentorBrij19-Apr-10 23:20 
GeneralRe: GRID VIEW ISSUE Pin
Amit Patel198519-Apr-10 23:25
Amit Patel198519-Apr-10 23:25 
GeneralRe: GRID VIEW ISSUE Pin
Brij20-Apr-10 0:14
mentorBrij20-Apr-10 0:14 
GeneralRe: GRID VIEW ISSUE Pin
Amit Patel198520-Apr-10 0:28
Amit Patel198520-Apr-10 0:28 
GeneralRe: GRID VIEW ISSUE Pin
Brij20-Apr-10 0:42
mentorBrij20-Apr-10 0:42 
QuestionSession problem Pin
SreejithKumar M19-Apr-10 22:21
SreejithKumar M19-Apr-10 22:21 
Hi,

I have developed a web application and created a virtual directory of that application(which is of Windows server 2003).After two weeks i found a problem.

ie when a user login(via virual directory link) i am taking his userid from database(sql 2005) with given userid and password and assigning that userid in session

ie Session["UserId"] = int.Parse(dstLogin.Tables[0].Rows[0]["UserId"].ToString());

then i am checking whether it is null or not
if (Session["UserId"] != null)
{
Response.Redirect("Home.aspx");
}

but in other pages when a user adding some data to database

i am not getting this UserId there.

ie while inserting userid of insering person will also store in database.while designing the table i made that field as "not null".

Not regularly but sometime users are getting an error like this

"Cannot insert userid as null". But most time it works fine


any solution or any idea to prevent this?

Known is a drop, unknown is an ocean
AnswerRe: Session problem Pin
Brij19-Apr-10 22:55
mentorBrij19-Apr-10 22:55 
GeneralRe: Session problem Pin
SreejithKumar M19-Apr-10 23:12
SreejithKumar M19-Apr-10 23:12 
GeneralRe: Session problem Pin
Brij20-Apr-10 0:14
mentorBrij20-Apr-10 0:14 
Questionhow to create a website page ??? Pin
3bood.ghzawi19-Apr-10 22:02
3bood.ghzawi19-Apr-10 22:02 
AnswerRe: how to create a website page ??? Pin
Ashfield19-Apr-10 22:37
Ashfield19-Apr-10 22:37 
AnswerRe: how to create a website page ??? Pin
Brij19-Apr-10 22:41
mentorBrij19-Apr-10 22:41 
AnswerBook suggestion & MSDN Pin
David Mujica20-Apr-10 3:21
David Mujica20-Apr-10 3:21 
QuestionUrgent need:Onrowediting of Childgrid inside parent grid Pin
anushh19-Apr-10 21:32
anushh19-Apr-10 21:32 
AnswerRe: Urgent need:Onrowediting of Childgrid inside parent grid Pin
michaelschmitt19-Apr-10 23:19
michaelschmitt19-Apr-10 23:19 
Questionrdlc Matrix Web Report Pin
binu77719-Apr-10 18:10
binu77719-Apr-10 18:10 
AnswerRe: rdlc Matrix Web Report Pin
Sandeep Mewara19-Apr-10 19:02
mveSandeep Mewara19-Apr-10 19:02 
GeneralRe: rdlc Matrix Web Report Pin
binu77719-Apr-10 20:25
binu77719-Apr-10 20:25 
QuestionDoubt on Cookie - asp.net 2.0 Pin
Karan_TN19-Apr-10 16:55
Karan_TN19-Apr-10 16:55 
AnswerRe: Doubt on Cookie - asp.net 2.0 [modified] Pin
Brij19-Apr-10 17:24
mentorBrij19-Apr-10 17:24 
GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Karan_TN19-Apr-10 18:21
Karan_TN19-Apr-10 18:21 
GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Brij19-Apr-10 19:12
mentorBrij19-Apr-10 19:12 
GeneralRe: Doubt on Cookie - asp.net 2.0 Pin
Abhijit Jana19-Apr-10 20:21
professionalAbhijit Jana19-Apr-10 20:21 

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.