Click here to Skip to main content
15,914,016 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Double click event on a gridview in ASP.net 2.0? Pin
Kusumasrinivas3-Jun-07 20:56
Kusumasrinivas3-Jun-07 20:56 
QuestionHow to show Confirmation Message to the user ? Pin
Kusumasrinivas1-Jun-07 7:24
Kusumasrinivas1-Jun-07 7:24 
AnswerRe: How to show Confirmation Message to the user ? Pin
Not Active1-Jun-07 7:31
mentorNot Active1-Jun-07 7:31 
AnswerRe: How to show Confirmation Message to the user ? Pin
Expert Coming1-Jun-07 14:08
Expert Coming1-Jun-07 14:08 
QuestionGridview Pin
A kamath1-Jun-07 4:59
A kamath1-Jun-07 4:59 
AnswerRe: Gridview Pin
kubben1-Jun-07 6:14
kubben1-Jun-07 6:14 
GeneralRe: Gridview Pin
A kamath1-Jun-07 7:16
A kamath1-Jun-07 7:16 
QuestionApplication_AcquireRequestState(object sender, EventArgs e) Session error in Global.asax Pin
Srikar Kumar1-Jun-07 4:46
Srikar Kumar1-Jun-07 4:46 
// dear sir i couldn't able to refer/using Sessions in global.asax under the Application_AcquireRequestState Method.I m getting Application Exception. But it works fine when using..Cookies.Any Suggestions are Greatly appreciated. thanks.
1.Moreover after generating Exceptions the Application is executing with Distortion in StyleSheet Settings.
2.I Searched Alot in Web .But No Source.
//


protected void ddlLanguage_SelectedIndexChanged(object sender, EventArgs e)

{

// I'm initializaing Sessions Based on culture selected from dropDownlist Box

Thread.CurrentThread.CurrentUICulture = new CultureInfo(name); // name="es-US" say,

Thread.CurrentThread.CurrentCulture = new CultureInfo(locale); // locale ="es-US" say,

......

Session["MyUICulture"] = name;

Session["MyCulture"] = locale;

...

}


void Application_AcquireRequestState(Object sender, EventArgs e)
{



// override automatic culture selection from <globalization>

// based on the user's selection which was stored in a cookie

try

{

if (Session.Contents["MyUICulture"] != null && Session.Contents["MyCulture"] != null)

{

System.Globalization.CultureInfo uiCulture = new System.Globalization.CultureInfo(Session["MyUICulture"].ToString());

System.Globalization.CultureInfo Culture = new System.Globalization.CultureInfo(Session["MyUICulture"].ToString());

System.Threading.Thread.CurrentThread.CurrentUICulture = uiCulture;

System.Threading.Thread.CurrentThread.CurrentCulture = Culture;

}

}

catch (HttpException ex)

{

throw new HttpException("Details:" + ex.Message);//Do Nothing.

}




}



Srikar M
QuestionIf condition........... Pin
Member 38798811-Jun-07 4:17
Member 38798811-Jun-07 4:17 
AnswerRe: If condition........... Pin
kubben1-Jun-07 6:07
kubben1-Jun-07 6:07 
AnswerRe: If condition........... Pin
Christian Graus1-Jun-07 10:37
protectorChristian Graus1-Jun-07 10:37 
GeneralRe: If condition........... Pin
kvijayajyothy1-Jun-07 22:13
kvijayajyothy1-Jun-07 22:13 
QuestionHow to retrieve text document in Asp.Net Pin
vijay_831-Jun-07 3:23
vijay_831-Jun-07 3:23 
AnswerRe: How to retrieve text document in Asp.Net Pin
Guffa1-Jun-07 12:57
Guffa1-Jun-07 12:57 
GeneralRe: How to retrieve text document in Asp.Net Pin
Paul Conrad1-Jun-07 13:40
professionalPaul Conrad1-Jun-07 13:40 
QuestionSession Pin
A kamath1-Jun-07 2:32
A kamath1-Jun-07 2:32 
AnswerRe: Session Pin
Chetan Ranpariya1-Jun-07 2:35
Chetan Ranpariya1-Jun-07 2:35 
GeneralRe: Session Pin
A kamath1-Jun-07 4:24
A kamath1-Jun-07 4:24 
GeneralRe: Session Pin
Chetan Ranpariya3-Jun-07 21:44
Chetan Ranpariya3-Jun-07 21:44 
QuestionHow to create dynamic event handler for the dynamic Button controls Pin
sasimadunoori1-Jun-07 2:16
sasimadunoori1-Jun-07 2:16 
AnswerRe: How to create dynamic event handler for the dynamic Button controls Pin
Chetan Ranpariya1-Jun-07 2:27
Chetan Ranpariya1-Jun-07 2:27 
Questionjavascript Pin
kvijayajyothy1-Jun-07 2:05
kvijayajyothy1-Jun-07 2:05 
AnswerRe: javascript Pin
Fred_Smith1-Jun-07 2:35
Fred_Smith1-Jun-07 2:35 
GeneralRe: javascript Pin
RichardGrimmer1-Jun-07 4:32
RichardGrimmer1-Jun-07 4:32 
GeneralRe: javascript Pin
Fred_Smith1-Jun-07 4:37
Fred_Smith1-Jun-07 4:37 

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.