All I want is to click the raddiobutton1 and have my application set Image1 borderstyle solid and bordercolour to red.
Can anyone show me by code using RaddioButton1 and Image1 IDs of asp.net controls?

Hey Very Good Guy

Drag and drop an image and a radio button onto your page

Double click the radio button.

Add this code (which you have probably already figured out)

        Image1.BorderColor = Color.Red
        Image1.BorderWidth = 2

Then, you will need to change the radio buttons attribute "autopostback" to "true" either by right clicking on the object and setting or or declaring it in the aspx file:"

<asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" ></asp:RadioButton>

If you don't do this, you won't see the change because the page doesn't refresh.

Remember to vote me up if this fixed your problem!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.