2012年5月25日

SharePoint disable loopback check

Click Start, click Run, type regedit, and then click OK
In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1 and then click OK.

posted @ 2012-05-25 12:39 Chris Yang 阅读(3) 评论(0) 编辑

2010年6月27日

Play Video

  Here are two ways to play video in your web page.

  At frist ,I all show you some pics:

The frist picture is use WMP to play video , Your can find lots of code from net.But it only support formats such as: wmv ,avi,mwa,mp3!

The second picture use PPS control to play video, It support most different format of video.

html as following:

代码
<object classid="clsid:5EC7C511-CD0F-42E6-830C-1BD9882F3458" codebase="http://www.ppStream.com/bin/powerplayer.cab#Version=1.0.0.27"
standby
="加载播放器中..." width="486" height="390" id="powerplayer">
<param name="ShowControl" value="1">
<asp:Label ID="playit" runat="server" />
<param name="autostart" value="1">
</object>

 

C# code as following:

代码
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
basePath
= ConfigurationManager.AppSettings["baseURL"];
string path = Page.Request.QueryString["filmPath"];

playit.Text
= "<param name='src' value ='" + basePath + path + "'>";
//playit.Text = "<param name='src' value ='C:\\projects\\FilmPlay\\films\\1.rmvb'>";
Label_Title.Text = path.Replace("films/", "");
}

}

 

 

Of course, Your must download some of Components for it:PowerPlayer.dll ,fds.dll,PSNetwork.dll and Real_Alternative.exe!

and run the following commandline:

  • start Real_Alternative.exe
  • Regsvr32 C:\WINDOWS\FilmPlay\PowerPlayer.dll

And then your can

posted @ 2010-06-27 20:45 Chris Yang 阅读(104) 评论(0) 编辑

2010年6月26日

IE Call the local resources(CALL SOFTWARE)

  You kown, it is difficult to call local resources using IE .particularly for call sofeware. Unless use activeX.

  Here is a simple way for it!

1.

Create a .reg file with content as following: 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\HelloWorld]
@="HelloWorld Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\HelloWorld\DefaultIcon]
@="C:\\test.cmd,1"

[HKEY_CLASSES_ROOT\HelloWorld\shell]
@=""

[HKEY_CLASSES_ROOT\HelloWorld\shell\open]
@=""

[HKEY_CLASSES_ROOT\HelloWorld\shell\open\command]
@="\"C:\\test.cmd\" \"%1\"" 

save as *.reg file!  And execute it!

 

2. And then create a file location: C:\\test.cmd with content as following:

ping 127.0.0.1

pause

 

save it as .cmd file .(Attention: it must location in C:\\test.cmd)

 

3.And then Input following in IE adress bar: HelloWorld://1 .You can see the following:

 

 

                                                                                 

posted @ 2010-06-26 19:02 Chris Yang 阅读(47) 评论(0) 编辑

2010年6月25日

JavaScript Treeview

摘要: I had a second development project of OCS ,The main task is to development organization tree in tag page.But you kown,tag page is not support by treeview using c# ,so we must development treeview usin...阅读全文

posted @ 2010-06-25 21:00 Chris Yang 阅读(168) 评论(0) 编辑