|
friend
i m working on microsoft tech. like ASP, VB6, SQl server
but i just wanted to know that??
Thanks,
Ankur Bakliwal
|
|
|
|
|
What are you using it for?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
What is web post ?? why we r using this term??
thnaks for any information
Thanks,
Ankur Bakliwal
|
|
|
|
|
A web post is what you will find on many a digital rugby field.
|
|
|
|
|
I m not getting u??????????????????
Thanks,
Ankur Bakliwal
|
|
|
|
|
rugby fields have posts, the web is digital - web posts must be from a digital rubgy field....!
|
|
|
|
|
|
I tried to figure out (for couple of days now) how to check to see if a remote file exists on a different server where the web application is running. If it was on a same server I would just use server.mappath and I would have no problem. But the files are on a totally different server on different domain. So, what I'd like to do is just say checkIfThisFileExistsOnRemoteServer(http://someserver.com/directory/file.pdf)
Is there a asp.net (C# or VB.NET, does not matter) way to do this.
Thank you, in advance.
- Chandman
|
|
|
|
|
Unless the folder has directory browsing enabled (which is quite unusual today), there is no way that you can check if a file exists.
You can request the file from the server and check the response that you are getting.
---
single minded; short sighted; long gone;
|
|
|
|
|
Yes, that's what exactly I want to do: Request the file from the server and the check the response. My question was how to make this request and how to read the response inside asp.net.
|
|
|
|
|
This depends on the protocol you will use to communicate with te remote host.
For example, in HTTP if the page you request does not exist you get a 404 response.
|
|
|
|
|
Yes, I am using HTTP and I'd like to get that 404 response if the file does not exist. My question was how to make this request and how to read the response inside asp.net. In college I learnt application layer protocols and I'd just send the requests to remote server such as SMTP, HTTP and send me responses like 404, 500 or whatever. I just want to do the same thing in ASP.NET.
|
|
|
|
|
Use the WebRequest object.
Here is an example, this example though uses POST to send some XML and gets the response as string.
play around with this and see what you get.
HttpWebRequest wrWebRequest = WebRequest.Create(theUrl) as HttpWebRequest;<br />
wrWebRequest.Method = "POST";<br />
wrWebRequest.ContentLength = theXml.Length;<br />
wrWebRequest.ContentType = "text/xml";<br />
<br />
StreamWriter swRequestWriter = new StreamWriter(wrWebRequest.GetRequestStream());<br />
swRequestWriter.Write(theXml);<br />
swRequestWriter.Close();<br />
<br />
HttpWebResponse hwrWebResponse = (HttpWebResponse)wrWebRequest.GetResponse();<br />
<br />
StreamReader srResponseReader = new StreamReader(hwrWebResponse.GetResponseStream());<br />
responseResult = srResponseReader.ReadToEnd();<br />
srResponseReader.Close();
Hope this helps.
|
|
|
|
|
Hello World!
I developed a Web User Control self-sufficient. Now I need to include it into an old ASP page.
Is there another way that include a aspx page which uses the web user control??
Thank you very much for the cooperation
fed
fed
|
|
|
|
|
|
Thanks for reply.
The iframe must contain an aspx page which include the user control right?
|
|
|
|
|
Hello All,
Can any one help me, How can I send arabic text with URL parameter after Question Mark "?"
Ala Qunaibi
|
|
|
|
|
|
Dear All,
I am working on WSE 2.0 and come around a situation where i need to develop a non WSE client which consumes a WSE 2.0 enabled web service.
My client is a normal aspx page where i am trying to consume the web service through javascript code(xmlhttprequest).
I have developed a SOAP message for the non wse client.
For this i extracted a "request SOAP message" to the same web service from a client which makes use of WSE 2.0.
i copied all this SOAP message as it is in to a client side variable and built the SOAP message for the non wse client.
When i send the request it gives the error that invalid username token.
Can anybody help me regarding this.
Eagerly awaiting
Ramesh.Kanjinghat
|
|
|
|
|
I have a webservice which is uses WSE X.509 standard & is built using .net. Is there any toolkit that enables us to access the web service from C++ client on LINUX?
Thanks a lot!
|
|
|
|
|
Hi, I have a web method that is very chatty, here is sample output from it;
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<types:MyWebMethodResponse>
<MyWebMethodResult href="#id1"/>
</types:MyWebMethodResponse>
<soapenc:Array soapenc:arrayType="types:MyType[1]" id="id1">
<Item href="#id2"/>
</soapenc:Array>
<types:MyType id="id2" xsi:type="types:MyType">
<Id xsi:type="xsd:string">someid</Id>
<Number xsi:type="xsd:string">Number 1</Number>
<Title xsi:type="xsd:string">Title</Title>
<Addr xsi:type="xsd:string">some address</Addr>
<City xsi:type="xsd:string">some city</City>
<State xsi:type="xsd:string">some state</State>
<Zip xsi:type="xsd:string">11111</Zip>
<Times href="#id3"/>
</types:MyType>
<soapenc:Array soapenc:arrayType="types:Time[256]" id="id3">
<Item href="#id5"/>
<Item href="#id6"/>
<Item href="#id7"/>
<Item href="#id8"/>
<Item href="#id9"/>
...
<Item href="#id258"/>
<Item href="#id259"/>
<Item href="#id260"/>
</soapenc:Array>
<types:Time id="id5" xsi:type="types:Time">
<StartTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</StartTime>
<EndTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</EndTime>
</types:Time>
<types:Time id="id260" xsi:type="types:Time">
<StartTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</StartTime>
<EndTime xsi:type="xsd:dateTime">2007-01-29T13:18:00.0000000-08:00</EndTime>
</types:Time>
</soap:Body>
</soap:Envelope>
All of those <Item href...> take up a lot of space, is there a way instruct .net not generate it?
This is the declaration over the webservice C# class file;
[WebService(Namespace=Constants.NAMESPACE), ToolboxItem(false), SoapRpcService]
The web method just has plain, [WebMethod] attribute and that's it.
Thanks,
|
|
|
|
|
On our webpage, we have this button:
<asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" Text="Refresh" UseSubmitBehavior="False"/>
Here's the code-behind (C#):
protected void btnRefresh_Click(object sender, EventArgs e)
{
Response.Write("<script language=\"javascript\">var confirmResponse = window.confirm('Refreshing. Continue?');</script>");
}
I want to display a confirm dialog (javascript) and have the website do something different based on whether the user clicked OK or Cancel in the confirm dialog box. How do I determine which button the user clicked in the code-behind?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
But, this means your page does a postback, THEN generates the confirm dialog.
Wouldn't it be better to have the script already on the page, and confirm before postback ?
The first parameter passed to the event handler is an object, it's called sender. It's the button that was pushed, just cast it to a Control to check it's Id, etc.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Wouldn't it be better
F***, I don't know - I'm a c++ programmer - I usually get to deal with REAL user interfaces instead of this 10-pounds-of-crap-stuffed-int-a-five-pound-sack-pseudo-interaction kinda idiocy...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Create an AtiveX control in c++ and use that in your html page.;P
Wout Louwers
|
|
|
|