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  |  

Affordable ASP.NET Hosting Service
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


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.

 


Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting
Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com

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