By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,180 Members | 1,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,180 IT Pros & Developers. It's quick & easy.

Help with Embedded User Control RESPONSE.WRITE coding

P: n/a
If I included a UserControl in a form, and them tell it to Response.Write
some code, will the resulting client script work after the page is rendered.
Let's say that I instructed the User Control in the form, to Response.Write
a Window.Open instruction...

John Cosmas
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
once rendered your control will have to initiate a postback in order to
write. ie on click of something you can cause a postback and then your
control can write appropriate output. if the page is in a rendered state
there is not page class and there is no instance of your user control in
current context of the server.

hope it came across clearly

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"John Cosmas" <va*****@msn.com> wrote in message
news:#j**************@tk2msftngp13.phx.gbl...
If I included a UserControl in a form, and them tell it to Response.Write
some code, will the resulting client script work after the page is rendered. Let's say that I instructed the User Control in the form, to Response.Write a Window.Open instruction...

John Cosmas

Nov 18 '05 #2

P: n/a
yes but it's not the best way to do it. Perhaps you can give more background
though so we can point you in the right direction.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"John Cosmas" <va*****@msn.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
If I included a UserControl in a form, and them tell it to Response.Write
some code, will the resulting client script work after the page is
rendered.
Let's say that I instructed the User Control in the form, to
Response.Write
a Window.Open instruction...

John Cosmas

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.