2) In some ".aspx.cs" files I can access the HTML's <form> object but others
I can not. In both cases, the <form> tag has an "id", "name" and
"runat=server". What do I need to do to reliably expose the HTML <form>?
UPDATE: I found the <form> object is not available to the .aspx.cs page
unless I close my project and reopen it! I am using VS.Net 2003 (Miscrosoft
Development Environment 2003 version7.1.3088 and .Net Framework 1.1
version1.1.4322).
3) When I do a "document.forms[0].submit()" through javascript, what, if
any, event handler in the associated "aspx.cs" catches this submit?
4) There are some cases when debugging C# classes in an ASP.Net web
application where I would like to display data to the Output console. I tried
"Console.Writeline" but the text did not appear in the Output window. How can
I display data in a C# class that is part of an ASP.Net web app?
I am new to ASP.Net but have several years experience in JSP. Any assistance
would be appreciated.
Thank you.
There's also other commands you can lookup like:
Debug.Assert();
Debug.WriteIf();
The cool thing about it is that you can leave the Debug code in and it will
be ignored when you compile for Release.
You may also want to lookup the Trace commands which can write debug info to
a Trace file , event log , etc.
Hope this helps.
- Frank
"ASP Yaboh" <ASPY...@discussions.microsoft.com> wrote in message
news:C743C0FA-BEBF-4F28...@microsoft.com...
2. a server side form (ie form which has runat=server) has child controls..
they are a part of the resulting class and can be accessed directly ie
this.controlname
you do not need to iterate the form object using DOM
3. if you do a javascript submit then page_load event handler with handle
it.if an object does a submit it will set the correct eventargs so that the
correct event handlers are fired on the server side
4. the debug statement was mentioned in the other post.
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"ASP Yaboh" <ASPY...@discussions.microsoft.com> wrote in message
news:C743C0FA-BEBF-4F28...@microsoft.com...
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"Hermit Dave" <hermitd...@CAPS.AND.DOTS.hotmail.com> wrote in message
news:eY2xUb6...@TK2MSFTNGP11.phx.gbl...
if you use the postback model, you have a new paradigm, an abstracted form
based metaphor, with control events. you should forget all you know about
jsp.
-- bruce (sqlwork.com)
"ASP Yaboh" <ASPY...@discussions.microsoft.com> wrote in message
news:C743C0FA-BEBF-4F28...@microsoft.com...
Thank you for the info!
Your information has been very helpful.
Further to the <form> tag. I have an HTML page with 3 frames. All three
frames are aspx. The top frame where the action begins successfully redirects
results to another frame by setting the "target" attribute. After that
though, I can no longer redirect out of the initial 'target' frame; the
"target" attribute seems to be ignored then.
Since the "target" attribute appears to be supported (it's a listed property
of the <form> object), how can I enable use of it?
Thank you again.
you have a html page with 3 frames.. each having one aspx page.. now you
want on submit of one to redirect the results to another frame...
oh... not sure you gonna get it done in a easy way. have to be very careful
with asp.net and frames.
okay what you can do (i think this is the only real option is to use
javascript to redirect the second frame. ie use javascript to do a client
redirect to a url.. aspx page with a server side form will not support any
action on target. target is there cause its a part of generic html. but it
will only post to itself (no matter what the target you specify in aspx).
try and use funky do javascript to do the redirection.
BTW as Bruce said earlier.. its a total paradigm shift and it takes a few
days to get used to it. Believe me its makes so much sense when it get used
to it.
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"ASP Yaboh" <ASPY...@discussions.microsoft.com> wrote in message
news:FE1A8E41-1E91-4EA4...@microsoft.com...
if you need any help just drop in a message..
--
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"ASP Yaboh" <ASPY...@discussions.microsoft.com> wrote in message
news:3D1ADEC8-C098-4E37...@microsoft.com...