Click here to Skip to main content
15,936,119 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to solve question: my session is successfully running at a time insert record in other table?


===or==
jyare buy button pr click kriye tyare check kravvanu k session 6e k nhi.jo session hoi to sells table ma entry thai jvi joiye.
Posted
Updated 20-Dec-12 1:20am
v3
Comments
Mohd. Mukhtar 20-Dec-12 7:12am    
Not clear??
Please specify more about the question.
[no name] 20-Dec-12 7:15am    
Elaborate your question...
-Krunal R.
[no name] 20-Dec-12 7:17am    
Still not clear....
kishore Rajendran 20-Dec-12 7:30am    
yes..please explain more
Sachin Gargava 20-Dec-12 7:32am    
what you want please write more clear or write something more about your requirement.

1 solution

You can check your session variable is holding some value or not by using:-
C#
if(Session["UserName"]!= null)
{
   //Add entry to Sells table
}
else
{
   // Your logic if the session variable is null.
}

Hope above statements help you.

(FYI, as Jibesh mentioned Please dont write non-english texts here.)
And Clearly state your problem.

[Edit]Code block added[/Edit]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900