Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsHow to change Event Title field from TextBox to DropDownList with preconfigured valuesHow to change Event Title field from TextBox to DropDownList with preconfigured values
Previous
 
Next
New Post
5/14/2013 4:49 PM
 

Hi.

I would like to ask, if it is possible and if yes how, to change the event title field (wich appears in the add event & in the edit event popup page) from TextBox to DropDownList with some preconfigured values for the user to choose from.

I opened the EditEvents.ascx file and i changed line 27 from

<asp:TextBox id="txtTitle" cssclass="dnnFormRequired NormalTextBox" runat="server" MaxLength="100" Columns="30" width="250px" Font-Size="8pt"></asp:TextBox>

to

<asp:DropDownList id="txtTitle" cssclass="dnnFormRequired NormalTextBox" runat="server" MaxLength="100" Columns="30" width="250px" Font-Size="8pt"></asp:DropDownList>

After that, i opened the file EditEvents.ascx.designer.vb and i changed line 60 from

Protected WithEvents txtTitle As Global.System.Web.UI.WebControls.TextBox

to

Protected WithEvents txtTitle As Global.System.Web.UI.WebControls.DropDownList

Now, when i try to add an event, in the popup i get the following error message:

The base class includes the field 'txtTitle', but its type (System.Web.UI.WebControls.TextBox) is not compatible with the type of control (System.Web.UI.WebControls.DropDownList)

Does anyone happens to know what i have to change, in order to achieve converting the Event Title field from TextBox to DropDownList?

Thank you very much.

 
New Post
5/14/2013 5:01 PM
Accepted Answer 
Hi Peter,

To do this you would need to open the source code in Visual Studio 2010, make the change in the .ascx file (the designer file would automatically get changed) and then re-compile it.

The code gets compiled into a .dll in the bin directory of your site, so changing the source code alone will not do the job.

Cheers
Roger

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
5/14/2013 6:13 PM
 

Dear Roger,

Thank you very much for your reply.

The fact is, that i have not recompiled something in the past and i do not know how exactly to do this and in what order.

Moreover, which source code i need? The whole DotNetNuke source code (i assume this is the case, because you said that i will find the compiled dll in the Bin folder) or the Events module source code (i already have this)?

If i have to use the whole DotNetNuke source code, the Events module will already be in the DestopModules folder?

Fianlly, with what command i compile / recompile the source code? With the Built Web Site command under the Build tab in the main menu of MS Visual Studio?

The new dll file will be named as DotNetNuke.Modules.Events.dll?

Thank you.

 
New Post
5/14/2013 6:51 PM
 
Wrote a long response on ipad. DNN crashed, I'll write it again tomorrow on a proper keyboard

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
5/14/2013 7:14 PM
 

OK Roger.

Thank you very much.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsHow to change Event Title field from TextBox to DropDownList with preconfigured valuesHow to change Event Title field from TextBox to DropDownList with preconfigured values


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out