Hi,
This is the first time I use ObjectDatasourc e, I have the following
declaration in aspx file:
<asp:ObjectData Source ID="odsSubmissi ons"
SelectMethod="L istBandContesta ntPaged"
runat="server"
StartRowIndexPa rameterName="st artRow"
MaximumRowsPara meterName="page Size"
SelectCountMeth od="GetBandCont estantCount"
EnablePaging="t rue"
TypeName="BandC ontestAdmin">
<SelectParamete rs>
<asp:Paramete r Name="campaignI d" />
</SelectParameter s>
</asp:ObjectDataS ource>
In code-behind I have:
public DataTable ListBandContest antPaged(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(objec t sender, EventArgs e)
{
campaignId = int.Parse(Reque st["campaignid "]);
}
Doesn't work at all, I keep getting campaignId as 0 inside
ListBandContest antPaged function.
TIA
This is the first time I use ObjectDatasourc e, I have the following
declaration in aspx file:
<asp:ObjectData Source ID="odsSubmissi ons"
SelectMethod="L istBandContesta ntPaged"
runat="server"
StartRowIndexPa rameterName="st artRow"
MaximumRowsPara meterName="page Size"
SelectCountMeth od="GetBandCont estantCount"
EnablePaging="t rue"
TypeName="BandC ontestAdmin">
<SelectParamete rs>
<asp:Paramete r Name="campaignI d" />
</SelectParameter s>
</asp:ObjectDataS ource>
In code-behind I have:
public DataTable ListBandContest antPaged(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(objec t sender, EventArgs e)
{
campaignId = int.Parse(Reque st["campaignid "]);
}
Doesn't work at all, I keep getting campaignId as 0 inside
ListBandContest antPaged function.
TIA