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.
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 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?
can anyone teach me how to use request.form? i normally search through the internet is normally request from the same page. what if i request from different page? how can i write?
the first top page izzit i write execno = request.form("execno") ???
Select Case request.form("posted") case 1 case 2 case 3 case else end select
Here is my case statment each case has a form, which holds a varible named posted. There is a problem however, once the refresh button is pressed it &*#$# up. I need to set request.form("posted") to nothing and it would be good to know how to set all of request.form.
The problem is, I always do not know what the name of the field can be. But I know that it ends with a "_1"
Is there anyway I can do it..Like a right function to check the last letter and select the fild name. So even if it is "sun_1" or "moon_1" I can use it..
I'm working on a project that requires me to send an xml request. The problem is that the location I am querying needs to remain hidden so I can't use javascript otherwise they would just view the source and gain access to the database.
This database also has support for html requests, but it would require the username and password are sent in the url so again I would need to somehow make this request using asp so I can keep that hidden.
I want to pass a Request.Form variable to an ASP form, through the url for example lets say i have a form with a textfiled called "txtName" if i click the submit button for example the asp page reads the content of this txtName as Request.Form("txtName") I want to achieve that the asp form is accessed through a URL where i can pass the value of txtName without going to the page of the form and clicking the submit button