C
ca___t
Hi there:
I have a web image control and a web button in my aspx page.
Then I change its src property use by javascript at client side. But I
cann't get change value of image control when I click the button submit
this Form.
My question is how to get the value
This is my source
private void Page_Load(object sender, System.EventArgs e)
{
Image1.Attributes.Add("onclick", "appear();");
}
private void Button1_Click(object sender, System.EventArgs e)
{
string imageUrl = Image1.ImageUrl;
}
function appear()
{
var temp = window.document.getElementById("Image1");
temp.src = "image/cek_box_22.gif";
alert(temp.src);
}
Thanks a lot
jiangyh
I have a web image control and a web button in my aspx page.
Then I change its src property use by javascript at client side. But I
cann't get change value of image control when I click the button submit
this Form.
My question is how to get the value
This is my source
private void Page_Load(object sender, System.EventArgs e)
{
Image1.Attributes.Add("onclick", "appear();");
}
private void Button1_Click(object sender, System.EventArgs e)
{
string imageUrl = Image1.ImageUrl;
}
function appear()
{
var temp = window.document.getElementById("Image1");
temp.src = "image/cek_box_22.gif";
alert(temp.src);
}
Thanks a lot
jiangyh