Hello Cathal,
You are right, I did forget to post the code I had mentioned as being below, apologies for that. However, following your response I read, again, the wonderful site from Mr Washington and found exactly what i was looking for. Below are two lines of code, that grab the encrypted Id for the page, and then run an sproc using that Id. Hopefully this will be useful to some one else.
The code below works well for me now, and I am thrilled with it.
However, I found the intellisense suggesting that I need to build a collection of parameters and only pass that collection. And when I tried to pass an individual param, as Michael does with the SurveyId, it also failed for me, because I was passing an Int. After quite some time trying to figure out how to debug - with W2K8 - and failing, I eventually got it working by passing a string. Does you know of any other examples of code where I can pass other data types, or in fact, pass a collection of params of various data types.
Thanks Cathal
Mark
protected void LinkButton1_Click(object sender, EventArgs e)
{
string BoatId = Common.Utilities.UrlUtils.DecryptParameter(Request.QueryString["BoatId"]);
lblSCRNum.Text = DotNetNuke.Data.DataProvider.Instance().ExecuteScalar("usp_MB_GetSCRNumber", BoatId).ToString();
}