Skip to content
Advertisement

Upload data into sql table

this is the code given to me:

Basically what this code does is add the values from textbox into sql server. But i need help at mail.BodyImagePath. The text creates a URL for the location of image stored on the server and i need to store that “URL” into the sql table. Any idea how i should do it?

Advertisement

Answer

Just save the image path in string variable within the if condition and update it using your sql query:

Note: Do that before Response.Redirect("MotivationUI.aspx"); or within your if condition after assigning path to variable.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement