Last post Apr 28, 2006 01:18 AM by walkerstewart
Apr 13, 2006 10:16 PM|tmhudg|LINK
I've got a module with a data grid in it. One of the columns has an asp:Hyperlink control that has a NavigateUrl param that calls EditUrl with an itemid. That all seems to work fine. I've also added an Edit action to the menu for the module whose action
param contains EditUrl(). That works too.
Then I tried to simply add an asp:Hyperlink outside the grid so I could have another link to go to the Edit page of the control. The code looks like this;
<asp:Hyperlink id="hyp1" runat="server" NavigateUrl='<%# EditUrl() %>'>Link</asp:Hyperlink>
When I open the page with this control on it, the Link is not a link it's just plain text. The source shows this;
Obviously there's no href parameter so it doesn't render as a link.
What am I missing?
Apr 28, 2006 01:18 AM|walkerstewart|LINK
You could be having a few issues.
1. Do you have an "Edit" type page with the control key as "Edit"
2. In some cases in ASP.Net the <%# EditURL() %> should be an = (e.g. <%= EditUrl() %>
3. If your edit control is not control key "Edit" you will need to pass the control key that you are using.
Hope this Helps,