Navigation of Image field

Posted by Anilkumar431 under ASP.NET on 12/1/2012 | Points: 10 | Views : 688 | Status : [Member] | Replies : 3
hi all,
i am developing one asp.net application .
In this i have one image field . If i click on the image i need to navigate to one page to another page..
i am not getting that..
please help me urgent.......




Responses

Posted by: Sravya on: 12/1/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Anil,

<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList_ID" runat="server">
<asp:ListItem Value="~/RedRose.aspx" Text="RedRose"></asp:ListItem>
<asp:ListItem Value="~/YellowRose.aspx" Text="YellowRose"></asp:ListItem>
</asp:DropDownList>
<asp:ImageButton ID="ImageButton1" OnClick="Imagebutton_Click" ImageUrl="index1.jpg" runat="server" />
</div>
</form>

In codeBehind..
protected void Imagebutton_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect(DropDownList_ID.SelectedValue.ToString());
}

With Regards,

Anilkumar431, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anilkumar431 on: 12/1/2012 [Member] Starter | Points: 25

Up
0
Down
Thanx alot sravya ......

Anilkumar431, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sravya on: 12/1/2012 [Member] Starter | Points: 25

Up
0
Down

Thank You..



Anilkumar431, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response