470,624 Members | 2,511 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Open new browser window in C# dotnet

Hello all,

What i want to do is the following.

I want to call a c#.net file from an html page. this htm send some
parameters to the C# (asp) file. In Vstudio2003 what kind of file should
this be? don't think its a webservice.... And from that point... i would
like to open a new page that opens a infopath file...

Can someone help me with this one??? i have no clue!

Tnx in advance...
Eric van der Niet
Nov 16 '05 #1
3 18705
Eric van der Niet wrote:
Hello all,

What i want to do is the following.

I want to call a c#.net file from an html page. this htm send some
parameters to the C# (asp) file. In Vstudio2003 what kind of file
should this be? don't think its a webservice.... And from that
point... i would like to open a new page that opens a infopath file...

Can someone help me with this one??? i have no clue!

Tnx in advance...
Eric van der Niet


- open a new window: you need to do this from client-side javascript,
or use a "target" attribute on a form.
- passing values: use querystring (build it yourself or use form-GET), or
use POST-data, using form method=POST
- you can call a regular aspx page that reads the Request.QueryString
or Request.Form collections
- for the infopath: either provide a link or do a Response.Redirect to that

Hans Kesting
Nov 16 '05 #2
Any Samples maybe?

eric
"Hans Kesting" <ne***********@spamgourmet.com> schreef in bericht
news:uZ*************@TK2MSFTNGP09.phx.gbl...
Eric van der Niet wrote:
Hello all,

What i want to do is the following.

I want to call a c#.net file from an html page. this htm send some
parameters to the C# (asp) file. In Vstudio2003 what kind of file
should this be? don't think its a webservice.... And from that
point... i would like to open a new page that opens a infopath file...

Can someone help me with this one??? i have no clue!

Tnx in advance...
Eric van der Niet


- open a new window: you need to do this from client-side javascript,
or use a "target" attribute on a form.
- passing values: use querystring (build it yourself or use form-GET), or
use POST-data, using form method=POST
- you can call a regular aspx page that reads the Request.QueryString
or Request.Form collections
- for the infopath: either provide a link or do a Response.Redirect to
that

Hans Kesting

Nov 16 '05 #3
Eric van der Niet wrote:
Any Samples maybe?

eric


first page (html):
<form action="myProcessor.aspx" method="post" target="_blank">
<input name="thevalue">
<input type=submit>
</form>

myProcessor.aspx, codebehind:
Page_Load(...)
{
string val = Request["thevalue"];
... process "val" , build (?) infopath url ...
Response.Redirect(... infopath link ...);
}

details depend very much on what you want to do exactly
(and how you should handle that infopath link, I know it exists
but do not know how to use / activate it)

Hans Kesting
"Hans Kesting" <ne***********@spamgourmet.com> schreef in bericht
news:uZ*************@TK2MSFTNGP09.phx.gbl...
Eric van der Niet wrote:
Hello all,

What i want to do is the following.

I want to call a c#.net file from an html page. this htm send some
parameters to the C# (asp) file. In Vstudio2003 what kind of file
should this be? don't think its a webservice.... And from that
point... i would like to open a new page that opens a infopath
file... Can someone help me with this one??? i have no clue!

Tnx in advance...
Eric van der Niet


- open a new window: you need to do this from client-side javascript,
or use a "target" attribute on a form.
- passing values: use querystring (build it yourself or use
form-GET), or use POST-data, using form method=POST
- you can call a regular aspx page that reads the Request.QueryString
or Request.Form collections
- for the infopath: either provide a link or do a Response.Redirect
to that

Hans Kesting

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by lukeo | last post: by
2 posts views Thread by venkatesh | last post: by
10 posts views Thread by Marshall Dudley | last post: by
10 posts views Thread by David McCulloch | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.