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

ASP.NET

 
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 
AnswerRe: Close Javascript Window from Code Behind Pin
NeverHeardOfMe14-Oct-10 14:05
NeverHeardOfMe14-Oct-10 14:05 
I think you need to:

a) give different names to the two Key properties of each script you're registering - adn don't use names that are language keywords (such as "Alert")...

b) add a semi-colon after each javascript statement. Otherwise the two will run into each other (concatenate) on the rendered page and cause an error.

c) I am not an expert in C#, but why is your second RegisterClientScriptBlock statement a different format from the first?

d) Don't know why, but I always prefer self.close(), rather than window.close().

Thus, try:

script.RegisterClientScriptBlock(this.GetType(), "jsAlert", "alert('" + msg + "');", true);


and:

script.RegisterClientScriptBlock(this.GetType(), "jsClose", "self.close();", true);

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 
AnswerRe: AutoComplete Extender in VS 2008 Pin
raju melveetilpurayil14-Oct-10 0:14
professionalraju melveetilpurayil14-Oct-10 0:14 

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.