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

Rendering an instance of an asp.net page

P: n/a
I have created a .net .aspx web page and would like to render the object
after setting some properties. I would also like to have event handlers in
the parent window that could respond to events raised by this page object.
For instance,
''''Sudo code
Dim MyPageInstance as new MyPage() ' Create and instance of the object
MyPageInstance.Color = "red" ' Set various properties
MyPageInstance.Render(path) ' Rener page to new browser
window
'More Code

Protected Sub MyPageInstance_OnChange(sender as object, e as eventargs)
handles MyPage.OnChange
'Code 'onchange
rebind data in parent window
End Sub

I appreciate any responses.
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ASP.NET can only respond to the browser window that made the request. It's
different than windows form based programming because the server and the
client are effectively isolated and disconnected. The client makes a request,
the server sends a response. Those are the only two events.

--
Scott
http://www.OdeToCode.com/blogs/scott/
I have created a .net .aspx web page and would like to render the
object
after setting some properties. I would also like to have event
handlers in
the parent window that could respond to events raised by this page
object.
For instance,
''''Sudo code
Dim MyPageInstance as new MyPage() ' Create and instance of the
object
MyPageInstance.Color = "red" ' Set various properties
MyPageInstance.Render(path) ' Rener page to new
browser
window
'More Code
Protected Sub MyPageInstance_OnChange(sender as object, e as
eventargs)
handles MyPage.OnChange
'Code 'onchange
rebind data in parent window
End Sub
I appreciate any responses.

Nov 19 '05 #2

P: n/a


Thanks for your reply Scott.
Is there a way to create an instance of an aspx class object and (after
setting some properties) render the instance to a browser?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

P: n/a
That's essentially the ASP.NET paradigm. The browser makes a request
and ASP.NET will create an instance of your web form. In simple forms
you can set all the properties you need during Page_Load and then the
page object renders to the client.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 21 Jan 2005 05:28:09 -0800, Eddie Suey
<es***@inbizservices.com> wrote:


Thanks for your reply Scott.
Is there a way to create an instance of an aspx class object and (after
setting some properties) render the instance to a browser?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.