How To Create A Simple Dotnetnuke Module Without DAL

Jun 25, 2010

I want to create a new module in DNN (VB) ... that;

1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module

I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.

I have the development environment already set up with;

1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully

If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out "Hello World!" to the screen ...

View 1 Replies


Similar Messages:

C# - Send Message To Module In Different Tab In DotNetNuke?

Nov 8, 2010

I want to create a module that can send a message to another module in different tab.I don't know the target tab Id but I know the target module name. Is there any way to do such a thing?Is Dot net nuke support messaging?

View 1 Replies

C# -create A Webapplication In Dotnetnuke Framework?

Feb 3, 2010

I am very new to dotnetnuke. and want to know. steps to create and build a webapplication in dotnetnuke.how can we add module using dotnetnuke.how can we handle database in sqlsever 2005 or later on it.

View 1 Replies

C# - Create Folder Programmatically In DotNetNuke And Assign Permission To It?

Feb 7, 2011

I have created a folder in DotNetNuke programmatically on the root portal directory. I just want to assign permissions to it only one time, for example I want to make it read only for authenticated users. Any advice on how to accomplish this using C# or VB.NEt?

View 1 Replies

Web Forms :: Want To Create A Module Base CMS , Witch Way Is Better For Create Modules?

Feb 28, 2010

I want to create a module base CMS , witch way is better for create modules ? how can I install new modules after build and upload project ?

View 6 Replies

How To Create The Admin Module

Feb 19, 2011

we want to create website based on asp.net and we want to update data in my site dialy. told me about admin module . is their any tutorials and screen shots for admin module

View 4 Replies

How To Create A DLL From A WSDL For Use In DNN Module

Jan 2, 2011

I'm creating a DNN 4.9.5 module and need to create a DLL from a WSDL (Doba API). I've created a separate Class Library project in my DNN solution with Class1.vb in it. What do I need to include in my class from the WSDL file? Obviously, I won't be going with Class1.vb, but just need a gentle push as to how to get this going.

View 2 Replies

How To Create An HTTP Gzip/deflate Module

Jun 4, 2010

I'm trying to create an HTTP gzip/deflate module, but when I'm trying to get the Accept-Encoding header it returns null, I tried in IE8, FF, Chrome and Opera.

View 2 Replies

C# - How To Create A Module To Allow Only Admins To Access The Website

Aug 26, 2010

Sometimes I need to block access on a website, but I don't want to block access for administrators so they should be able to see the website and for that I guess I need to make a module.

How can I make a module like that?

This is the code I have. I just don't know where I should place it.

var user = Membership.GetUser() as User;

if (user == null || (user != null && !user.IsAdministrator))
{
// Block
}

View 2 Replies

C# - Is It Possible To Create A HTTP Module Without Making An Entry Into The Web.config Or GAC

May 3, 2010

Is it possible to create an http module without making an entry into the web.config or GAC?

View 1 Replies

MVC :: Create A Class Library Contains A Controller Based On Its Module?

Feb 22, 2011

In My Project I want to Create a Class Library Contains a Controller based on its module, Example : Class.Controllers.Album,Class.Controller.Artist

in this Class Library I wrote two Controllers AlbumController.cs, ArtistController.cs.When I add this to Main Project Contains Views,

View 1 Replies

HttpHandlers / Modules :: Create A Url Rewriting Module And Have Investigated Numerous Examples On The Web?

Nov 11, 2010

I am wanting to create a url rewriting module and have investigated numerous examples on the web. However, most do not address the issues of handling postbacks and querystrings. I cam across a few examples, but don't fully understand how they work and thus customizing them to my needs becomes a problem. I understand the basic concepts of rewriting, but can someone explain, or point me to a resource on how postbacks and querystrings are handled?

View 2 Replies

How To Create A Simple Forum

Jan 6, 2011

Hey guys, i have some problem here. How can i create a simple forum in asp.net? using wat toolbox?

View 12 Replies

How To Create A Simple Xml Structure Using The XMLWriter

Feb 21, 2010

I'm trying to create a simple xml structure using the XMLWriter in visual basic for the purpose of creating an html page based on user input.

Here's an example of what I've got so far:

[URL]

View 3 Replies

How To Create A Simple Shopping Cart

Feb 25, 2011

How to create a simple shopping cart in asp.net/c#

View 4 Replies

Web Forms :: How To Create A Simple Blog

Jul 9, 2010

I need to create a simple blog feature for my website. I have created a form that writes to an XML File, i now need to be able to display this file in a blog style, and possible add comments.

View 5 Replies

How To Create A Simple Watermark On The Fly For An Image

Apr 20, 2010

I'm looking to create a simple watermark on the fly for an image, taking one image (JPEG) and adding some text to it on the BOTTOM of the image in white, with a solid black background right across the bottom. haven't been able to find anything that does it on the bottom of the JPEG.

View 2 Replies

SQL Server :: How To Create Simple SSIS

Mar 29, 2011

i need to create a simple package that will: 1. insert a data to table A2. get the identity_scope3. insert multiple rows to table B with the id from table Ai created one, but it only does bulk insert, so i want to redo it again.

View 1 Replies

Way To Create A List - Simple Cache Implementation

Mar 16, 2010

I need to build up a List<object> and cache the list and be able to append to it. I also need to be able to blow it away easily and recreate it. What is a simple way to accomplish this?

View 2 Replies

State Management :: Cannot Create A Simple Cookie

Feb 28, 2011

Very new to ASP.NET and C# (somewhat knowledgable in PHP) I have an ASP.NET web application and need to manage access to pages based on a 'status' stored in a cookie. I would like to use the following code to create the cookie in a login method.

HttpCookie cookie = new HttpCookie("UserCookie");
cookie.Value = "status"; <-- this will be replaced with a variable once its working
cookie.Expires = DateTime.Now.AddHours(1);
Response.SetCookie(cookie);

My problem is that the only place I can put this code where it works is in the global.asax Session_Start method. It simply doesn't work anywhere else. I am checking the cookie creation in firefox options and see the ASP.NET_SessionId created but nothing else (This is all running on localhost).

Is the session status somehow interfering with the cookie creation? Do I need to configure something in Web.config? It would appear that the only time I can create a cookie is on Session_Start. Does anyone have any tips, perhaps I am missing something simple?

View 6 Replies

How To Create Simple Calendar Control By Coding

Dec 5, 2010

I want to create ASP.NET like calendar control in .NET (C#)

I want just to simulate like basic calendar control (not AJAX like )which shows dates and traverse the months.

View 1 Replies

C# - How To Create Simple Stacked/segmented Html Bar

Aug 10, 2010

Rather than try to reinvent the wheel, how to create a stacked/segmented bar or point me to an existing control. Here's what I need:

Horizontal bar

Standard html

Each segment needs to be color coded from css

Each segment needs to be a percentage of the total (i.e. if total value = 100, then a value of 10 for one of the segments would be smaller than a value of 50)

Should be able to fit seamlessly into an html table cell
Should not be an image
Should only create a single bar with segments (not multiple bars/segmented bars)
Server-side generated, no AJAX


This should be as simple as possible given x number of values, create x segments.

I'm looking for code examples or already-built controls.

EDIT: For completeness:

int[] segments = { 10, 5, 45, 20, 20 };
Panel horizontalBar = new Panel();
for(int segmentIndex = 0; segmentIndex < segments.Length; ++ segmentIndex)
{
horizontalBar.Controls.Add(new Panel() { ID = String.Format("segment-{0}", segmentIndex), Width = Unit.Percentage(segments[segmentIndex]), CssClass = "segment" });
}
this.Page.Form.Controls.Add(horizontalBar);

View 1 Replies

MVC :: Looking For A Simple Way Of Pre Filling Some Of The Fields In A Create Form?

Mar 31, 2011

I am looking for a simple (or best practice) way of pre filling some of the fields in a create form. As an example, say the create view is loaded for a model that has a datetime field. I want the textbox for that field to be filled with DateTime.Now. I don't need a javascript watermark or anything like that, I jsut want to pre fill the text box.

The GET version of my Create method in the controller just returns the view with no model so I am not sure where to set this value.I've beel trying to figure this out for a while and I must be missing something, I expected this to be really easy.

View 3 Replies

How To Create A Simple Aspx File In Web.config

Sep 23, 2010

I have a subdomain mobile.JassimRahma.com and that's referring of course to a folder on my root called mobile.I just created a simple, very simple Default.aspx file and placed in the mobile folder but I am getting thie error:

[Code]....

View 9 Replies

Trying To Create A Simple Menu System Using Repeaters?

Oct 1, 2010

I am trying to create a simple menu system using repeaters. In the system I want to use a different formatting for class sub items and am trying to use an If that checks the DataBinders results and branches if its "Classes" but when I compile the code is says:

Name "Container" not declared.

On all the tutorials online and MSDN the Container.DataItem is just assumed to work so i can't find any information on it not working. Can anyone who uses databinders more than me explain this?

<asp:Repeater ID="TopNavRepeat" runat="server" DataSourceID="SqlDataSource1" >
<HeaderTemplate>
<ul id="nav">
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:HiddenField ID="LinkIdField1" Value='<%# Eval("id") %>' runat="server"
OnDataBinding="LinkIdField_ValueChanged" OnValueChanged="LinkIdField_ValueChanged"/>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Url") %>'
ToolTip='<%# Eval("Description") %>'>
</asp:HyperLink>
<ul>
<!-- -->
<% If (CStr(DataBinder.Eval(Container.DataItem, "Title")) = "Classes")THEN %>
<asp:Repeater ID="ClassDownList" runat="server" DataSourceID="ClassDS">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<li><asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("name") %>' NavigateUrl='<%# "/Class/" & helpers.urlSafe(CStr(Eval("name"))) %>'
ToolTip='<%# CStr(Eval("name")) & " home page" %>' /></li>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
<% Else %>
<asp:Repeater ID="DropDownList" runat="server" OnLoad="ChildDataList_Init">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<li><asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Url") %>'
ToolTip='<%# Eval("Description") %>' /></li>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
<%End If %>
</ul>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved