Its related to datatable in gridview store in session and then session retrive and store to database. basically i am using gridview here creating new row for button click and these row adding untill user's last entry then submit all these entry to database. so i want to use session variable to store this data temporarily and after final entry user click on submit button and all data shold be save in db.
i have a web page in asp.net.vb code and sql database.
the persons number is called PNUMB and i have stored all photos of persons in a folder with the persons number (PNUMB) as their file name. when i search for a PNUMB i want to display the photo of the persons whose dtata is displayed. how i sit possible
I have followed the example from this page for vb.net. [URL] The upload works fine, but not the download. Everything is as the example but its not working. This in running in my development enviroment i.e httpL/localhost. Do i have to configure my asp.net or something, or the image control on my web page.
My problem is regarding title written above. Currently I have some functions that rely on Sessions to do the job. Everything works smoothly when it is left to default. However, I do not like the idea of losing sessions in case of crash and I have modified my web.config to use Sql Server mode instead.
I have run the necessary commands to create tables and stored procedures in my database using aspnet_sql.exe. I am able to store values into the database but have not been successful retrieving them. Since it has been working fine with InProc mode, I think I can safely assume that there's nothing wrong with my codes. Here's my web.config setting:
I am trying since more than 5 days to retrieve and display an image in a web page, no success so far.1. I have a table named image, with three fields ImageID, Img_data, Img_contenttype .2. I am able to display the ImageID as a link in my page.3. On clicking the link i am going to my viewImage.aspx?img=ImageID .This far it works ok. ImageID is passing in the query string.4. In this page imageID is being captured from query string and stored in ImageIdview int variable. viewImage.aspx has an image tag to display the image as below.
i have created a table in sql server 2005 with two fields ImgId and ImageURL,where ImgId holds the serial number and Image URL holds the URL of the image file about where it is located in my hard disk.
Now i want to retrieve images from the database using its filepath.
I think i had done everything right,I tried to retrieve images in a gridview but dont know why it doesnt shows anything when i build the code.
im new to playing with storing and retrieving image to and from database Now i successfully store image into database and able to display it But the problem is the displayed image is too big eventhough it is originally quite small, around 300x400, but display like 800x600 So how do i set the width and height of it?Below is my image storing code