472,983 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,983 software developers and data experts.

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 18830
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
2
by: nntp | last post by:
Are there other ways to open multile windows at once? <SCRIPT language="JavaScript"> function open1() { var open1 = window.open('http://google.com/CheckEnviro.pl','','scrollbars=yes,height=600...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
5
by: VR | last post by:
Hi, How can I open a web site in a new browser window from a regular windows form? (not an ASP.NET) Do I have to use a COM ActiveX control or is there anything like that already built in in...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.