473,503 Members | 12,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 18842
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
8814
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
12140
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
4102
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
11193
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
6708
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
2980
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
3779
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
60663
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
8839
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
5791
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
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.