I am trying to update the imageurl that the Image2 control looks at. I keep getting inner html problems...meaning I didn't write the dynamic page that keeps popping up. Please help.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">www.w3.org/.../xhtml1-transitional.dtd">
[System.Web.Services.WebMethod()]
[System.Web.Script.Services.ScriptMethod()]
public static string GetDynamicContent(string contextKey)
{
System.Threading.Thread.Sleep(500);
string img_hdr = "ImageUrl = ";
string img_lctn = "";
string final = "";
if (contextKey == "y")
{
img_lctn = "~/Indicator Light/yellow.bmp";
}
else if (contextKey=="g")
{
img_lctn = "~/Indicator Light/green.bmp";
}
else if (contextKey == "b")
{
img_lctn = "~/Indicator Light/blue.bmp";
}
else
{
img_lctn = "~/Indicator Light/red.bmp";
}
final = img_hdr + img_lctn;
return final;
}
protected void cmdHome_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 0;
}
protected void cmdEval_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 1;
}
protected void cmdPyramids_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 2;
}
">www.w3.org/.../xhtml">