Click here to Skip to main content
15,888,521 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: problem while ZIP a folder Pin
Abhijit Jana22-Jul-09 1:00
professionalAbhijit Jana22-Jul-09 1:00 
GeneralRe: problem while ZIP a folder Pin
Abhishek Sur22-Jul-09 0:42
professionalAbhishek Sur22-Jul-09 0:42 
GeneralRe: problem while ZIP a folder Pin
Abhijit Jana22-Jul-09 1:02
professionalAbhijit Jana22-Jul-09 1:02 
AnswerRe: problem while ZIP a folder Pin
Abhishek Sur22-Jul-09 0:19
professionalAbhishek Sur22-Jul-09 0:19 
AnswerRe: problem while ZIP a folder Pin
koolprasad200322-Jul-09 2:09
professionalkoolprasad200322-Jul-09 2:09 
QuestionHow to use session in user defined class Pin
Jagz W21-Jul-09 23:06
professionalJagz W21-Jul-09 23:06 
AnswerRe: How to use session in user defined class Pin
Tamer Oz21-Jul-09 23:15
Tamer Oz21-Jul-09 23:15 
AnswerRe: How to use session in user defined class Pin
Zafar A khan 21-Jul-09 23:18
professionalZafar A khan 21-Jul-09 23:18 
set the session.
and then get where u want.
code listed below.

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public class SN
{
	public SN()
	{
		
	}

    public static string UserName
    {
        get
        {
            if (HttpContext.Current.Session["UserName"] == null || HttpContext.Current.Session["UserName"].ToString().Trim() == "")
                return "";
            return HttpContext.Current.Session["UserName"].ToString();
        }
        set { HttpContext.Current.Session["UserName"] = value; }
    }
}


Be afraid of a gentleman when he is hungry, and of a mean person when his stomach is full.

Zafar
AnswerRe: How to use session in user defined class Pin
Abhijit Jana21-Jul-09 23:28
professionalAbhijit Jana21-Jul-09 23:28 
QuestionASP.net Web.Config Parser Error Message: Child Nodes Not Allowed Pin
HatakeKaKaShi21-Jul-09 21:48
HatakeKaKaShi21-Jul-09 21:48 
AnswerRe: ASP.net Web.Config Parser Error Message: Child Nodes Not Allowed Pin
Vimalsoft(Pty) Ltd21-Jul-09 23:59
professionalVimalsoft(Pty) Ltd21-Jul-09 23:59 
QuestionDynamic menu item Pin
suzzain21-Jul-09 20:57
suzzain21-Jul-09 20:57 
AnswerRe: Dynamic menu item Pin
Christian Graus21-Jul-09 21:20
protectorChristian Graus21-Jul-09 21:20 
GeneralRe: Dynamic menu item Pin
suzzain21-Jul-09 21:47
suzzain21-Jul-09 21:47 
QuestionEditing in FileUpload control Pin
yesu prakash21-Jul-09 20:52
yesu prakash21-Jul-09 20:52 
AnswerRe: Editing in FileUpload control Pin
Christian Graus21-Jul-09 20:53
protectorChristian Graus21-Jul-09 20:53 
AnswerRe: Editing in FileUpload control Pin
Zafar A khan 21-Jul-09 22:07
professionalZafar A khan 21-Jul-09 22:07 
QuestionProblem showing OnMouseOver PopUp at right mouse position. Pin
Rahul Chitte21-Jul-09 20:49
Rahul Chitte21-Jul-09 20:49 
AnswerRe: Problem showing OnMouseOver PopUp at right mouse position. Pin
Christian Graus21-Jul-09 20:51
protectorChristian Graus21-Jul-09 20:51 
QuestionHow to add multiple rows on the datatable. Pin
megivimal21-Jul-09 20:29
megivimal21-Jul-09 20:29 
AnswerRe: How to add multiple rows on the datatable. Pin
Christian Graus21-Jul-09 20:42
protectorChristian Graus21-Jul-09 20:42 
AnswerRe: How to add multiple rows on the datatable. Pin
Abhishek Sur22-Jul-09 0:24
professionalAbhishek Sur22-Jul-09 0:24 
Questionhow to get image Pin
Rajee Maharjan21-Jul-09 20:19
Rajee Maharjan21-Jul-09 20:19 
AnswerRe: how to get image Pin
Christian Graus21-Jul-09 20:41
protectorChristian Graus21-Jul-09 20:41 
AnswerRe: how to get image Pin
Rajee Maharjan21-Jul-09 20:50
Rajee Maharjan21-Jul-09 20:50 

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.