Open new browser window in C# dotnet

  • Thread starter Thread starter Eric van der Niet
  • Start date Start date
E

Eric van der Niet

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
 
Eric said:
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
 
Any Samples maybe?

eric


Hans Kesting said:
- 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
 
Eric said:
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
 
Back
Top