Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  EditURL - Overload-Error
Previous Previous
 
Next Next
New Post 12/10/2006 6:37 AM
User is offline Martin Sigrist
4 posts
www.w3studio.ch
10th Ranked


EditURL - Overload-Error 

Hi

I'm trying to navigate to an Edit-Control (there are several Edit-Controls shipped with the module) from inside a DataList using the following code:

<asp:HyperLink id="editLink" NavigateUrl='<%# EditURL("PeriodeID", DataBinder.Eval(Container.DataItem,"PeriodeID"), "EditAbrechnungsperioden") %>' Visible="<%# IsEditable %>" runat="server" >

The ControlKey is entered in the module-settings as "EditAbrechnungsperioden". Unfortunately the following error message appears:

[...] No accessible overloaded 'w3Abrechnungsperioden_ascx.EditUrl' can be called with these arguments without a narrowing conversion: Public Function EditUrl ( ByVal KeyName As String, ByVal KeyValue As String, ByVal ControlKey As String ) As String [...]

Can anyone give me a helping hand?

---
Thanks, Martin

 
New Post 12/10/2006 7:52 AM
User is offline Antonio Chagoury
782 posts
www.inspectorit.com
7th Ranked






Re: EditURL - Overload-Error 
Modified By Antonio Chagoury  on 12/10/2006 10:53:35 AM)

Were you ever successfull is calling the EditUrl function from an ASCX file?

The error tells me that you cannot. It is not accessible from an ASCX file.
Write a function in your code to return the proper url - i.e:

Codebehind.vb:

Protected Friend Function GetEditUrl(ByVal KeyName As String, ByVal KeyValue As String, ByVal ControlKey As String) as String
Try
Return EditUrl(KeyName, KeyValue, ControlKey)
Catch exc as Exception
' do something with the exception, if any
End Try
End Function

ASCX file:

<asp:HyperLink 
id="editLink"
NavigateUrl='<%# GetEditUrl("PeriodeID", DataBinder.Eval(Container.DataItem,"PeriodeID"), "EditAbrechnungsperioden") %>'
Visible="<%# IsEditable %>"
runat="server">

 

Let me know if this works out for you.


Inspector IT, Inc.Antonio Chagoury | Inspector IT, Inc.
Professional .net & DotNetNuke Solutions
web: www.inspectorit.com
blog: www.cto20.com
modules: DNN Virtual Earth | DNN Dock Menu | DNN Site Map

 
New Post 12/11/2006 12:19 AM
User is offline Martin Sigrist
4 posts
www.w3studio.ch
10th Ranked


Re: EditURL - Overload-Error 

Hi Antonio

your Function works fine - thanks.

5 minutes ago I called successfully the EditURL function from an ascx-file using:

<asp:HyperLink id="editLink" NavigateUrl='<%# EditURL("PeriodeID", CStr(DataBinder.Eval(Container.DataItem,"PeriodeID")), "EditAbrechnungsperioden") %>' Visible="<%# IsEditable %>" runat="server" >

 
New Post 12/11/2006 5:59 AM
User is offline Antonio Chagoury
782 posts
www.inspectorit.com
7th Ranked






Re: EditURL - Overload-Error 

Great!

That's good to know that you can do that. :)


Inspector IT, Inc.Antonio Chagoury | Inspector IT, Inc.
Professional .net & DotNetNuke Solutions
web: www.inspectorit.com
blog: www.cto20.com
modules: DNN Virtual Earth | DNN Dock Menu | DNN Site Map

 
New Post 2/13/2007 8:36 PM
User is offline Bill Witt
11 posts
www.oldwesternwars.com
10th Ranked


Re: EditURL - Overload-Error 

I ran into this problem yesterday and found another way to make this work.

<asp:HyperLink id="editLink" NavigateUrl='<%# EditURL(nothing, nothing, "PeriodeID", DataBinder.Eval(Container.DataItem,"PeriodeID"), "EditAbrechnungsperioden") %>' Visible="<%# IsEditable %>" runat="server" >


Fuse Gaming Network, LLC.
www.oldwesternwars.com
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  EditURL - Overload-Error
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com
Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP