This is a discussion on Call Serverside Function from A Tag within the .Net Development forums, part of the Programming & Scripting category; rr, it is in my repeater? Code: <asp:Repeater ID="rpt_Catalogue" runat="server" OnItemCommand="Cat_OnItemCommand">...
| |||||||
|
#11
| |||
| |||
| rr, it is in my repeater? Code: <asp:Repeater ID="rpt_Catalogue" runat="server" OnItemCommand="Cat_OnItemCommand"> |
|
#12
| ||||
| ||||
| Whoops...Sorry, must have missed that when I looked through your code... ![]() Did you try removing AutoEventWireup?
__________________ Join the folding team |
|
#13
| |||
| |||
| yip, it still does the same, very weird, it wont display the button. |
|
#15
| |||
| |||
| awesome, for some reason its working now, lol, it when I changed " to ' around the values, this is working: 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? |
|
#16
| ||||
| ||||
| 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... |
|
#17
| |||
| |||
| can you say that again in Engrish please ![]() Will have a look at some examples, this will do for now ![]() Thanks again! |
|
#18
| ||||
| ||||
| 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 |
|
#19
| ||||
| ||||
| 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. |
| The Following User Says Thank You to Wolffy For This Useful Post: | ||
richyrich (June 29th, 2009) | ||
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to call a .js file in my form? | dtz | JavaScript Programming | 9 | July 28th, 2009 06:28 AM |
| Help with JS function | Wolffy | JavaScript Programming | 1 | June 9th, 2009 09:52 AM |
| [Functions] Help using function | Rebelle | ASP Development | 11 | October 13th, 2008 12:13 PM |
| without function | guddu | Microsoft SQL Server | 1 | July 15th, 2008 04:02 PM |