I'm trying to assign a default value to my radiobuttonlist but for some reason the following code gives "Build Failed" when I publish my web.
What's wrong with this code? Please help.
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack = False Then
radStatus.SelectedValue = 1
End If
End Sub
What's wrong with this code? Please help.