0
Reply

Repeater Display prob

praveen khade

praveen khade

Jun 4 2008 1:09 AM
2k
I got a prob I am using a repeater to display the product docs. M using OnItemCommand but its not firing. can u tell me wat might be the prob, I made viewstate as enable.I am using Request.Query ,Wen i am commenting this line it works properly. I wnt to use Request.Query string

Plz help me

 <asp:DataList ID="dlData" runat="server"  DataKeyField="prod_doc_id" EnableViewState=true  RepeatColumns=3  RepeatDirection=Horizontal OnItemCommand="DoThis">
     <ItemTemplate>
    <table align="right"   style="vertical-align: top">
    <tr align="left" valign="top">
    <td >
    <asp:HiddenField ID="hf1" runat="server" Value="<%#Bind('prod_doc_id')%>" />
    <asp:LinkButton ID="lnbProddocs"   CommandName="Select"  Text="<%#Bind('doc_id')%>" runat="server">
    </asp:LinkButton>

protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["showproducts"] != null)
        {
            if (Request.QueryString["showproducts"] == "1")
            {
                mvUser.SetActiveView(viewProducts);
                //DataSet ds = new DataSet();
                //lblTest.Text = "";
                FillRepeater();
            }
        }    
}