p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   Prblem while using <asp:updatepanel> (http://p2p.wrox.com/showthread.php?t=55684)

rajatake March 21st, 2007 02:04 PM

Prblem while using <asp:updatepanel>
 
I am facing Unique problem while using <asp:updatepanel>. I have written my problem to this forum after testing completely.

If I use RegisterStartupScript or RegisterClientScriptBlock in the ASP.net page where i am using <asp:updatepanel> the script is not executing. Even it doesn't throw any error. I understand partial postback only happens while wsing <asp:updatepanel>. Is there any work around for this?

My code for Script in the Aspx.vb page
 Dim objType As Type
 Dim objCS As ClientScriptManager
 Dim sScript As String = String.Empty
 objType = Me.GetType()
            sScript = "<script>window.open('" & sTempFilename & "');</script>"
objCS = Page.ClientScript
objCS.RegisterStartupScript(objType, "Preview", sScript)

I have to do it only on serverside.

Thanks in Advance.

Regards,
Raja


gbianchi March 21st, 2007 02:23 PM

hi there...

why are you sending the script tag (<script>)?? if you take that out still not work???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========

rajatake March 21st, 2007 03:08 PM

Thanks for resonse me.No its still not working.


gbianchi March 22nd, 2007 07:16 AM

another idea.. what if you change window to alert?

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========

gbianchi March 22nd, 2007 02:04 PM

... you want to open a file that someone uploaded in your server?? you want to open it to the user or to the guy in the server??? B/C the last one doesn't sounds good...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========

rajatake March 22nd, 2007 02:05 PM

My requirement is to open the file. How can i do it by using alert?



All times are GMT -4. The time now is 04:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.