i an having a data table it contains lakhs of records, when i am getting this data, my browser is becoming slow.
how can i get the data to a specific range(example :1000 at one time)paging concept will work for this....
I actually suggested it because in the given scenario ,its having lakhs of records which is not feasible to store at server memory and if its going to be user specific then its going to hazardous for the server and performance of application
In all it depends on the requirement and the size of data
I've tried it with and without the Server.MapPath.
The resault without the server.mappath was "The SaveAs method is configured to require a rooted path..bla bla bla"
With the Server.MapPath it works but not the way i need it. as i said it inserts only the file's name to the DB.
The FileUpload control has a SaveAs(string path) method. You can use that method to save the file to any path using any filename you want. Just make sure ASP.NET has permissions to write to that path. So, you can do something like this to save the uploaded file to the uploads folder in the root of your website:
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