I am trying to write an ASP page that would forward an XML request
to a remote server, and then write the response to the client (a
kind of proxy, if you like).
I am sending the query to this ASP via a VBA (access2k) procedure,
which basically looks like :
Dim oXMLHTTP As New MSXML2.XMLHTTP40
Const strURL As String = "http://myserver/myasppage.asp"
Dim strResponse As String
I want to move to next data in the data set, however i am not sure what is the syntax. Can anyone who know please advise me?Code:
strsql = "select main_cat_id, cat_name from main_categories where main_cat_id in (26,27,28,29)" set rs = connectdb(strsql,strconn) for i=0 to rs.recordcount response.write rs("main_cat_id")&"<BR>" rs next next
In an ASP.net application I would dearly love to disable or intercept the User's click on the browser's Back and Forward buttons so that the application can control page navigation.
I suspect this only makes sense Clientside - perhaps each aspx page could destroy history? Has anyone any suggestions?
I have a fullscreen page which needs to incorporate a forward, back, and close button. I have this working fine but after a review, people suggested that the foward and back buttons not be active if they do nothing.
In other words they want them to function exactly like a standard browser's forward and back button. When you open a page in a new window, the back button is grayed out until you move to another page. The forward button is grayed out until you move back a page.
Can this be done?I need to place a grayed out image if there is no back history or forward history. Otherwise, I need an active image with the back and foward action.
How do I force the page to refresh when the user hits the back button on the browser? I have an 'add' record form and I have inserted code so that it will not duplicate if the user submits the form several times.
however I just discovered that if the user goes forward then back and submits again it will create a new record. I want it to display the 'page expired' message.
I have never done the ASP programming yet but I want to hear the logic of the programming and see the sample code so I can have a better idea of how it work...
I have noticed that on one of hte ASP website, it was able to detect whether I did the back/forward button and blocked it.
Why does the error below occur whenever the statement Request.BinaryRead Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K limit applied only to Request.Form. This does not occur with smaller uploads. This is running on an IIS 6 server with full FP2002 extensions.
when the asp page is Request("txtName").i can use "testpage.aspx?txtName=User1" to post the value.but when i use Request.Form("txtName").i cannot use that method,what can i do to solve that problem.(as i cannot modifty the request.form syntax but i need to post data to that web page, is there any method so that i can pass that parameter?)
I am developing site in asp where I need to call a url at every interval. Is there a way to automate this. I want to call the url every 15 or 30 mins.Cureently I have written a asp script tp call it using
Set objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1") objWinHttp.Open "GET",URL objWinHttp.Send ' Send it. strResponse3 = objWinHttp.ResponseText ' Get the response string from the object.
But it is not schedule..I can call it only when I rum the asp script. So is there any way I can schedule this url call for every 15/30 minutes. Also forgot to mention : the site does not have that much traffic that I can add it in index page...there may be a user visiting the site in 5 hours time or within next 5 mins or for next 2 days there may be no visitor.
I have a form which shows all Records from a database eg. select * from sometable
the user inputs criteria in a form on the sam page and submits it. i need to see if the form has been submited. and the way to do it is to see if i have 'Request.form(somefield)' and then refrase the sql into something like
select *from table where something=this and somethingelse=this my problem is that i have to check every form field to see if it has been set(not empty).Is there a way to see this without checking every form field?
I created a ASP which has a form as well. The form has a list box.On the click of the submit button I wanted to just display the contents selected from the list box.
When in the VB script part I say dataString = Request("Data_List"), (where Data_List is the list box id) it gives me an error message saying "Object Required. Request"
I tried it with the text box also. It gave me the same message.
I have use many request already but this time i really don't know how. Here is my problem, I use Request("var1") to request the form that i have submit it and it always nothing. but when I use Request.form to show all, it appear all include that variable too. And the web server is IIS 6.0 with windows 2003.
I have a problem! Lets see if i can explain it....
if the querystring referrerid = "" then the page crashes. i.e. .com/register.asp?referrerid= so its blank.
If request.querystring("referrerid") = "" then
I tried using a redirect to the same page without the querystring but the code still picks this up as being <request.querystring("referrerid")= "" > and ends up looping.
I don't want to replace the "" with anything because a form box takes it information from there or a session("referrer") if the user has entered incorrect details in the registration and been returned to the same page.
Does that make enough sense for anyone to make any sense?
I use the Request.QueryString to pass variables from one page to another in ASP but my question is how can I pass a variable such as the one used in Request.QueryString from an ASP page to a XSL page?
I've got a form handler that I'm useing to grade a test. The test contains some random questions pulled from a database. I'm wondering if there is a way with the request object, to get the name of the form element from the page with the form in addition to the information entered in the text box, or the value of the radio button clicked. I can get the value's from text boxes and the values of radio buttons selected, but I can't get the name of the form element. I've looked in the reference material I've got and Googled for an answer, but can't seem to find one.
The asp page I developed works fine on my development machine and local IIS. When I load the page from the production server console, using an older version of IE, the page executes twice. I modified my variables with javascript to verify that the request is being sent twice from the client. I further proved this by accessing the production page from my development machine, and it works fine. This has never happened to me before. How can I figure out why the page is being sent twice from and older IE, and are is there a nice work-around? My ugly work around is to just modify my variables(javascript) after I submit so the second submit does not do anything.
Why ASP's MS XML HTTP request object gets another page's HTML source without interpreting path differences. For example, if my page is:
www.test.asp/one/two/page1.asp
with XMLHTTP getting source code of page:
www.test.asp/one/page2.asp
and this latter page has a CSS with path ../include/css.css, it won't be used in page1.asp because path will stay as it is "../include/ css.css", not "../../include/css.css" as needed for page1.asp?
I have a problem with a customer's XML being submitting to me in a non-well-format XML. They said that there are 18 other partners who has been able to tweak the XML to make it work. So I guess here is my question, in ASP, when working with XML, how do you handle non-well-formed XML documents on the "listener" response side?
Here's the scenerio:
Customer post XML Data to us (non-well-formed XML) ie: <sites> <mytag1>http://sonny.com/</mytag1> <mytag2><![CDATA[http://google.com?search=hellow+world&language=EN]]></mytag2> <mytag3>http://mysite.com/helloworld/?myvar1=123&myvar2=abc</mytag3> </sites>
Looking at the XML data above the mytag1 and mytag2 are fully W3C XML conformed XML syntax, however the mytag3 is NOT. there are 2 tags in XML that are considered illegal characters in XML data, the "&" and the "<". In our case it's the "&" that's giving us grief.
Ok continue on, the customer sends this messed up format to me and I open it up with the MSXML DOM object and it craps out. Because it can't load the REQUEST XML.
Anyone know how to PULL the REQUEST value to a STRING variable? here are some sample codes I've tried.
sample 1.
Set X = server.createobject("Microsoft.XMLDOM") X.async = False X.Load(REQUEST) strXML = X.xml Response.ContentType="text/xml" Response.Write strXML
Both doesn't work with the non-well-formed XML sent, Sample 2 doesn't work regardless, however Sample 1 does work with a well structured XML document. Anyone know how I can pull the XML from the REQUEST so that I can manipulate the string and format it so that it is parsable by the XMLDOM?