I have created a simple user control to include in my web pages. The control is working perfect except for the ability to send parameters from Umbraco to the user control. I have created a method in the control for receiving the parameter data.
Code:
private string _strDownloadFile;
public string strDownloadFile
{
set
{
_strDownloadFile = strDownloadFile;
}
get
{
return _strDownloadFile;
}
}
Then for the test of the parameter data I just write the string content in a label:
Code:
lblResult.Text = "Debug: " + _strDownloadFile;
I have also configured the parameters in Macro parameters in Umbraco.
Quote:
Alias: strDownloadFile
Name: File to download
Type: text
When I include the Macro in the page I am requested to fill in the parameter, but it doesn't matter what I write. The parameter data still isn't available to the user control.
Anybody have a clue what I might be doing wrong?
Thanks in advance...
/H.