|
hi,
i am programming website in which i am uploading image to the server...
my file and the folder( in which image is going to upload ) they are present in the same directory. i am writing this code...
Upload.Save("Upload_Image")
when i am giving absolute path then my programm is uploading the image.. but when i am giving relative path then it is not uploading the file to the server...
how to know the drive name of the server ....in which my file will be present....
can any body help me...
|
|
|
|
|
If I understand you correctly you need to use the Server.MapPath method.
This will turn your relative path into an absoulte path.
|
|
|
|
|
thanks for your kind help....
|
|
|
|
|
Hi All...
I have a problem that I will write you down.
I have a web page that use client side xmlhttp ( "Microsoft.XMLHTTP" with javascript ) object to update a piece of data in the page. It work well, accept the clients which use PROXY server to reach internet. Clients with Proxy always gets the oldest data. What can I do to overcome proxy problem when using xmlhttp in client side to reach the data on my server?
tahnx a lot...
not: I use asp with windows 2000 server on server side and I allow only ie 5.5 up broser to see that page.
karanba
|
|
|
|
|
I think you need to set the expiration (which is a header) on the page. I think something like Response.Expires = 0 is what you are after.
|
|
|
|
|
how do i set focus to a text box on my webform. and i was also wondering how do i link the enter key to one of my buttons
thanks
chad
|
|
|
|
|
|
Here's my situation. I've got an ASPX page that needs to be refreshed with new content every few seconds, but that amount of time is variable. I'm sending that variable to the page from the server-side application on every refresh. That way, theoretically, the page can automatically refresh when that variable amount of time is elapsed and thereby get a new amount of time to count down.
Setting up a JavaScript reload function is easy enough, but I can't find a way to get that ASP variable into the Javascript, as the JavaScript seems to be able to only access HTML form components and not ASP form objects.
So, I either need a way to get an ASP variable into the JavaScript, or I need a different client-side script that can actually get that variable from an ASP control and is still capable of causing a PostBack like JavaScript can. Any ideas?
Thanks for your help!
|
|
|
|
|
Well if you think about it, all the server is doing is outputting text, whether that text is HTML, javascript etc.
So you could output something like this:
<javascript block="">
setTimeOut(<%= Some Variable calculated on the server%>);
<javascript block="">
This would be sent to the client like:
<javascript block="">
setTimeOut(500);
<javascript block="">
Of course this is oversimplified, you could create custom controls that are a little more elegant and reusable.
|
|
|
|
|
How do I connect an Access database to an XML procedure.
RP Max
|
|
|
|
|
what is the best way to get variables from one webform to another without over loading my server by usering session
chad
|
|
|
|
|
hi,
there are three ways by which u can transfer the varable from one page to another page...
1-> by using request("variablename").
2-> by using session("variablename")=value..
3-> by using
but by maintaing the session it is easy to tranfer the variable from one page to any other page... this is the best way..
bye
chandan sharma
|
|
|
|
|
how do i pass them using hidden fields
chad
|
|
|
|
|
by using hidden field
in this way u can use the hidden value concept...
when u will go to the next page u can reterive the value of this variable... by using request("variable_name")...
* remember this hidden value tag should be present under the form tag....
ok
|
|
|
|
|
And there is a fourth method[^]. Using properties and the context.handler.
|
|
|
|
|
hi,
i have used a datagrid control to display the data in my aspx page.
i have also set the validation controls to required fields and it works!
but it works a bit too well!!
let me explain the scenario a little bit.
i have used template columns for all the data fields and at the footer of each column, i have placed an empty textbox for accepting new records.
Furthermore i have a separate template column to show the edit, save/update and cancel buttons, and at the footer of this column i have placed another set of buttons for saving the new entered data.
i have placed a required filed validation for one of the fields 'User Id'. this validation is also at the footer of the column, therefore it checks for the insertion of a NEW User Id. When the no data is entered, the validation works and the error messege is diplayed. also the save button for the new record does not work. but the problem is that the edit buttons dont work as well. and i want all the other buttons to work except for the saveing the new record.
well i have explained a bit too much havent i? sorry about that! i have tried to be as short as possible.
but please is there any way around this. i am also willing to use javascript, but i am not very familiar with its use. so please recommend me some good links or code.
thanx in advance!
☺«««DTA»»»☺
|
|
|
|
|
a have a webform written in asp.net with a hidden field on it is there a way i can get the info from the hidden field when i get to the next web page like i could do in asp like "Request.Form["test"]" would return me what was in the test hidden field from the prev page
chad
|
|
|
|
|
You can still access the Request collection:
Request.Form["test"]
|
|
|
|
|
Please help me..
I am developping an application using an Access database with (N) number of records The Records should be RANDOMLY selected and displayed one by one on completing each records conditions.
RPMAX
|
|
|
|
|
Randomize()
RandomValue = (N+1)* Rnd()
Move to the first record and then Move to the Next Record for RandomValue times.
You can do this, if you don't have too much records.
rpussewela wrote:
completing each records conditions
What condition?
Why do you want to get RANDOM record?
<italic>Work hard, Work effectively.
|
|
|
|
|
Hello All,
I have a webservice that im deploying to several of my local test servers. I usually bring up the webservice.asmx page on the server and call a couple of functions just for testing. Well, on one of the servers, a windows 2000 box, it does indeed of the .net framework 1.1 and iis is running, the page doesnt come up. It shows something like this:
<%@ WebService Language="c#" Codebehind="CProcurementService.asmx.cs" Class="com.emphasysworld.procurementservice.CProcurement" %>
on a plain blank white page. If I try to access the page from a computer other than the server, it ask's me to download the page. It seems to run just fine on the other servers. Any suggestions?
Ryan
|
|
|
|
|
hello,
i am beginner to this field i am programming a website that requies uplaod a file on the server by using asp ...what i need is guideline from someone.. regarding this one. please help me out ....if u have some code then please forward me that...
thanks
chandan sharma
|
|
|
|
|
|
Hi
i am programming website i am using asp and javascript ... what i am trying to do is i have have take 4 drop down boxes and on the change of ones value other is changing its value ...it is working fine at the end of the table there is one imge button when i am trying to submit that form ... it is taking me back to the same page ..what i want is that on click on the button form should go to next page...
i am trying javascript : action but it is not working well please help me out..
thaking you.
chandan sharma
|
|
|
|
|
chandan sharma wrote:
on the change of ones value other is changing its value
You mean when one drop down value changes, it will change the others drop down value?
chandan sharma wrote:
submit that form
What happened when the form is submitted? What is the code?
chandan sharma wrote:
next page
What is 'this' next page?
<italic>Work hard, Work effectively.
|
|
|
|