Re: 4 ASP.Net & C# questions
From: Hermit Dave (hermitd.REMOVE_at_CAPS.AND.DOTS.hotmail.com)
Date: 09/01/04
- Next message: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Previous message: Rutger Smit: "Re: modal window"
- In reply to: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Next in thread: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Reply: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 1 Sep 2004 21:05:23 +0100
i am unsure of what you are trying to do... let me see if i understand it
correctly.
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" <ASPYaboh@discussions.microsoft.com> wrote in message news:FE1A8E41-1E91-4EA4-B225-DECEE17839A3@microsoft.com... > Dave, > > 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. > > "Hermit Dave" wrote: > > > ASP.NET version 2 which is currently in beta enables something called cross > > posting.. ie you can post to another aspx page > > > > -- > > > > Regards, > > > > Hermit Dave > > (http://hdave.blogspot.com) > > "Hermit Dave" <hermitd.REMOVE@CAPS.AND.DOTS.hotmail.com> wrote in message > > news:eY2xUb6jEHA.592@TK2MSFTNGP11.phx.gbl... > > > 1. in ASP.NET a form can only post to itself. if you want to submit to > > > another page you have to use html form (without runat=server) > > > > > > 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" <ASPYaboh@discussions.microsoft.com> wrote in message > > > news:C743C0FA-BEBF-4F28-AC4B-3E143166863E@microsoft.com... > > > > 1) In JSP, the <form>'s "action" tag could point to a servlet. Is there > > > > similar functionality in ASP.Net, i.e. can a C# class be called like a > > > > servlet? > > > > > > > > 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. > > > > > > > > > > > > > > > >
- Next message: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Previous message: Rutger Smit: "Re: modal window"
- In reply to: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Next in thread: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Reply: ASP Yaboh: "Re: 4 ASP.Net & C# questions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|