Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  dynamic dnnview
Previous Previous
 
Next Next
New Post 4/6/2006 7:55 AM
User is offline Felix Lange
2 posts
10th Ranked


dynamic dnnview 
hi.

im working at an own modification of the standart dnn:feedback modul and want to create the view of my form
dynamic. creating the table dynamicly is no problem with the System.Web.UI.HtmlControls class but i dont know how to create the dnn:labels etc. dynamicly or how to put them in the dynamic table.

for example the lines like:
<dnn:label id="plSubject" runat="server" controlname="txtSubject" suffix=":"></dnn:label>
from the feedback.ascx

td.inserthtml or td.insertext dont work

can anyone help me?
thanks
fenix
 
New Post 4/7/2006 8:38 AM
User is offline Felix Lange
2 posts
10th Ranked


Re: dynamic dnnview 
ok now i know how to create the dnn:label:

          HtmlTableRow tr = new HtmlTableRow();
          HtmlTableCell td = new HtmlTableCell();
         -> LabelControl lbl = new LabelControl();
          td.Controls.Add(lbl);
          tr.Controls.Add(td);
          table.Controls.Add(tr);

but get the following error:

An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Utilities.DNNClientAPI.EnableMinMax(Control objButton, Control objContent, Int32 intModuleId, Boolean blnDefaultMin, String strMinIconLoc, String strMaxIconLoc, MinMaxPersistanceType ePersistanceType, Int32 intAnimationFrames) at DotNetNuke.UI.UserControls.LabelControl.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---


i get the error only if the lbl is added to the table:
          td.Controls.Add(lbl);
          tr.Controls.Add(td);
          table.Controls.Add(tr);

plz help

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  dynamic dnnview
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Softech Development, Inc.
We help your business work smarter with DotNetNuke. Whether you need a new implementation, a custom module or skin for an existing implementation, or integration with your business processes, Softech has the experience and expertise to make it happen.
www.softechdevelopment.com
Module Development by Engage Software
Specializing in custom module development, training and skinning.
www.engagesoftware.com
BataviaSoft DotNetNuke Solutions
BataviaSoft offers custom DotNetNuke solutions especially for the European and the South East Asian market.
www.bataviasoft.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP