ramesh p

ramesh p

  • NA
  • 109
  • 0

problem with asp:FileUpload control

Apr 21 2009 4:43 AM

I have problem with the asp:FileUpload control. I placed one upload control on the webform. In runtime i clicked on the browse button and i got the url in the fileupload textbox. Now, i have to save the url in the database.
I have written code like this:

lobjVehiclesInfo[0].AttachmentFile=AttachFileUpload.FileName.ToString();
here i am recieving null in the "FileName.ToString()". How to acheive this probelm?


Answers (1)