Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to realize module that can receive GET paramter from URL?How to realize module that can receive GET paramter from URL?
Previous
 
Next
New Post
3/18/2009 1:41 AM
 

I would like to create a module which creates an employee profile from our existing employee database. I use an SQLDataSource object which loads the employee data from our DB and a DataDetails object to display the data and for the SQLDataSource I define a parameter as QueryString. Now when I manually type in the "?eid=3" in the URL bar everything works fine. But how can I create a hyperlink somewhere else on the site?

 
New Post
3/18/2009 12:51 PM
 

Jens,

You can use a module like SQLGridSelectedView or SQLView to display a list of employees.  The Trick is to create the link in the SQL select statement as a column.

For example:  

Select EmployeeID, EmployeeName, '<a href="www.mysite.com/...?eid=' + EmployeeID + '">' + EmployeeName + </a> as [Link] from Employees

This will create 3 columns EmployeeID, EmployeeName and Link .  You need to supply a complete URL in the link, but this should give a idea of what can be done.  Also see this link.

Paul.

 
New Post
3/19/2009 3:04 AM
 

Thanks Paul. I already started a topic in your forums, too, as I first considered SGSV a a possible solution for us, until you told me that SGSV probably is not the best solution for this case, as we not only want to display a list of employees but also enable employees to update their personal data. So I started to try to develop our own.

Insofar your suggestion above does not fit here, as I am looking for a way to pass GET paramters to a specific page where it can be used by a module there but without knowing the page before (so the module basically can be used on any page).

 
New Post
3/19/2009 12:54 PM
 

Jens,

The example given -- not specific to SGSV -- can generate a list where one column will result in a link with a specific (unique) GET parameter.  

I used this method to create a link to a common page with a specific Get Parameter value.   The common page extracts the Get Parameter to display the specific data based on the Get Parameter.

Hope this helps
Paul.

 

 

 
New Post
3/19/2009 10:53 PM
 

Dear Paul, thanks for the explanation. Maybe I did not explain myself well, so sorry for the misunderstanding:

My problem is not how to create a link with a GET parameter. The two issues are:

  • My module basically can be added to any page of the site (add the EmployeeDataModule to a page and select what employee data to display - emplpyee list, phone directory, birthday list etc.) so I cannot hardcode the links as I do not know the page before
  • If someone wants to link to a certain employee profile from another page (e.g. Text/HTML: "... HR director Michael XZY was proud to...") I do not know how to enable them to choose the page with the module and then add a GET paramter with the employee id
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to realize module that can receive GET paramter from URL?How to realize module that can receive GET paramter from URL?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out