W
wardemon
Hi,
I have an image control which inside an ItemTemplate of a GridView
Control.
I've coded the ImageControl's ImageURL in "Source" to have a
dynamically filled-up value
ex: ImageURL = <%# FormatImageURL() %>
CodeBehind: private function FormatImageURL
{ DropdownlistControl.SelectedValue }
When page loads for the first time, everything is okay.
The ImageURL has the correct ImageURL , w/c is equivalent to the
DropDownListControls's default SelectedValue.
However, once I've manually change the DropDownList's selected value
in the UI,
after the page PostsBack, the ImageURL value remains the same, even
though
the DropDownListControl's SelectedValue has now been changed.
My question is now, how do I change the ImageControl's ImageURL value
whenever
I change the DropDownListControl's SelectedValue manually in the UI?
Thanks,
Henry Wu
I have an image control which inside an ItemTemplate of a GridView
Control.
I've coded the ImageControl's ImageURL in "Source" to have a
dynamically filled-up value
ex: ImageURL = <%# FormatImageURL() %>
CodeBehind: private function FormatImageURL
{ DropdownlistControl.SelectedValue }
When page loads for the first time, everything is okay.
The ImageURL has the correct ImageURL , w/c is equivalent to the
DropDownListControls's default SelectedValue.
However, once I've manually change the DropDownList's selected value
in the UI,
after the page PostsBack, the ImageURL value remains the same, even
though
the DropDownListControl's SelectedValue has now been changed.
My question is now, how do I change the ImageControl's ImageURL value
whenever
I change the DropDownListControl's SelectedValue manually in the UI?
Thanks,
Henry Wu