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  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


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.

 


Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com
Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com

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