the ID of your upload Control is "FileUpload1" in your example, not "fileUpload1". Always pay attention to the letter case. Same with GetFilename. The Method is written "GetFileName".
What the upload control does, is the following: it saves your
selected file to the file-system. No path-saving to your database at this point. Where
are you saving the path to your db? there you have to save the virtual path of your upload
folder in addition to your filename. Just concat the strings there.
What i was trying to say is that your posted code does not include any interaction with
your access database. It just takes the selected filename from your upload control and saves this
file to the desired folder. This code alone would not insert the filename into your access-database table.
"~/photo/" is the virtual path of your upload folder. Server.MapPath is needed to tranform this to the corresponding
physical directory on your web-server (e.g.: c:\http\mysite\photo). FileUpload1.SaveAs(...) saves your file to this folder.
i want to fetch time and date information separately from a datetime type field of a table created using sql 2005 of asp.net...i wasn't able to understand the pages displayed on google for the same query...??
i've used a gridview datasource control to display the schedule ....thr in i've specified the time field as datetime datatype in the table....nw when i'm displaying the page along with time, date is also being displayed...i don want to display the date....but only time....can you help me...???
Am doing aE-greetings project . so i need to send mail with some text and url of the greeting cards (which is selected by the user) . so pls help me and i have to send automatic email for reminders . please let me also know the technique behind this also. pls
Is any web monitoring tool by which if any type of problem is ocurring in my web server then an alert
mail we can find.by which we can save that problem and my web server will run without any problem.
If you know about monitoring tool then tell me ...
if you want to monitor only (without mail alert) there is an in-built utility in windows which you can find inside Control Panel --> Administrative tools -->Performance. There are different parameters mentioned and you can choose any combination and monitor server performance as per your need. It allows you to keep it running and recodring it into a log file so that you can monitor it even at your convenience time.
If you are looking for some mail kind of alert as a part of monitoring, I hope some other fellow aroud here might help you.
Thnks to Reply,
but I am looking for some mail kind of alert as a part of monitoring
of my webserver.
if you know any of the third party tool for monitoring it.
then tell me plese.
eathier it is paid or unpaid doesn't matter
please help me
my problem is that if once a user is logged in then there should not be visible login page again after entring url.
i mean suppose i have entered gmail.com in ie and login then if i again open gmail.com in new ie then login page is not there.while inbox page is open.i also want the same for my application.and on login page load i have done this.
if (Session["customer"].ToString() == "Admin")
and i am giving my value to Session["customer"] on login click button from txtuserid.so that's why it gives me error.object reference not set to an instance of an object.
please suggest me another suitable way to solve this issue.
i have an another issue.please suggest me.what should i do.
when ever i am entering my url in browser ie and login page will display and i am doing successfull login.and now when i opened new browser and enter url it will show direct user home.it is absolutely right.but now sir when i am entering my url in mozilla or new browser.it should not show user home.it should show login page.but it shows user home.
if you will try for gmail through ie.after login if you will open new gmail in mozilla it will not show inbox page while it will show login page.
Gmail - Your assumptions are not accurate. If you do not 'sign out' of gmail in mozilla, it will open the inbox page. Same with IE. IE and mozilla operate completely independant of each other. This behavior is usually acceptable.
Assuming you are using the aspnet membership provider, you can test 'signout' functionality using FormsAuthentication.SignOut();.
Anytime the signout is used, I also kill the session using Session.Abandon();.
The membership provider behaves similar to gmail if that is the desired result.
Last Visit: 31-Dec-99 19:00 Last Update: 4-Dec-23 19:17