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  |  

Affordable ASP.NET Hosting Service
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Linking to the current page
Previous Previous
 
Next Next
New Post 3/23/2006 9:31 AM
User is offline Joshua Beall
134 posts
9th Ranked


Linking to the current page 
Hi All,

I have a module in which there is a DataGrid control.  It contains a list of quiz names, along with the grade that was received for each quiz.  One of the columns is defined thusly:

            <asp:HyperLinkColumn
                 HeaderText="View Quiz"
                 DataNavigateUrlField="ID"
                 DataNavigateUrlformatString="/DNN4_module_dev/QuizGrades/tabid/54/Default.aspx?ID={0}"
                 DataTextField="ID"
                 DataTextformatString="ViewQuiz"
                 Target="_blank"/>

This column contains a link that says "View Quiz".  Click it and it takes them to a page where they can actually view the entire quiz, with each question graded.

Now, what I really want to happen is for the link to be something like "?ID={0}" and it will link to the current page, with the query string appended.  But, if I do that, my path is broken.

So what I resorted to was hardcoding the entire path into the link path.  Of course this is completely non portable and breaks every time I move the module to a different page or a different portal.

So, what's the answer?  How do I get the link in my DataGrid to go to the right page, and do it in a portable manner?

  -Josh
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Linking to the current page
 


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.

 


Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net

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