Why does it happen (only some times) that when I add an event handler to a control it doesn't give the intellisense option to generate a new event handler. This results in Visual studio 2012 not creating the code in the background to associate the control with the event.
I can go an manually create the event, but like I said, it creates other background code to associate the control with that event handler.
asp.net
<asp:DropDownList ID="drpdwnRecordId" runat="server" Visible="false" OnSelectedIndexChanged="MyOwnEventHandler_OnSelectedIndexChanged">
<asp:ListItem Text="Please Select a Record ID" Value="nothing"></asp:ListItem>
</asp:DropDownList>
c#
protected void MyOwnEventHandler_OnSelectedIndexChanged(object sender, EventArgs e)
{
}
Why is this happening? How can I fix this, or is there a way that I can go and write that background code myself (and is it a good idea?)