Author: nbramwell | Posted on: 10/1/2008 1:48:18 AM | Views : 405

Hi,

I am working on an events guide that involves uploading an image, this works fine when I test it locally but when I try to run it from our Web server instead of returning to the page the browsers goes to http://dev.intranet/ and I get an error to say the domain name does not exist.
protected void sdsEvents_Inserted(object sender, SqlDataSourceStatusEventArgs e)
{
if (e.AffectedRows > 0)
{
string newId = Convert.ToString(e.Command.Parameters["@newId"].Value);

FileUpload imageUpload = dvEvent.FindControl("fuImage") as FileUpload;
if (imageUpload.HasFile)
{
string baseDirec ...

Go to the complete details ...