Ask a Question related to ASP.NET, Design and Development.
-
Craig Pearson #1
Web Form
How can I close a web form from code-behind code, insteal of client script
i.e javascript:window.close();
craig
Craig Pearson Guest
-
Autopopulated form not displaying data in pdfunless the form field is clicked
Within my online application, I have a pdf form that is auto generated and displayed to the user in the browser. My problem is that the populated... -
authenticate win32 form client with form based authentication web services
(Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client... -
#25676 [Opn->Bgs]: Form hidden input ouput when any form=* is in url_rewriter.tags
ID: 25676 Updated by: sniper@php.net Reported By: davey@php.net -Status: Open +Status: Bogus Bug... -
#25676 [Bgs->Opn]: Form hidden input ouput when any form=* is in url_rewriter.tags
ID: 25676 Updated by: davey@php.net Reported By: davey@php.net -Status: Bogus +Status: Open Bug... -
#25676 [NEW]: Form hidden input ouput when any form=* is in url_rewriter.tags
From: davey@php.net Operating system: WinXP/FreeBSD PHP version: 4CVS-2003-09-26 (stable) PHP Bug Type: Session related Bug... -
Craig Pearson #2
Re: Web Form
Hi Kevin
I have a server side button which needs to execute some code on the server,
then close the browser. Are you suggesting in the Page_Load, or prehaps the
button event (button_OnClick) I incorporate something like:
private void Page_Load(object sender, EventHandler e) {
if(IsPostback) {
// do server stuff, like clean out the session
// Session["var']=null;
Page.RegisterStartupScriptBlock("startup", "<script> window.close();
</script>");
}
}
I was attempting to do some sort of client script callback, whereby the
server script could call some client script, that way I could keep the
window.close() script 'pre-rendered' on the client. If you have a sample, I
would greatly appreciate it.
Craig
"Kevin Spencer" <kevin@takempis.com> wrote in message
news:upn4DuSUDHA.3712@tk2msftngp13.phx.gbl...the> You can't. You're not trying to close a WebForm; you're trying to closeside.> browser. The browser is on the client. All ASP.Net sends to the browser is
> an HTTP response with HTML in it. You need to add a Startup JavaScript to
> the page during PostBack that closes the browser window on the clientscript>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> [url]http://www.takempis.com[/url]
> Big things are made up of
> lots of little things.
>
> "Craig Pearson" <pearson4@un.org> wrote in message
> news:%23D6lTYSUDHA.2188@TK2MSFTNGP10.phx.gbl...> > How can I close a web form from code-behind code, insteal of client>> > i.e javascript:window.close();
> >
> > craig
> >
> >
>
Craig Pearson Guest
-
Kevin Spencer #3
Re: Web Form
What you just posted is fine. Since, as you say, you want to execute some
server-side processing, you would then add the script to the page so that it
closes when loaded into the browser.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Craig Pearson" <pearson4@un.org> wrote in message
news:eFdEiKTUDHA.2036@TK2MSFTNGP10.phx.gbl...server,> Hi Kevin
>
> I have a server side button which needs to execute some code on thethe> then close the browser. Are you suggesting in the Page_Load, or prehapsI> button event (button_OnClick) I incorporate something like:
>
> private void Page_Load(object sender, EventHandler e) {
> if(IsPostback) {
> // do server stuff, like clean out the session
> // Session["var']=null;
>
> Page.RegisterStartupScriptBlock("startup", "<script> window.close();
> </script>");
> }
> }
>
> I was attempting to do some sort of client script callback, whereby the
> server script could call some client script, that way I could keep the
> window.close() script 'pre-rendered' on the client. If you have a sample,is> would greatly appreciate it.
>
> Craig
>
>
>
>
> "Kevin Spencer" <kevin@takempis.com> wrote in message
> news:upn4DuSUDHA.3712@tk2msftngp13.phx.gbl...> the> > You can't. You're not trying to close a WebForm; you're trying to close> > browser. The browser is on the client. All ASP.Net sends to the browserto> > an HTTP response with HTML in it. You need to add a Startup JavaScript> side.> > the page during PostBack that closes the browser window on the client> script> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > [url]http://www.takempis.com[/url]
> > Big things are made up of
> > lots of little things.
> >
> > "Craig Pearson" <pearson4@un.org> wrote in message
> > news:%23D6lTYSUDHA.2188@TK2MSFTNGP10.phx.gbl...> > > How can I close a web form from code-behind code, insteal of client>> >> > > i.e javascript:window.close();
> > >
> > > craig
> > >
> > >
> >
>
Kevin Spencer Guest
-
Techie Marie #4
Web Form
Hi,
I'm currently trying to figure out how to create a web form. What I want to
do is:
The 1st question will ask to select a year he/she attended a live training.
The 2nd question will provide the trainings of that specific year that was
selected in the previous question. I'd like to know how to do that.
Thank you in advanced for your feedback.
Thanks!
Techie Marie Guest
-
Deaf Web Designer #5
Re: Web Form
You could do Google search, or quick search through here or anywhere in Adobe website.
Do you have user manual book that comes with Dreamweaver package?
Deaf Web Designer Guest
-
heuning #6
Re: Web Form
Have a look at [url]www.htmlbasix.com/forms.shtml[/url] You can create a form online at this site, then look at the code and use the bits that you need...
I found this very helpful.
heuning Guest
-
Murray *ACE* #7
Re: Web Form
DW's F1 Help?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Techie Marie" <webforumsuser@macromedia.com> wrote in message
news:eh5obv$88q$1@forums.macromedia.com...> Hi,
>
> I'm currently trying to figure out how to create a web form. What I want
> to
> do is:
> The 1st question will ask to select a year he/she attended a live
> training.
> The 2nd question will provide the trainings of that specific year that was
> selected in the previous question. I'd like to know how to do that.
>
> Thank you in advanced for your feedback.
>
> Thanks!
>
Murray *ACE* Guest



Reply With Quote

