Hi, I'm on the latest download version of umbraco...4.x
I've tried searching the forum but I've found nothing on this. If you have a template that has a gridview and a sqldatasource, that works just fine in umbraco.
However, if the sqldatasource has its parameter as a querystringparameter, it will only use the defaultvalue set (if it is set).
I've created a QueryString macro, but I don't see how I can use it within the Sqldatasource tag.
Same goes for a asp:hyperlink...where we are trying to insert the value of the querystring to form the link url.
If this can only be done via a usercontrol using codebehind in C# then someone let me know. I have no issue trying to do it that way, just wanting to make sure there is no easier way before I attempt my second usercontrol.
querystringparameter in sqldatasource
Hi, I'm on the latest download version of umbraco...4.x
I've tried searching the forum but I've found nothing on this. If you have a template that has a gridview and a sqldatasource, that works just fine in umbraco.
However, if the sqldatasource has its parameter as a querystringparameter, it will only use the defaultvalue set (if it is set).
I've created a QueryString macro, but I don't see how I can use it within the Sqldatasource tag.
Same goes for a asp:hyperlink...where we are trying to insert the value of the querystring to form the link url.
e.g. http://blahsite.com/<querystring macro>.pdf.
If this can only be done via a usercontrol using codebehind in C# then someone let me know. I have no issue trying to do it that way, just wanting to make sure there is no easier way before I attempt my second usercontrol.
Hi Chris,
You can us this in a usercontrol + codebehind indeed. Doing that all the time, at the end of the day Umbraco is just asp.net :)
Cheers,
Richard
Thanks,
Managed to do it as a user control quite easily in fact. Just doing baby steps at the moment, but amazed at how easy it actually is.
Chris
is working on a reply...