[Mono-bugs] [Bug 572781] New: OnInit event of SqlDataSource does not fire.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jan 21 15:20:53 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=572781
http://bugzilla.novell.com/show_bug.cgi?id=572781#c0
Summary: OnInit event of SqlDataSource does not fire.
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86-64
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: kuritsu at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; es-MX; rv:1.9.1.5)
Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Having this in an ASPX page:
<asp:SqlDataSource id="sdsMySource" runat="server" OnInit="sdsMySource_Init" />
And this in the code-behind:
protected void sdsMySource_Init (object sender, System.EventArgs e)
{
Response.Write("Here!");
}
No message is displayed. Tried writing to a file, to a database, or doing
something visual and no results. So, the control does not fire the OnInit
event.
If you substitute <asp:SqlDataSource by <asp:Panel, the OnInit fires with no
problem.
Reproducible: Always
Steps to Reproduce:
1.Create a new ASP.NET project in MonoDevelop.
2.Add an SqlDataSource control in the Default page.
3.Set the OnInit attribute to a valid method name, remember to add the id and
runat="server" tags also.
4.Implement the method in the code-behind and do some visual stuff, like
Response.Write("Done!").
5.Run!
Actual Results:
No output in the webpage.
Expected Results:
Should have being a text like "Done!" or something that indicates the event
fired.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list