467,166 Members | 1,002 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,166 developers. It's quick & easy.

Help with Embedded User Control RESPONSE.WRITE coding

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
  • viewed: 2216
Share:
2 Replies
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
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.

Similar topics

8 posts views Thread by baustin75@gmail.com | last post: by
5 posts views Thread by A Lonely Programmer | last post: by
5 posts views Thread by Marc Violette | last post: by
2 posts views Thread by Ken Crismon | last post: by
30 posts views Thread by =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.