Đăng nhập | Đăng ký

Danh sách thành viên | Cá nhân | Nhà đất, bất động sản

Diễn đàn    Các Projects Dotnetnuke (DNN)    Phát triển module trên dotnetnuke

Thành viênNội dung
ngocchung832002


11  bài
23-07-2009 03:59:06
Trong frontend (giao diện trình diễn) để lấy nội dung của setting chúng ta cũng dùng

string limits= Settings ["limits"] .ToString();
Rồi hiển thị mọi thứ bình thường như code ASP.NET.

Thông thường anh em chúng ta dùng repeater và các thứ Label, Datagridview ... để hiển thị nội dung cần làm.

Để module chạy ngon, dll cần phải copy vào thư mục /dotnetnuke/bin/ còn làm thế nào thì anh em tự nghiên cứu nhá.

Tức là chúng ta sẽ có /dotnetnuke/bin/module.dll

Như vậy là đủ kiến thức để viết những module đầu tiên rồi, ví dụ module Hello world.

Để viết cần thực hiện

1/ tạo file ascx : hello.ascx
2/ tạo module = hello -> def = "hello" -> control key = blank control = hello.ascx
3/ dịch module Hello ra file hello.dll
4/ copy file hello.dll vào /dotnetnuke/bin/hello.dll
5/ chọn 1 page bất kỳ rồi add module hello vào trang đó.
---
Coding for food

Để viết code cho 1 module chúng ta nên biết cấu trúc module của DNN

- 1 Module có n Definitions
- 1 Definition có n Controls

Trong 1 module có 2 Control đặc biệt, là các control có key = "" và key = "Settings". Control key=(blank) thì chúng ta có thể thêm nó vào 1 Page. Control có key=Settings là phần thiết lập cho module.

1 Module như vậy có thể có nhiều Control cùng có key = blank, tuy nhiên khuyến cáo là chúng ta chỉ nên dùng 1.
---
Coding for food


Bác aspnet giải thích rõ hơn về cái Key giúp em. Sao thấy bài viết của bác phức tạp quá, cứ như hướng dẫn của bác Tieuphu ở đây http://coder.awas.vn/topic/105_Viet_module_tren_dotnetnuke_can_ban/1.aspx cũng viết được Module mà các bước hêt sức đơn giản.
---
 
logica


1  bài
30-07-2009 02:12:57
Có bác nào cho em co code của trang http://toquoc.vn ko. Em đang định làm 1 trang giống thế này mà ko biết cách rewrite url như thế nào. Em view source ra thì toàn thấy dnn ở bên trong. Bác aspnet có thạo vụ này ko, chỉ giáo em với
 
quangvd


102  bài
30-07-2009 05:26:41
cái này là công trình tim óc cả
Không ai cho bạn đâu
---
http://www.yhoctuxa.vn/
 
zmovie


1  bài
26-08-2009 04:15:00
Em là newbee nên có rất nhiều điều chưa rõ. Em đã cố gắng thực hiện sao cho đúng với hướng dẫn mà vẫn không được. Ví dụ như phần setting là lấy từ đâu, không thấy đề cập đến trong bài viết, mong các anh bổ sung giúp em với
 
smallfire


3  bài
19-10-2009 05:48:52
Cảm ơn bạn ASP.net! Bài viết rất chi tiết và dễ hiểu, đã thực hành OK.
 
smallfire


3  bài
19-10-2009 06:29:20
Mình thấy cách viết build ra dll này sẽ bất tiện nếu viết các Project có kết nối tới CSDL. Có cách nào khác viết nhanh hơn không nhỉ?
---
 
dvcsun


7  bài
29-10-2009 01:52:09
Để viết code cho 1 module chúng ta nên biết cấu trúc module của DNN

- 1 Module có n Definitions
- 1 Definition có n Controls

Trong 1 module có 2 Control đặc biệt, là các control có key = "" và key = "Settings". Control key=(blank) thì chúng ta có thể thêm nó vào 1 Page. Control có key=Settings là phần thiết lập cho module.

1 Module như vậy có thể có nhiều Control cùng có key = blank, tuy nhiên khuyến cáo là chúng ta chỉ nên dùng 1.
---
Coding for food


- 1 Module chỉ có 1 Definition thôi
- 1 Module có thể có nhiều Instance
- 1 Module có thể có nhiều Controls
---
 
quangvd


102  bài
29-10-2009 03:08:24

- 1 Module chỉ có 1 Definition thôi
- 1 Module có thể có nhiều Instance
- 1 Module có thể có nhiều Controls
---

Bạn có nhầm không
1 module có n Definition.
---
 
misabachhop


7  bài
24-03-2010 02:57:11
Mấy bạn cho mình hỏi làm thế nào để add skins vào trang web của mình (mình có down các skin trên mạng về, giờ muốn gắn vào dùng, không biết có được ko?)
 
misabachhop


7  bài
24-03-2010 04:17:01
Mấy bạn cho mình hỏi làm thế nào để add skins vào trang web của mình (mình có down các skin trên mạng về, giờ muốn gắn vào dùng, không biết có được ko?)

Mình đã làm được rồi (làm thủ công)
 
hoandv.88@gmail.com


1  bài
24-12-2010 01:40:50
cảm ơn admin nhiều
 
ikkistar88


5  bài
28-10-2011 03:16:09
M bên bách khoa,m đang làm đồ án về dotnetnuke,bạn nào có nhu cầu cùng ngiên cứu về nó , liên lạc với mình qua địa chỉ : ikkistar88@gmail.com ,
YM :pdung_bk
SDT: 0986918101
 
centerwind


1  bài
13-02-2012 03:12:28
Mọi nguòi giúp em lỗi này với
Error: testmod is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'TestMD.module'. ---> System.Web.HttpParseException: Could not load type 'TestMD.module'. ---> System.Web.HttpParseException: Could not load type 'TestMD.module'. ---> System.Web.HttpException: Could not load type 'TestMD.module'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl [T] (TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
 
tykhai


1  bài
17-02-2012 08:51:57
Bạn nên nói kỹ về tình hình như thế nào mới ra lỗi như trên thì mọi người mới giúp bạn được chứ. Bạn đã dùng module testMD này chưa hay mới phát triển?
 
tvduan


1  bài
28-02-2017 10:36:08
Anh em cho tôi hỏi ngu tí. TÔi cài dnn 7 xong rồi và đã làm 1 cái modul như kiểu này và đã build thành công ra file dll. HIện tại để add nó vào dnn làm như thế nào?
Xin cảm ơn! Nếu có tài liệu nào xin gửi vào email:duantaynguyen@gmail.com.
 

Chủ đề gần đây :

Cùng loại :

 
Tên file Người đăng Ngày Lượt
vspforum.zip
Ma nguon vspforum ngay xua
aspnet 4/18/2023 6:38:37 AM 6
pdfjs.rar
pdfjs 2017 : hiển thị tốt trên iphone 11, 12, 13 không lỗi, bản 2012 sẽ lỗi trên iphone
aspnet 6/21/2022 11:52:48 AM 2
pdfjs2.rar
Xem file pdf bằng viewer.hml cua pdfjs (thư viện chuẩn mozilla) 2012. https://mozilla.github.io/pdf.js/getting_started/#download có thể download bản prebuild tại đây
aspnet 6/21/2022 11:52:04 AM 2
runner.zip
using three.js, orbitcontrol to view an object move random on map. Di chuyển 1 đồ vật ngẫu nhiên trên bản đồ, sử dụng với demo nhân viên di chuyển trong văn phòng. Toàn js download về là chạy
aspnet 12/5/2019 5:55:14 PM 0
gmap.zip
google map + marker
aspnet 7/17/2019 2:25:05 PM 1
vinsmarthomeservice.zip
java post json to api, use AsyncTask, event listener
aspnet 7/9/2019 5:00:10 PM 1
fblogin.zip
Login facebook bang javascript SDK
aspnet 7/9/2019 9:16:37 AM 0
autocomplete-location.zip
autocomplete location geo from google place, html + js
aspnet 7/4/2019 4:37:55 PM 2
WebAPI.zip
api for android access db (v1.0.0)
aspnet 7/4/2019 9:14:17 AM 8
KydientuPdf.zip
Ky dien tu file PDF su dung itextsharp
aspnet 4/9/2019 3:30:37 PM 9
GooglePlusLogin.zip
Login Google Plus account, C#, web asp.net ver2.0. Simple connect google APIs. Send key, get token, get full account info
aspnet 6/1/2018 10:41:12 AM 11
WebApplication1.rar
Sample su dung thuat toan ma hoa tripDES, co khoa bi mat (privateKey)
aspnet 3/30/2018 10:06:35 PM 8
NETMdbToolsTestApp.rar
dotNet MdbTools for Access 2003/2007/2016 without Microsoft Jet Engine, source C#, https://www.codeproject.com/Articles/283626/MsAccess-MdbTools-with-MFC-and-NET
aspnet 3/26/2018 11:43:16 PM 1
Cryptography_MD5_TriDES_src.zip
Thuật toán mã hóa 2 chiều TriDES, gồm Encrypt và Decrypt, aspnet 2.0
aspnet 3/22/2018 11:20:44 AM 3
mvc.rar
sample project MVC on C#
aspnet 3/20/2018 9:25:36 AM 9
EduPortal.rar
Edu portal frame work for VB.NET
aspnet 3/14/2018 12:00:41 AM 13
AutoEntity.rar
Gencode vb.net visual studio 2015. dotnet v2.0
aspnet 3/13/2018 11:59:16 PM 2
GenCode.rar
Gencode XML, XSLT, Info, DAL .. engine enterprise for quick app database
aspnet 2/5/2018 9:37:28 AM 9
DataXml.rar
Read DB from SQL to XML file, Convert string TCVN to Unicode
aspnet 1/29/2018 2:15:45 PM 4
DesktopModules.rar
Module quản lý tin tức, CMS, quản lý nhóm tin trên dotnetnuke 6.x
aspnet 3/7/2013 4:47:49 PM 1714
CODERVN.NET
Công ty cổ phần công nghệ và dịch vụ AWAS
Công ty cổ phần công nghệ và dịch vụ AWAS, cổng thông tin, chính phủ điện tử, phần mềm quản lý điểm, quản lý sinh viên, http://awas.vn, http://awas.com.vn, phần mềm ứng dụng, dịch vụ công trực tuyến, thiết kế website, thiet ke web, thiết kế web, điện lực, phần mềm quản lý đào tạo, cao đẳng, đại học,cổng thông tin tích hợp, cổng thông tin điện tử, webportal, thư viện điện tử, electric library, library online, email, web, quản lý quan hệ khách hàng, CRM, dịch vụ công trực tuyến, phần mềm hành chính một cửa,