S
sef
i have a server-side script that executes this:
linkbutton1.Attributes.Add("onClick", "linkClicked();");
the client-side code has an html image control
<img id="image1">
the client-side javascript function linkClicked looks like
this
void linkClicked(object sender, System.EventArgs e){
image1.src = "test.jpg";
}
what i would want to happen is when the linkbutton is
clicked, the linkClicked() function gets called to change
the image loaded on image1.
However this does not happen and no images are loaded. Any
insights on this?
linkbutton1.Attributes.Add("onClick", "linkClicked();");
the client-side code has an html image control
<img id="image1">
the client-side javascript function linkClicked looks like
this
void linkClicked(object sender, System.EventArgs e){
image1.src = "test.jpg";
}
what i would want to happen is when the linkbutton is
clicked, the linkClicked() function gets called to change
the image loaded on image1.
However this does not happen and no images are loaded. Any
insights on this?