Đăng nhập | Đăng ký
Đăng nhập , với với

Diễn đàn    ASP.NET & Sharepoint MOSS, WSS 2007    Phát triển cổng thông tin sharepoint (MOSS, WSS)  

Thành viênNội dung
coder

lap trinh khong bien gioi
137  bài
13-12-2008 02:02:28






Viết module Hello World thật là đơn giản!
 
coder

lap trinh khong bien gioi
137  bài
13-12-2008 03:59:33
Cho phép người dùng có thể xem mà không cần đăng nhập

Mmgr : Application Management -> Authentication Providers -> Default -> Enable anonymous access (OK)'
Site : Site Settings -> Advanced permissions -> Settings -> Anonymous access -> Entire Web site (OK)
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
coder

lap trinh khong bien gioi
137  bài
13-12-2008 05:20:53
Để reference assembly trong c:\windows\assembly





Mở thêm command line rồi dùng lệnh này

C:\>cd WINDOWS\assembly\GAC_MSIL\SampleWebParts\1.0.0.0__992b220d2c0fa2a6



rồi copy đầy đủ đường dẫn
C:\WINDOWS\assembly\GAC_MSIL\SampleWebParts\1.0.0.0__992b220d2c0fa2a6\SampleWebParts.dll

mà phang vào File Name của Add Reference dialog box.
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
coder

lap trinh khong bien gioi
137  bài
14-12-2008 01:51:15
Địa chỉ của các file template nằm ở đây:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS\

nó là các file
spstd1.aspx
spstd2.aspx
spstd3.aspx
...
spstd8.aspx

(spstd = sharepoint standard) chắc vậy

Muốn làm một cái của mình cứ phang thêm 1 cái số 9...99 vào. Thoải mái.
Còn file ảnh minh họa thì tại địa chỉ
Local_drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\LAYOUTS\1033\IMAGES

là file
custom1.gif
custom2.gif
...

Đây là địa chỉ chính thức
http://msdn.microsoft.com/en-us/library/ms916835.aspx#sharepoint_creatingcustomwpptemplates_topic3
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
coder

lap trinh khong bien gioi
137  bài
18-12-2008 11:45:38
Các link quan trọng nên đọc

tăng trustlevel :

http://msdn.microsoft.com/en-us/library/ms916855.aspx#sharepoint_wsscodeaccesssecurity_topic1
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a55fb31b-5b42-476d-9cae-050ab3fae307.mspx?mfr=true


tạo file master bằng teamsite

http://msdn.microsoft.com/en-us/library/ms467402.aspx
http://msdn.microsoft.com/en-us/library/bb687712.aspx
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
coder

lap trinh khong bien gioi
137  bài
20-12-2008 02:35:48
check windows admin

using System.Security.Principal;
...
bool IsAnAdministrator ()
{
WindowsIdentity identity =
WindowsIdentity.GetCurrent();
WindowsPrincipal principal =
new WindowsPrincipal (identity);
return principal.IsInRole
(WindowsBuiltInRole.Administrator);
}
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
coder

lap trinh khong bien gioi
137  bài
22-12-2008 11:14:02
để có thể code đọc ghi file 1 cách bình thường trong khi viết webpart dùng cái này để làm. Sử dụng hữu dụng nhất là khi upload. Đoạn code này khá độc và khó kiếm trên internet cũng như google.

string[] sourceFiles;
string sourcePath = "\\\\fileserver\\directory1\\directory2\\";

SPSecurity.RunWithElevatedPrivileges(delegate()
{
sourceFiles = System.IO.Directory.GetFiles(sourcePath);
});
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
coder

lap trinh khong bien gioi
137  bài
22-12-2008 11:15:55
Hoặc dùng đoạn code sau do MS cung cấp

protected void Button1_Click(object sender, EventArgs e)
{
SPSecurity.CodeToRunElevated elevatedGetSitesAndGroups = new SPSecurity.CodeToRunElevated(GetSitesAndGroups);
SPSecurity.RunWithElevatedPrivileges(elevatedGetSitesAndGroups);
}
---
http://coder.awas.vn
http://mobile.awas.vn
http://vtv.awas.vn
http://baihatviet.awas.vn
 
linux

ubuntu
24  bài
03-03-2009 04:52:27
Với tình huống

Service Unavaiable

Không hiển thị được web thì anh em vào application pool đặt lại mật khẩu của user administrator cho app đó thế là xong.

hide
/Forms/AllItems.aspx

Central Administration > Application Management > User Permissions for Web Application


+ View Items - View items in lists, documents in document libraries, and view Web discussion comments.
+ View Pages - View pages in a Web site.
+ Open - Allows users to open a Web site, list, or folder in order to access items inside that container.

---
 
lequangngoc


1  bài
08-04-2010 10:00:32
Trời ơi như thế này như ưm mới tìm hiểu.Có biết quái gì đâu.Pác phải cho gọn vào một ảnh chứ
 

Chủ đề gần đây :

Cùng loại :

 
Tên file Người đăng Ngày Lượt
News Ticker Demo.rar
jQuery Carousellite cho cuộn các khối tin nhẹ nhàng mượt mà, sử dụng cho module Tin tức (CMS) hoặc giới thiệu sản phẩm
aspnet 5/7/2011 8:59:52 AM 475
cms_source_dll_sql_2010.rar
source C# + SQL Script + Dll module CMS trên DNN 5x, (bản chạy ổn định không lỗi)
aspnet 9/5/2010 6:05:54 PM 1863
killforever.rar
Script diệt virus forever.exe (lây nhiễm qua USB) mà không cần cài lại window
aspnet 7/28/2010 6:51:30 AM 264
CSharp Coding Standards.pdf
C# Coding standard, for all user, quy tắc viết mã lập trình c# dotnet.
aspnet 6/1/2010 8:27:39 AM 1228
weather_forex_gold.rar
module DNN : "vàng + thời tiết + tỷ giá ngoại tệ" của seekill
coder 3/11/2010 3:50:09 AM 1089
Training DotNetNuke.zip
Tài liệu hướng dẫn cài đặt DNN, tạo module DNN đơn giản, nâng cao
quanlv 9/30/2009 9:11:36 AM 2912
Viet va them 1 module don gian vao website.doc
Hướng dẫn viết module đơn giản trên DNN (word) có hình, gửi bởi vinahana
aspnet 9/18/2009 6:15:24 PM 1461
Moduel NEWs Demo.zip
Một số module bao gồm: News, WorkScheduler, QA, Comment, Menu, ...
quanlv 8/22/2009 10:44:15 AM 2543
MenuDNN5.rar
Menu DNN 51 Page.aspx
aspnet 7/21/2009 12:22:38 PM 1805
diendan.zip
Cài đặt diễn đàn (VSP) chỉ với 4 bước.
aspnet 6/15/2009 2:18:13 AM 1300
roll_updown.zip
Roll up, roll down news list using javascript, simple, easy to use.
radiogaga 6/1/2009 11:29:51 AM 423
rotator-1.0.0.rar
Auto Scroll News - tự động cuộn tin tức bằng JS
dotnetvn 5/30/2009 3:21:22 PM 623
captcha2.rar
CAPTCHA sinh ngẫu nhiên : size, font, position, color ... vẽ line gây nhiễu chống reCAPTCHA bot.
tieuphu 5/30/2009 2:34:42 PM 609
MenuDNN.zip
Menu Dọc cho DNN (Tác giả Võ Thế Quang)
biennv 5/27/2009 8:07:47 AM 1407
Gioi_thieu_san_pham_unisched4.zip
Giới thiệu phần mềm xếp thời khóa biểu đại học (University Scheduling 4.0) : áp dụng cho mô hình xếp thời khóa biểu niên chế, tại các trường đại học và cao đẳng tại việt nam
khanhjin 5/12/2009 5:00:02 PM 2852
HitCounterInDatabaseASPNET.zip
HitCounter
nguyentx 4/20/2009 4:38:04 PM 561
s3Slide.rar
Slide show chuyên nghiệp, giống tintuconline.com.vn
coder 4/9/2009 9:34:41 AM 2233
XMLPROG.zip
XML Programing C# dotnet
aspnet 4/4/2009 10:02:43 AM 603
menu_vnexpress.rar
Tạo menu giống vnexpress = xsl transform, C# dotnet, javascript(Toàn bộ mã nguồn).
coder 3/30/2009 10:14:50 PM 2367
DesktopModules.rar
CMS dotnetnuke + Image Library + Core CMS (DNN Data Provider) version 1.1
aspnet 3/30/2009 5:23:14 PM 1941
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,