rr, it is in my repeater?
Code:<asp:Repeater ID="rpt_Catalogue" runat="server" OnItemCommand="Cat_OnItemCommand">
rr, it is in my repeater?
Code:<asp:Repeater ID="rpt_Catalogue" runat="server" OnItemCommand="Cat_OnItemCommand">
Whoops...Sorry, must have missed that when I looked through your code...
Did you try removing AutoEventWireup?
yip, it still does the same, very weird, it wont display the button.
awesome, for some reason its working now, lol, it when I changed " to ' around the values, this is working:
or because I used Databinder.Eval?Code:<asp:LinkButton ID="lb_Change" CommandName="change_Feature" CommandArgument='<%#Databinder.Eval(Container.DataItem, "ISBN13")%>' runat="server" Text='<%#Databinder.Eval(Container.DataItem, "rm_TL")%>' />
have a look: --Pearson Education--
but I guess this is actually doing a repost of the page? Thought I would be able to do it without it posting? Or is it just my imagination?
Yes, I've had similar issues with double quotes when inside a repeater, but normally it throws an exception.
In order to not do a full postback you need to use an ajax update panel, which allows asynchronous postbacks or a webservice that also uses ajax.
Let me know if you need more info on either....I'm a fan of webservices (.asmx) which can be called from a JS function and then return an object to another JS function that can render to the screen. Obviously you need a fairly good grasp of JS for this. The update panel sorts all that out for you...
can you say that again in Engrish please
Will have a look at some examples, this will do for now
Thanks again!
Sorry. If I was you, probably just stick to the update panel...It's pretty easy to follow. Try the www.asp.net ajax tutorials.
ASP.NET AJAX Videos : The Official Microsoft ASP.NET Site
Just for the lurkers following this thread, this was the problem:
CommandArgument="<%#Container.DataItem("ISBN13")%> "
The function Container.DataItem takes a String argument, so the double quotes around the ISBN13 is correct -- however, this double quote also terminates the string <%#Container.DataItem(. Thus, when using DataItem (or Eval) you should always use single quotes around the argument,
CommandArgument='<%#Container.DataItem("ISBN13")%> '
Wolffy
------------------------
Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.
Bookmarks