Click here to Skip to main content
15,907,906 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionModalpopup extender + IFrame + PDF Pin
Hemant Thaker16-Oct-10 10:01
Hemant Thaker16-Oct-10 10:01 
Questionhow to use database made in SQL server compact edition 3.5 into MS SQL server 2005 express edition Pin
cmaheshwari1615-Oct-10 19:22
cmaheshwari1615-Oct-10 19:22 
AnswerRe: how to use database made in SQL server compact edition 3.5 into MS SQL server 2005 express edition Pin
Brij16-Oct-10 5:00
mentorBrij16-Oct-10 5:00 
Questioncountry,State list Pin
Satish_S15-Oct-10 0:00
Satish_S15-Oct-10 0:00 
AnswerRe: country,State list Pin
raju melveetilpurayil15-Oct-10 0:20
professionalraju melveetilpurayil15-Oct-10 0:20 
GeneralRe: country,State list Pin
Satish_S15-Oct-10 0:48
Satish_S15-Oct-10 0:48 
AnswerRe: country,State list Pin
Brij15-Oct-10 0:36
mentorBrij15-Oct-10 0:36 
QuestionClose Javascript Window from Code Behind Pin
PDTUM14-Oct-10 6:16
PDTUM14-Oct-10 6:16 
Good Morning,

I am using the ClientScriptManager class to call a java alert from Code Behind when a condition is not met. This is being done from a page that is already a JavaScript pop up. When the alert is responded to, I want the script to close both the alert AND the page that generated the alert. Everything works as designed until I close the alert window...THEN the user is also forced to close a second page (the original generating page for the alert) to return to the starting point. This seems cumbersome and unprofessional. I Googled a bunch of stuff but cannot seem to come up with just the right one. What I have currently is below. I appreciate any assistance...Thank You, Pat

if (RadioButtonSelect.Checked == false)
{
    string msg = "The SORT request is only compatible with the SELECT command";
    ClientScriptManager script = Page.ClientScript;
    if (!script.IsClientScriptBlockRegistered(this.GetType(), "Alert"))
    {
        script.RegisterClientScriptBlock(this.GetType(), "Alert", "alert('" + msg + "')", true);
    }

    ScriptManager.RegisterClientScriptBlock(this.Page, GetType(), "Alert",
     "window.close();", true);

    return;
}

AnswerRe: Close Javascript Window from Code Behind Pin
NeverHeardOfMe14-Oct-10 14:05
NeverHeardOfMe14-Oct-10 14:05 
AnswerRe: Close Javascript Window from Code Behind Pin
Venkatesh Mookkan15-Oct-10 0:01
Venkatesh Mookkan15-Oct-10 0:01 
GeneralRe: Close Javascript Window from Code Behind Pin
NeverHeardOfMe15-Oct-10 5:17
NeverHeardOfMe15-Oct-10 5:17 
QuestionWich control to use and how to show the content from db Pin
Priya Prk14-Oct-10 5:12
Priya Prk14-Oct-10 5:12 
AnswerRe: Wich control to use and how to show the content from db Pin
T M Gray14-Oct-10 7:06
T M Gray14-Oct-10 7:06 
GeneralRe: Wich control to use and how to show the content from db Pin
Priya Prk18-Oct-10 1:27
Priya Prk18-Oct-10 1:27 
Questionweb service for sending email Pin
Jassim Rahma14-Oct-10 2:14
Jassim Rahma14-Oct-10 2:14 
AnswerRe: web service for sending email Pin
JHizzle14-Oct-10 2:24
JHizzle14-Oct-10 2:24 
AnswerRe: web service for sending email Pin
fjdiewornncalwe14-Oct-10 2:41
professionalfjdiewornncalwe14-Oct-10 2:41 
AnswerRe: web service for sending email Pin
Herman<T>.Instance14-Oct-10 2:53
Herman<T>.Instance14-Oct-10 2:53 
AnswerRe: web service for sending email Pin
Brij14-Oct-10 4:11
mentorBrij14-Oct-10 4:11 
AnswerRe: web service for sending email Pin
Vimalsoft(Pty) Ltd14-Oct-10 4:39
professionalVimalsoft(Pty) Ltd14-Oct-10 4:39 
GeneralRe: web service for sending email Pin
fjdiewornncalwe14-Oct-10 13:05
professionalfjdiewornncalwe14-Oct-10 13:05 
Questionhow to enable calendar control inside the gridview? Pin
srisairam14-Oct-10 1:33
srisairam14-Oct-10 1:33 
AnswerRe: how to enable calendar control inside the gridview? Pin
Herman<T>.Instance14-Oct-10 2:55
Herman<T>.Instance14-Oct-10 2:55 
QuestionAutoComplete Extender in VS 2008 Pin
Thanusree Duth13-Oct-10 18:52
Thanusree Duth13-Oct-10 18:52 
AnswerRe: AutoComplete Extender in VS 2008 Pin
Not Active14-Oct-10 0:10
mentorNot Active14-Oct-10 0:10 

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.