473,382 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Repeater Control problem - OnItemCommand not firing

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.

Plz help me
Expand|Select|Wrap|Line Numbers
  1.  
  2. <asp:DataList ID="dlData" runat="server" DataKeyField="prod_doc_id" EnableViewState=true RepeatColumns=3 RepeatDirection=Horizontal OnItemCommand="DoThis">
  3. <ItemTemplate>
  4. <table align="right" style="vertical-align: top">
  5. <tr align="left" valign="top">
  6. <td >
  7. <asp:HiddenField ID="hf1" runat="server" Value="<%#Bind('prod_doc_id')%>" />
  8. <asp:LinkButton ID="lnbProddocs" CommandName="Select" Text="<%#Bind('doc_id')%>" runat="server">
  9. </asp:LinkButton>
  10.  
  11. protected void Page_Load(object sender, EventArgs e)
  12. {
  13. if (Request.QueryString["showproducts"] != null)
  14. {
  15. if (Request.QueryString["showproducts"] == "1")
  16. {
  17. mvUser.SetActiveView(viewProducts);
  18. //DataSet ds = new DataSet();
  19. //lblTest.Text = "";
  20. FillRepeater();
  21. }
  22. }
  23.  
Jun 4 '08 #1
2 1451
kenobewan
4,871 Expert 4TB
What does DoThis have to do with the page_load event?
Jun 4 '08 #2
What does DoThis have to do with the page_load event?
It is the method which will display the doc list
Jun 6 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jorge Ayala | last post by:
Well I'm trying to catch and act upon a button event that is placed within the item template of a repeater control. Yet the code I'm using isn't working. What I've seen out there to explain how...
5
by: Darren Smith | last post by:
Hi There, I have a shopping cart app that displays products along with a textbox (to enter quantity) and an image button to add the item to the shopping cart. Please explain why my below...
0
by: Mike K | last post by:
Hello, I have run into a strange situation. I have a control in which I am trying to sort the datasource of a repeater and bind the arraylist data back to the repeater. Whenever I do this I...
4
by: bob garbados | last post by:
I need to create a page that displays all of the products from a table and allows for add to cart functionality. My thoughts were to display all of the products in table rows using a repeater. ...
0
by: Michael | last post by:
I've seen several posts relating to this problem, and tried EnableViewState="False", but it does not work for me. A twist in my problem is that I am adding the templates for the repeater...
3
by: Leigh Webber | last post by:
I have an HTMLAnchor control on my aspx page. When it's not inside a repeater, it works fine. When I put it inside a repeater control, the handler never gets fired. I have a handler for the...
0
by: Amir | last post by:
Hi every one This is the problem: I have a UserControl that contains a Repeater and a few LinkButton. The Repeater generate some linkButton. I use this control for implementing paging solution...
1
by: olduncleamos | last post by:
Hello all, I am experimenting with the repeater control and ran into something that I wasn't expecting. I would appreciate if the experts can confirm or correct my understanding. Here is a...
2
by: Jeff | last post by:
Hey asp.net 2.0 I have a Repeater control consisting of linkbuttons on my webpage. when a linkbutton is clicked I need to get the info about the linkbutton clicked and put that info in a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.