Custom Control Not Posting Back
I have a user control:
<
div
id
=
"bug-wrapper"
>
<
h1
>
Report an Issue</
h1
>
<
div
id
=
"bug-note"
>
Note: The information you provide will automatically be emailed to the appropriate
person.
</
div
>
<
div
id
=
"bug-form"
>
<
asp:Label
ID
=
"courseLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
"Course:"
CssClass
=
"reportBugLabel"
/>
<
br
/>
<
asp:DropDownList
ID
=
"ddlCourse"
ClientIDMode
=
"Static"
runat
=
"server"
OnSelectedIndexChanged
=
"ddlCourse_SelectedIndexChanged"
AutoPostBack
=
"True"
/>
<
br
/>
<
asp:Label
ID
=
"lessonLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
"Lesson:"
CssClass
=
"reportBugLabel"
/>
<
br
/>
<
asp:DropDownList
ID
=
"ddlLesson"
ClientIDMode
=
"Static"
runat
=
"server"
Enabled
=
"False"
OnSelectedIndexChanged
=
"ddlLesson_SelectedIndexChanged"
AutoPostBack
=
"True"
/>
<
br
/>
<
asp:Label
ID
=
"componenetLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
"Component:"
CssClass
=
"reportBugLabel"
/>
<
br
/>
<
asp:DropDownList
ID
=
"ddlComponent"
ClientIDMode
=
"Static"
runat
=
"server"
Enabled
=
"False"
/>
<
br
/>
<
asp:Label
runat
=
"server"
ClientIDMode
=
"Static"
Text
=
"Email Address:"
ID
=
"emailLbl"
CssClass
=
"reportBugLabel"
/>
<
br
/>
<
asp:TextBox
runat
=
"server"
ID
=
"email"
ClientIDMode
=
"Static"
Width
=
"300px"
/>
<
br
/>
<
asp:Label
ID
=
"subjectLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
"Subject:"
CssClass
=
"reportBugLabel"
/>
<
br
/>
<
asp:TextBox
ID
=
"subject"
ClientIDMode
=
"Static"
runat
=
"server"
Width
=
"300px"
></
asp:TextBox
>
<
br
/>
<
asp:Label
ID
=
"detailsLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
"Issue Details:"
CssClass
=
"reportBugLabel"
/>
<
br
/>
<
asp:TextBox
ID
=
"details"
ClientIDMode
=
"Static"
runat
=
"server"
TextMode
=
"MultiLine"
Rows
=
"10"
Width
=
"500px"
/>
<
br
/>
<
asp:Label
ID
=
"errorLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
""
/>
<
br
/>
<
asp:Button
ID
=
"SendMail"
runat
=
"server"
OnClick
=
"SendMail_Click"
Text
=
"Send"
CssClass
=
"reportBug-button"
/>
<
asp:Label
ID
=
"sentLbl"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
""
/>
</
div
>
</
div
>
Never mind... figured it out. Needed to add EnablePageState directives to the master page.
Thanks,
Chris