Last post May 31, 2011 10:33 PM by rivdiv
May 31, 2011 10:01 PM|hkbeer|LINK
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
label1.text = "test 1"
I want the above code to cause the sqldatasource selected so that below code is fired
Protected Sub SqlDatasource1_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs)
Label3.Text = "fired"
I found label1.text becomes test1 so page load event is fired, but label3 does not become fired meaning onselected in sqldatasource is not fired. I already added onselected="Sqldatasource1_Selected" in the sqldatasource1 control..
What am I missing ?
May 31, 2011 10:33 PM|rivdiv|LINK
You could fire the Selected event by calling: SqlDataSource1.Select(DataSourceSelectArguments.Empty)
(If the SDS would be attached to a databound control, it would be called automatically)