I purchased a module on the DNN Store, and there is one feature that the module does not have that my client really needs. I thought that I could maybe "fudge" the feature by modifying the ASCX file...but I am having trouble.
The Modules was compiled in C#. The module has an ASP:Textbox that by default is blank. I use the module in a few places on the site, and the client want the Textbox's value to have a default value depending on which Module instance is being used. In some cases I need default text in the box, in others I need the box to be empty. I tried using INLINE CODE between the ASP:Textbox opening and closing tags. But I got a "Code blocks are not supported in this context" error. So then I removed the [runat="server"] portion of the ASP:Textbox, which then made the "default text" appear, but the ASP:Textbox itself no longer rendered. The company's tech support said that what I was looking to do *is* possible in the ASCX file, but they won't tell me how unless I pay them a "fee" (I work for a non-profit educational agency and getting PO's is beyond a pain, and for something like this they won't authorize it).
The code I currently have is:
<asp:textbox id="descriptionTextBox" width="800" height="250" textmode="MultiLine">
<% if (ModuleId == 719) { %>
This is my sample text.
It requires multiple lines.
<%} %>
</asp:textbox>
If the ModuleID = 719, the text appears like it should, otherwise it doesn't. However, in all cases the "Textbox" itself is missing, it doesn't render.
Anyone have and ideas? Is what I am trying to do not possible through ASP Inline Coding?