18. January 2011
xhinker
ASPNET
To save the content of TinyMCE in Ajax way. First, we need to execute the following code to dump the content to the textarea html control.
tinyMCE.activeEditor.save();
Then, get the text content:
var text = $("#commentEditor").text();
Next, send data back to server:
 ...
[More]
18. January 2011
xhinker
ASPNET
1. Loading JQuery and get it ready.
<script type="text/javascript" src="Scripts/jquery-1.4.1.js"> </script> <script type="text/javascript"> $(document).ready(function ...
[More]
17. January 2011
xhinker
ASPNET
First, we need to get all the files ready:
Open Admin.aspx file and add TinyMCE to page:
<!-- TinyMCE --> <script type="text/javascript" src="Editors/TinyMCE/tiny_mce.js"></script> <script type="text/javascript"> &nbs...
[More]
16. January 2011
xhinker
ASPNET
First, create a new .net4.0 Class Library project, add reference to System.Web.dll. then add a new class file to the project named say MyHttpHandler.cs:
using System;using System.Web; namespace Xhinker.TableTopic { public class MyHttpHandler:System.Web.IHttpHandler { &n...
[More]
15. January 2011
xhinker
ASPNET
When you created a ASPNET4 site use the default VS2010 template. then, you set the authorization as: <authorization> <deny users="?"/> </authorization>
Now, you may find that your default page disp...
[More]
14. January 2011
xhinker
WF4
I was noticed that Packt recently started a "Microfoft Monday" campaign. Packt is celebrating the publication of five new Microsoft books on Monday, 24th January 2011 by giving a special offer on all Microsoft books. They will also host a competition which will give everyone ...
[More]
8. January 2011
xhinker
WCF
1. Add net.tcp binding Right click Site name-> Edit binding 2. Enable Protocols Click Web Application name-> Advanced Settings
26. December 2010
xhinker
DotNet
MSDN reference:
http://msdn.microsoft.com/en-us/library/w5zay9db%28VS.71%29.aspx
27. November 2010
xhinker
WF4
1. Basic Validation:
public class PersonInfo:NativeActivity { public string Name { get; set; } public int Age { get; set; }  ...
[More]