Click here to Skip to main content
15,923,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Which event will fire when a web page is closing... Pin
Manas Bhardwaj8-Sep-08 22:51
professionalManas Bhardwaj8-Sep-08 22:51 
AnswerRe: Which event will fire when a web page is closing... Pin
nivasss299-Sep-08 0:01
nivasss299-Sep-08 0:01 
QuestionRadioButtonlist in datalist Pin
raushan_98-Sep-08 22:41
raushan_98-Sep-08 22:41 
QuestionSorting problem in a gridview Pin
K V Sekhar8-Sep-08 21:12
K V Sekhar8-Sep-08 21:12 
AnswerRe: Sorting problem in a gridview Pin
Manas Bhardwaj8-Sep-08 21:59
professionalManas Bhardwaj8-Sep-08 21:59 
Questionsearch client side printer Pin
lav naphade8-Sep-08 20:55
lav naphade8-Sep-08 20:55 
AnswerRe: search client side printer Pin
Manas Bhardwaj8-Sep-08 21:18
professionalManas Bhardwaj8-Sep-08 21:18 
QuestionPage does not redirect Pin
imranafsari8-Sep-08 20:26
imranafsari8-Sep-08 20:26 
Dear all,
I am using asp.net2.0, C#, ajax1.0
Now there is requirement where I have to check user where he has access to this side it not then show the message and return to default page
Now I am trying with this code

Define a method in a class as
public void ShowMsg(string msg, Page p)
{
String csname1 = "PopupScript";
Type cstype = this.GetType();
String cstext1 = "alert(' " + msg + "');";
ScriptManager.RegisterClientScriptBlock(p, cstype, csname1, cstext1, true);

}
then call this method as
Doctor drck = new Doctor();
drck.ShowMsg("Access denied", this.Page);
and redirect it as
Response.Redirect("~/HTML/writeup.aspx");

Now issue is page does not redirect to specified path
if I comment message then page redirect
What problem with the code
If any better idea, please suggest

Thank you

imran khan
AnswerRe: Page does not redirect Pin
Abhishek Sur8-Sep-08 20:39
professionalAbhishek Sur8-Sep-08 20:39 
AnswerRe: Page does not redirect Pin
www.Developerof.NET9-Sep-08 0:17
www.Developerof.NET9-Sep-08 0:17 
QuestionPDF from Web Application User Details Pin
kc_krishnan8-Sep-08 20:14
kc_krishnan8-Sep-08 20:14 
AnswerRe: PDF from Web Application User Details Pin
Abhishek Sur8-Sep-08 20:41
professionalAbhishek Sur8-Sep-08 20:41 
QuestionWeb Application(Login Page ) integration with google API Pin
Simi_George058-Sep-08 20:07
Simi_George058-Sep-08 20:07 
AnswerRe: Web Application(Login Page ) integration with google API Pin
Manas Bhardwaj8-Sep-08 21:27
professionalManas Bhardwaj8-Sep-08 21:27 
Questioncode to perform cascading of dropdownlists without postback using c# in asp.net [modified] Pin
jaya868-Sep-08 19:38
jaya868-Sep-08 19:38 
AnswerRe: code to perform cascading of dropdownlists without postback using c# in asp.net Pin
boy.pockets8-Sep-08 19:57
boy.pockets8-Sep-08 19:57 
AnswerRe: code to perform cascading of dropdownlists without postback using c# in asp.net Pin
Sandeep Akhare8-Sep-08 20:14
Sandeep Akhare8-Sep-08 20:14 
AnswerRe: code to perform cascading of dropdownlists without postback using c# in asp.net Pin
meeram3958-Sep-08 22:55
meeram3958-Sep-08 22:55 
QuestionTooltip for a dataview hyperlink item Pin
reogeo20088-Sep-08 19:34
reogeo20088-Sep-08 19:34 
QuestionPlease help me Pin
abglorie8-Sep-08 19:32
abglorie8-Sep-08 19:32 
Questionexport image in excel,pdf file .net Pin
saravanan058-Sep-08 18:52
saravanan058-Sep-08 18:52 
Questioncomplex appSettings entries Pin
boy.pockets8-Sep-08 16:21
boy.pockets8-Sep-08 16:21 
AnswerRe: complex appSettings entries Pin
Venkatesh Mookkan8-Sep-08 17:19
Venkatesh Mookkan8-Sep-08 17:19 
GeneralRe: complex appSettings entries Pin
boy.pockets8-Sep-08 17:31
boy.pockets8-Sep-08 17:31 
GeneralRe: complex appSettings entries Pin
Venkatesh Mookkan8-Sep-08 17:37
Venkatesh Mookkan8-Sep-08 17: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.