Click here to Skip to main content
15,908,775 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: calling a webservice through javascript Pin
DavidNohejl2-Mar-07 2:56
DavidNohejl2-Mar-07 2:56 
GeneralRe: calling a webservice through javascript Pin
Haissam3-Mar-07 14:19
Haissam3-Mar-07 14:19 
GeneralRe: calling a webservice through javascript Pin
DavidNohejl3-Mar-07 14:28
DavidNohejl3-Mar-07 14:28 
GeneralRe: calling a webservice through javascript Pin
Haissam3-Mar-07 15:00
Haissam3-Mar-07 15:00 
AnswerRe: calling a webservice through javascript Pin
Vasudevan Deepak Kumar4-Mar-07 2:11
Vasudevan Deepak Kumar4-Mar-07 2:11 
QuestionTextbox to display Pin
Oga M2-Mar-07 0:26
Oga M2-Mar-07 0:26 
QuestionRefreshing Parent Page Pin
Khan.Bangash2-Mar-07 0:18
Khan.Bangash2-Mar-07 0:18 
AnswerRe: Refreshing Parent Page Pin
nikneem20052-Mar-07 14:07
nikneem20052-Mar-07 14:07 
erhm...

I think the best way is to open the pop window with the existing querystring of your parent page

window.open('popup.aspx?querystring=1','window','windowproperties');

in popup.aspx you modify the querystring to a new querystring you want to refresh the parentpage with. Lets assume you want to change the value 1 into two...

Your stringbuilder looks like this than
<br />
Dim sScript As New System.Text.StringBuilder<br />
sScript.Append("<SCRIPT language=""javascript"">")<br />
sScript.Append(Environment.NewLine)<br />
sScript.Append("parent.window.opener.location = 'page.aspx?querystring=")<br />
sScript.Append("2") ' or any value you want<br />
sScript.Append("';")<br />
sScript.Append(Environment.NewLine)<br />
sScript.Append("window.self.close();")<br />
sScript.Append(Environment.NewLine)<br />
sScript.Append("</SCRIPT>")<br />
RegisterClientScriptBlock("ForceDefaultToScript", sScript.ToString)<br />


Note I also changed your newline characters into en environment.newline, this is just more neat... You also add the newline characters by appending the character using an ampersant ( "a"&"a" ) if you do so, your stringbuilder doesn't make sense... I changed the way the javascript is built in just a neater way... the result will be fearly the same except for the querystring part Wink | ;)


I love it when a plan comes together
http://www.zonderpunt.nl[^]

QuestionGridView Update command Pin
Member 37415621-Mar-07 23:56
Member 37415621-Mar-07 23:56 
AnswerRe: GridView Update command Pin
Paddy Boyd2-Mar-07 0:07
Paddy Boyd2-Mar-07 0:07 
QuestionHow to convert the doc file into HTML Pin
hirenparekh1-Mar-07 23:51
hirenparekh1-Mar-07 23:51 
AnswerRe: How to convert the doc file into HTML Pin
Paddy Boyd2-Mar-07 0:01
Paddy Boyd2-Mar-07 0:01 
AnswerRe: How to convert the doc file into HTML Pin
bgriffin_tpa2-Mar-07 9:11
bgriffin_tpa2-Mar-07 9:11 
GeneralHow to convert the doc file into HTML Pin
hirenparekh2-Mar-07 16:11
hirenparekh2-Mar-07 16:11 
AnswerRe: How to convert the doc file into HTML Pin
Vasudevan Deepak Kumar4-Mar-07 2:12
Vasudevan Deepak Kumar4-Mar-07 2:12 
QuestionTextbox to display Pin
Oga M1-Mar-07 23:34
Oga M1-Mar-07 23:34 
AnswerRe: Textbox to display Pin
Omkar Ghaisas1-Mar-07 23:40
Omkar Ghaisas1-Mar-07 23:40 
AnswerRe: Textbox to display Pin
Vasudevan Deepak Kumar6-Mar-07 9:50
Vasudevan Deepak Kumar6-Mar-07 9:50 
Questionproperties problem of button Pin
suriee1-Mar-07 23:33
suriee1-Mar-07 23:33 
AnswerRe: properties problem of button Pin
Omkar Ghaisas1-Mar-07 23:43
Omkar Ghaisas1-Mar-07 23:43 
GeneralRe: properties problem of button Pin
suriee4-Mar-07 8:59
suriee4-Mar-07 8:59 
AnswerRe: properties problem of button Pin
markymark821-Mar-07 23:44
markymark821-Mar-07 23:44 
QuestionStreaming Tiff image for file download Pin
markymark821-Mar-07 23:22
markymark821-Mar-07 23:22 
AnswerRe: Streaming Tiff image for file download Pin
Guffa2-Mar-07 1:17
Guffa2-Mar-07 1:17 
GeneralRe: Streaming Tiff image for file download Pin
markymark822-Mar-07 2:14
markymark822-Mar-07 2: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.