Hi,
This is the first time I use ObjectDatasource, I have the following
declaration in aspx file:
<asp:ObjectDataSource ID="odsSubmissions"
SelectMethod="ListBandContestantPaged"
runat="server"
StartRowIndexParameterName="startRow"
MaximumRowsParameterName="pageSize"
SelectCountMethod="GetBandContestantCount"
EnablePaging="true"
TypeName="BandContestAdmin">
<SelectParameters>
<asp:Parameter Name="campaignId" />
</SelectParameters>
</asp:ObjectDataSource>
In code-behind I have:
public DataTable ListBandContestantPaged(int campaignId,int startRow, int
pageSize)
{
}
Question: in the code behind, how do I change the value of campaignId in
code-behind?
I tried
protected void Page_Load(object sender, EventArgs e)
{
campaignId = int.Parse(Request["campaignid"]);
}
Doesn't work at all, I keep getting campaignId as 0 inside
ListBandContestantPaged function.
TIA