Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Html returned from Sql Statement
Last Post 06-22-2007 09:06 AM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Sandro De MatteisUser is Offline
new to the springs
new to the springs
Posts:1
Avatar

--
06-21-2007 01:07 PM

    Hi, i wish to use Tailored Module in this manner:

    I have a session param like http://........?idXY=1
    then i wish to use idXY in a Sql Statement like this

    select htmlCodeReturned from MyFunction( idXP )

    where htmlCodeReturned is something like 

    PictureA  PictureB  PictureC



    Obviously the picture name is based on idXY and what i wish to see is not the html code but  "http://pictureA" target="_blank">PictureA PictureB PictureC"

     

    Thanks,
    Sandro De Matteis

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    06-22-2007 09:06 AM

    Sandro,

    There are a few ways to do this. First you would create a querystring token called idXY within Tailored Text. This token woudl actually be a querystring token and not a Session token but either way you would create it. Next you would create a SQL token called MySQL and use something like

    Select Text from YourTable where PictureId = '$(idXY)'

    You have 2 options now:
    1. If the text pulls in pictureA.gif you could use something like this in your HTML (use < and > after code below, otherwise it renders it as html)
    img src="http://www.yoursite.com/portals/0/$(MySQL)"

    Thats assuming it only returned picture1.jpg or whatever the file was

    Option 2 would be assuming that your table either pulls in the entire URL to the image OR you could always pass the parameter to a stored procedure that would then return the full URL
    example:
    exec sp_getmyimageurl '$(idXY)'

    Then have the stored procedure return something like this
    Select 'http://www.yoursite.com/portals/0' + (Select Text from YourTable where PictureId = '$(idXY)')

    Something like that, not sure the exact SQL above would work but that gives you an idea. You would basically just be returning the full URL.

    Finally, if you used this option your image tag would just include the SQL token and not the full URL within the token. Something like this:
    img src="$(MySQL)"

    That should do it!

    -Chad

    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi