473,651 Members | 2,775 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I simply open an ASP page and possibly pass it data from a C# form

Exactly what the subject says.
I have an ASP page that I want my C# windows application to open in
Internet Explorer, and if possible have it send along a list of values
from a list box. Thank you.
Nov 15 '05 #1
8 3360
That would mostly depend on the page.

Does it take parameters, or are you trying to fill in textboxes on the page?

If the page take paramters build a string with the values and pass it to
System.Diagnost ics.Process.Sta rt something like this:

System.Diagnost ics.Process.Sta rt("http://www.myhost.com? parm1=value1&pa rm2=v
alue2");

HTH
Brian W

"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
Exactly what the subject says.
I have an ASP page that I want my C# windows application to open in
Internet Explorer, and if possible have it send along a list of values
from a list box. Thank you.

Nov 15 '05 #2
heres a few classes i wrote a while back,

it probably needs a bit of tidying up, but it works

some nice functions for setting the values of an HTML form once the page has
loaded + submitting a button from a windows forms app.

The main one you'll be interested in though is...
public void Navigate(string _url, string _valuedatapairs )..

this method you just call like :

webcontrol.Navi gate("www.yahoo .co.uk","param1 =one&param2=two &etc=easyasthis "
);

if you want to pass values to an array from a list box, use a for loop, and
make each parameter the same name.... but you probably
know what to do from here.

also started doing some work on showing a custom context menu -

anyway, hope this helps

(you'll need to get VS.NET to create a wrapper for the WebControl) - i
haven't included it here

sam martin
/////////////////////////////////////////////////////////////////////////

public class DocUIResponseAr gs : System.EventArg s
{

private string _appref;
private string _appdata;

public DocUIResponseAr gs(string _r, string _d)
{
this._appdata = _d;
this._appref = _r;
}

public string AppRef
{
get { return this._appref; }
}

public string AppData
{
get { return this._appdata; }
}
}

public class DocUIHandler
{
private string _appref;
private DocUIResponseHa ndler _handler;

public DocUIHandler(st ring _r, DocUIResponseHa ndler _h)
{
this._appref = _r;
this._handler = _h;
}

public string AppRef
{
get { return this._appref; }
}

public DocUIResponseHa ndler Handler
{
get { return this._handler; }
}
}

public delegate void DocUIResponseDe legate(object sender, DocUIResponseAr gs
e);
public delegate void DocumentComplet eDelegate(objec t sender,
DocUIResponseAr gs e);
public delegate void DocUIResponseHa ndler(object sender, DocUIResponseAr gs
e);

/// <summary>
/// Summary description for WebControl.
/// </summary>
public class WebControl : System.Windows. Forms.UserContr ol,
IDocHostUIHandl er
{
private string _urlbase;
private AxSHDocVw.AxWeb Browser axWebBrowser;

private System.Collecti ons.ArrayList _delegatemap;

public event DocumentComplet eDelegate DocumentComplet eEvent;
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.Containe r components = null;

public WebControl()
{
// This call is required by the Windows.Forms Form Designer.
InitializeCompo nent();

this._delegatem ap = new ArrayList();

_urlbase =
System.Configur ation.Configura tionSettings.Ap pSettings["Accuman.Web.Se rver"]
;
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Disp ose();
}
}
base.Dispose( disposing );
}

public void Navigate(string _url, string _valuedatapairs )
{
//_delegatemap.Cl ear();

object _ourl = this._urlbase+_ url;
object _onull = new object();

object _header = "Content-Type: application/x-www-form-urlencoded" + "\n"
+ "\r";

string _data =_valuedatapair s;

object _odata = System.Text.ASC IIEncoding.ASCI I.GetBytes(_dat a);

this.axWebBrows er.Navigate2(re f _ourl,ref _onull,ref _onull,ref
_odata,ref _header);

}

public void RefreshPage()
{
object _onull = null;

this.axWebBrows er.Refresh2(ref _onull);

}

public void SetFormFieldVal ue(string _fieldid, string _value)
{
IHTMLDocument2 doc = (IHTMLDocument2 )this.axWebBrow ser.Document;
mshtml.HTMLInpu tElementClass _f =
(mshtml.HTMLInp utElementClass) doc.all.item(_f ieldid,null);

_f.value = _value;
}

public void SubmitForm(stri ng _formid)
{
IHTMLDocument2 doc = (IHTMLDocument2 )this.axWebBrow ser.Document;
mshtml.HTMLForm ElementClass _f =
(mshtml.HTMLFor mElementClass)d oc.forms.item(n ull,0);

object _oevt = new object();

_f.submit();
}

#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
System.Resource s.ResourceManag er resources = new
System.Resource s.ResourceManag er(typeof(WebCo ntrol));
this.axWebBrows er = new AxSHDocVw.AxWeb Browser();

((System.Compon entModel.ISuppo rtInitialize)(t his.axWebBrowse r)).BeginInit() ;
this.SuspendLay out();
//
// axWebBrowser
//
this.axWebBrows er.Dock = System.Windows. Forms.DockStyle .Fill;
this.axWebBrows er.Enabled = true;
this.axWebBrows er.Location = new System.Drawing. Point(0, 0);
//this.axWebBrows er.OcxState =
((System.Window s.Forms.AxHost. State)(resource s.GetObject("ax WebBrowser.OcxS t
ate")));
this.axWebBrows er.Size = new System.Drawing. Size(150, 150);
this.axWebBrows er.TabIndex = 0;
this.axWebBrows er.DocumentComp lete += new
AxSHDocVw.DWebB rowserEvents2_D ocumentComplete EventHandler(th is.OnDocumentCo m
plete);
//
// WebControl
//
this.Controls.A dd(this.axWebBr owser);
this.Name = "WebControl ";

((System.Compon entModel.ISuppo rtInitialize)(t his.axWebBrowse r)).EndInit();
this.ResumeLayo ut(false);

}
#endregion

// IDocHostUIHandl er Implementations
void IDocHostUIHandl er.EnableModele ss(int fEnable)
{

}

void IDocHostUIHandl er.FilterDataOb ject(MsHtmHstIn terop.IDataObje ct pDO,
out MsHtmHstInterop .IDataObject ppDORet)
{
ppDORet = null;
}

void IDocHostUIHandl er.GetDropTarge t(IDropTarget pDropTarget, out
IDropTarget ppDropTarget)
{
ppDropTarget = null;
}

void IDocHostUIHandl er.GetExternal( out object ppDispatch)
{
//ppDispatch = new PopulateClass(t his);
ppDispatch = null;
}

void IDocHostUIHandl er.GetHostInfo( ref _DOCHOSTUIINFO pInfo)
{

}

void IDocHostUIHandl er.GetOptionKey Path(out string pchKey, uint dw)
{
pchKey = null;
}

void IDocHostUIHandl er.HideUI()
{

}

void IDocHostUIHandl er.OnDocWindowA ctivate(int fActivate)
{

}

void IDocHostUIHandl er.OnFrameWindo wActivate(int fActivate)
{

}

void IDocHostUIHandl er.ResizeBorder (ref MsHtmHstInterop .tagRECT prcBorder,
IOleInPlaceUIWi ndow pUIWindow, int fRameWindow)
{

}

void IDocHostUIHandl er.ShowContextM enu(uint dwID, ref
MsHtmHstInterop .tagPOINT ppt, object pcmdtReserved, object pdispReserved)
{
throw new COMException("" , 0);
}

void IDocHostUIHandl er.ShowUI(uint dwID, IOleInPlaceActi veObject
pActiveObject, IOleCommandTarg et pCommandTarget, IOleInPlaceFram e pFrame,
IOleInPlaceUIWi ndow pDoc)
{

}

void IDocHostUIHandl er.TranslateAcc elerator(ref tagMSG lpmsg, ref Guid
pguidCmdGroup, uint nCmdID)
{

}

void IDocHostUIHandl er.TranslateUrl (uint dwTranslate, ref ushort pchURLIn,
IntPtr ppchURLOut)
{

}

void IDocHostUIHandl er.UpdateUI()
{

}

private void OnDocumentCompl ete(object sender,
AxSHDocVw.DWebB rowserEvents2_D ocumentComplete Event e)
{

this.Parent.Cur sor = System.Windows. Forms.Cursors.D efault;

ICustomDoc cDoc = (ICustomDoc)thi s.axWebBrowser. Document;
cDoc.SetUIHandl er((IDocHostUIH andler)this);

// Get the document.
IHTMLDocument2 doc = (IHTMLDocument2 )this.axWebBrow ser.Document;

if (DocumentComple teEvent!=null)
DocumentComplet eEvent(this, new
DocUIResponseAr gs(doc.body.get Attribute("appr ef",0).ToString (),doc.body.get A
ttribute("appda ta",0).ToString ()));

foreach (DocUIHandler _h in this._delegatem ap)
{
object _name = _h.AppRef;

mshtml.HTMLButt onElement _a =
(mshtml.HTMLBut tonElement)doc. all.item(_name, null);
((mshtml.HTMLBu ttonElementEven ts2_Event)_a).o nclick += new
HTMLButtonEleme ntEvents2_oncli ckEventHandler( this.Button_onc lick);

}
}

public void RegisterUIHandl er(string _appref,DocUIRe sponseHandler
_handler)
{
this._delegatem ap.Add(new DocUIHandler(_a ppref,_handler) );
}

public void RemoveUIHandler s()
{

this._delegatem ap.Clear();

}

public delegate bool BrowserClickHan dler( IHTMLEventObj e );

private bool Button_onclick( IHTMLEventObj e)
{
if (this.InvokeReq uired == true)
{
this.BeginInvok e( new BrowserClickHan dler(
this.Button_onc lick ), new object[] { e } );

}
else
{
string _appref = e.srcElement.id ;
if (_appref.Length >0)
{
foreach (DocUIHandler _h in this._delegatem ap)
{
if (_h.AppRef == _appref)
{
e.cancelBubble = true;
_h.Handler(this ,new
DocUIResponseAr gs(e.srcElement .getAttribute(" appref",0).ToSt ring(),e.srcEle m
ent.getAttribut e("appdata",0). ToString()));
break;
}
}
}
}

return false;
}

}
"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
Exactly what the subject says.
I have an ASP page that I want my C# windows application to open in
Internet Explorer, and if possible have it send along a list of values
from a list box. Thank you.

Nov 15 '05 #3
Brian,

In order to do this, you are going to have to create an instance of
InternetExplore r. Once you have that, you will have to connect to the
IWebBrowser2 interface, and then get the IHTMLDocument2 instance of the
document hosted in the browser. With that, you can access elements of the
DOM for the page that is being viewed, and subsequently manipulate it, etc,
etc.

To access internet explorer, you have to set a reference in COM to
SHDocVw.dll (Microsoft Internet Controls). Also, you will have to set a
reference to MSHTML.tlb, which there should already be a managed wrapper for
under the .NET tab in the references dialog, under Microsoft.mshtm l.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
Exactly what the subject says.
I have an ASP page that I want my C# windows application to open in
Internet Explorer, and if possible have it send along a list of values
from a list box. Thank you.

Nov 15 '05 #4
Nicholas,

Why?

The OP said he just wants to open his page in IE passing in the parameters,
he said nothing about the browser being imbedded on his form.

My solution may not specifically open IE but it will open the default
browser.
Regards
Brian W
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:u$******** ******@TK2MSFTN GP10.phx.gbl...
Brian,

In order to do this, you are going to have to create an instance of
InternetExplore r. Once you have that, you will have to connect to the
IWebBrowser2 interface, and then get the IHTMLDocument2 instance of the
document hosted in the browser. With that, you can access elements of the
DOM for the page that is being viewed, and subsequently manipulate it, etc, etc.

To access internet explorer, you have to set a reference in COM to
SHDocVw.dll (Microsoft Internet Controls). Also, you will have to set a
reference to MSHTML.tlb, which there should already be a managed wrapper for under the .NET tab in the references dialog, under Microsoft.mshtm l.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
Exactly what the subject says.
I have an ASP page that I want my C# windows application to open in
Internet Explorer, and if possible have it send along a list of values
from a list box. Thank you.


Nov 15 '05 #5
Brian,

My assumption is that when the OP said "pass it data" it meant to pass
it data from the app to a form on the page. If it is a form, then more
likely than not, it is going to be submitted with a POST, and not a get, in
which case, you can not just append the values to the URL. You would have
to automate IE in order to populate the form and submit it through an
external instance of IE.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Nicholas,

Why?

The OP said he just wants to open his page in IE passing in the parameters, he said nothing about the browser being imbedded on his form.

My solution may not specifically open IE but it will open the default
browser.
Regards
Brian W
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:u$******** ******@TK2MSFTN GP10.phx.gbl...
Brian,

In order to do this, you are going to have to create an instance of
InternetExplore r. Once you have that, you will have to connect to the
IWebBrowser2 interface, and then get the IHTMLDocument2 instance of the
document hosted in the browser. With that, you can access elements of the DOM for the page that is being viewed, and subsequently manipulate it,

etc,
etc.

To access internet explorer, you have to set a reference in COM to
SHDocVw.dll (Microsoft Internet Controls). Also, you will have to set a
reference to MSHTML.tlb, which there should already be a managed wrapper

for
under the .NET tab in the references dialog, under Microsoft.mshtm l.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
Exactly what the subject says.
I have an ASP page that I want my C# windows application to open in
Internet Explorer, and if possible have it send along a list of values
from a list box. Thank you.



Nov 15 '05 #6
Hi Nicholas,

I think that Brian's assumption is the correct one, the OP said an ASP
page, not an ASP.NET page, in ASP is usually used request["VARNAME"] and the
request object iterate in both the GET and POST collection ( do not remember
if those are the correct name ) so I think that his solution will do the
trick here.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:uW******** ******@TK2MSFTN GP09.phx.gbl...
Brian,

My assumption is that when the OP said "pass it data" it meant to pass
it data from the app to a form on the page. If it is a form, then more
likely than not, it is going to be submitted with a POST, and not a get, in which case, you can not just append the values to the URL. You would have
to automate IE in order to populate the form and submit it through an
external instance of IE.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Nicholas,

Why?

The OP said he just wants to open his page in IE passing in the

parameters,
he said nothing about the browser being imbedded on his form.

My solution may not specifically open IE but it will open the default
browser.
Regards
Brian W
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote

in
message news:u$******** ******@TK2MSFTN GP10.phx.gbl...
Brian,

In order to do this, you are going to have to create an instance of InternetExplore r. Once you have that, you will have to connect to the
IWebBrowser2 interface, and then get the IHTMLDocument2 instance of the document hosted in the browser. With that, you can access elements of the DOM for the page that is being viewed, and subsequently manipulate it,

etc,
etc.

To access internet explorer, you have to set a reference in COM to
SHDocVw.dll (Microsoft Internet Controls). Also, you will have to set a reference to MSHTML.tlb, which there should already be a managed wrapper
for
under the .NET tab in the references dialog, under Microsoft.mshtm l.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
> Exactly what the subject says.
> I have an ASP page that I want my C# windows application to open in
> Internet Explorer, and if possible have it send along a list of

values > from a list box. Thank you.



Nov 15 '05 #7
Ignacio,

Perhaps we should ask the OP? If they know that the request mechanism
uses GET in the HTTP protocol, then Brian's suggestion will work. However,
if it requires a POST, then my suggestion will have to be used, as the OP
will have to call the Navigate method to pass the POST parameters involved.

Also, whether or not it is an ASP page, ASP.NET, PERL, etc, etc, doesn't
matter. ASP doesn't lock you into using GET or POST exclusively for getting
data to the server from the client.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:uF******** ******@tk2msftn gp13.phx.gbl...
Hi Nicholas,

I think that Brian's assumption is the correct one, the OP said an ASP
page, not an ASP.NET page, in ASP is usually used request["VARNAME"] and the request object iterate in both the GET and POST collection ( do not remember if those are the correct name ) so I think that his solution will do the
trick here.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:uW******** ******@TK2MSFTN GP09.phx.gbl...
Brian,

My assumption is that when the OP said "pass it data" it meant to pass
it data from the app to a form on the page. If it is a form, then more
likely than not, it is going to be submitted with a POST, and not a get, in
which case, you can not just append the values to the URL. You would have to automate IE in order to populate the form and submit it through an
external instance of IE.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Nicholas,

Why?

The OP said he just wants to open his page in IE passing in the

parameters,
he said nothing about the browser being imbedded on his form.

My solution may not specifically open IE but it will open the default
browser.
Regards
Brian W
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote
in
message news:u$******** ******@TK2MSFTN GP10.phx.gbl...
> Brian,
>
> In order to do this, you are going to have to create an instance of > InternetExplore r. Once you have that, you will have to connect to
the > IWebBrowser2 interface, and then get the IHTMLDocument2 instance of

the > document hosted in the browser. With that, you can access elements of the
> DOM for the page that is being viewed, and subsequently manipulate
it, etc,
> etc.
>
> To access internet explorer, you have to set a reference in COM to > SHDocVw.dll (Microsoft Internet Controls). Also, you will have to set a > reference to MSHTML.tlb, which there should already be a managed wrapper for
> under the .NET tab in the references dialog, under Microsoft.mshtm l.
>
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mv*@spam.guard. caspershouse.co m
>
> "Brian F" <ss*******@Yaho o.com> wrote in message
> news:93******** *************** ***@posting.goo gle.com...
> > Exactly what the subject says.
> > I have an ASP page that I want my C# windows application to open
in > > Internet Explorer, and if possible have it send along a list of

values > > from a list box. Thank you.
>
>



Nov 15 '05 #8
I didn't mean to start a holy-war. ;)

The only thing that is clear here is that we both interpreted the OP
differently, as such, we both answered appropriately given our differing
interpretations .

I know better that to second-guess Nicholas, I was just trying to understand
why he answered the way he did, and now I know ;)

Regards
Brian W

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:uW******** ******@TK2MSFTN GP09.phx.gbl...
Brian,

My assumption is that when the OP said "pass it data" it meant to pass
it data from the app to a form on the page. If it is a form, then more
likely than not, it is going to be submitted with a POST, and not a get, in which case, you can not just append the values to the URL. You would have
to automate IE in order to populate the form and submit it through an
external instance of IE.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Nicholas,

Why?

The OP said he just wants to open his page in IE passing in the

parameters,
he said nothing about the browser being imbedded on his form.

My solution may not specifically open IE but it will open the default
browser.
Regards
Brian W
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote

in
message news:u$******** ******@TK2MSFTN GP10.phx.gbl...
Brian,

In order to do this, you are going to have to create an instance of InternetExplore r. Once you have that, you will have to connect to the
IWebBrowser2 interface, and then get the IHTMLDocument2 instance of the document hosted in the browser. With that, you can access elements of the DOM for the page that is being viewed, and subsequently manipulate it,

etc,
etc.

To access internet explorer, you have to set a reference in COM to
SHDocVw.dll (Microsoft Internet Controls). Also, you will have to set a reference to MSHTML.tlb, which there should already be a managed wrapper
for
under the .NET tab in the references dialog, under Microsoft.mshtm l.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Brian F" <ss*******@Yaho o.com> wrote in message
news:93******** *************** ***@posting.goo gle.com...
> Exactly what the subject says.
> I have an ASP page that I want my C# windows application to open in
> Internet Explorer, and if possible have it send along a list of

values > from a list box. Thank you.



Nov 15 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
23301
by: Mimi | last post by:
Hello, I am having trouble using the session vars in PHP 4.3.9 OS: Win XP Prof Web Server IIS (is local and there are no links to other servers from the web pages I work on) Browser: IE 6.0 The problem I am having is that each time I reload the same PHP page, I get
6
1835
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute going to be available in the <a> and Html Controls as well as opposed to just the <asp:Button> control?
3
3228
by: Scott | last post by:
Here is the scenario. I need to launch a popup using window.open, but can't pass everything i need to pass on the querystring. So I thought I would set a cookie. Basically I do: setCookie('NameList', aReallyLongListOfNames); window.open(aWindowThatNeedsToReadNameList); then in the window (on the server side) I try to access the cookie,
2
9477
by: Lajos Kuljo | last post by:
Hi, if I opened a php-page using ... onclick=\"help=window.open('help.php', 'Help', 'innerHeight=400,innerWidth=400,screenX=555,screenY=250,dependent=Yes,bar=Yes'); .... is there a way to send data to the invoked page (help.php)? Something like $_POST if I would use a HTML form-submit? Setting cookies or store data in mysql are not so very elegant solutions.
2
4369
by: Rashrashetta | last post by:
Hi all, I am a beginner in using ASP.net, and I want to ask: If I have two web-forms in the same project(Web-Application) and I want one of them to open the another via a button? How can I do it? And what if I have each one in a different project??? How can this be done? Regards, RASHRASHETTA
1
2625
by: Vaughn Haybittle | last post by:
Hi, I have an asp.net page with three Drow-Down-Lists and a Gridview server control. I want to open a new window from this page and open another .aspx page in this window. I also want to be able to pass the 'SelectedValue" property of the gridview and Drop-Down-Lists into the new window so that I can use them to further process data. I know that there are a few options to do this. What are they, and which is considere dto be best...
6
2393
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not completed finished, the second browser jusk pick up some session variables from the first browser and process right after that. It messed up everything. I was thinking about use remote_addr, but it seems not working since we are behind the...
13
3542
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
7
2289
by: Andy B | last post by:
I have a class I am creating for data access. I need to access controls from inside the class that are on a particular page. How do I do this? or is creating an instance of the page class and using FindControl the only way to do it?
0
8357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8277
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8581
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5612
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.