ASPSnippets

Alerts
Get notified when a new article is published.

Name
 
Email

Your email will always be private and will not be shared.

Follow us on twitter.
 
Recently added
Issue: JavaScript in WebUserControl not working when used multiple times on same page

Author : Mudassar Khan

In this article I’ll discuss an issue which is not discussed on many places but is an issue any one can face when he uses Web User Control and JavaScript combination in ASP.Net. Issue Consider a simple WebUserControl with some JavaScript below. @ Control Language="C#" AutoEventWireup="true" CodeFile="UC_TestCS.ascx.cs" Inherits="UC_TestCS" %> script type ="text/javascript"> function DisplayMessage() {     var message = document.getElementById("").value;     alert(mess ...More

Posted : July 30, 2010 by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
JavaScript



Performing Validation in TinyMCE Editor using ASP.Net Validation Controls

Author : Mudassar Khan

In this article I’ll be explaining how to validate TinyMCE Rich Text Editor or Rich TextBox. If you like to know more about adding TinyMCE editor in ASP.Net application, refer my following article Using Tiny MCE Rich TextBox in ASP.Net Directly if you try to add a normal Required Field validator it will simply validate the multiline textbox and not the TinyMCE Editor and gives you Required message. This is because TinyMCE adds its content to the multiline textbox or TextArea after the but ...More

Posted : July 25, 2010 by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
JavaScript
 |
Rich Text Editor



Parallelism - Parallel Task Execution in .Net 4.0

Author : Mudassar Khan

.Net 4.0 has come up with many new features. Recently I got in touch with an interesting feature that is Parallelism which is nothing but Parallel Execution of some task. Parallelism can be achieved in two ways 1.     Parallel class 2.     PLINQ (Parallel LINQ) I will be explaining both the techniques with an example that will have a list of websites in an string collection and we’ll try to ping the sites in parallel using the above two techniques. In the example I’ll be making use of ...More

Posted : July 24, 2010 by : Mudassar Khan  |  Comments(0)
Filed Under :
C#.Net
 |
VB.Net
 |
New Features
 |
.Net 4.0



Implementing Spelling Check Feature using TinyMCE Rich Text Editor in ASP.Net

Author : Mudassar Khan

In this article I am explaining how to add Spelling Check Feature in TinyMCE Rich Text Editor. To get more information on how to implement TinyMCE Rich Text Editor in ASP.Net refer my article Using Tiny MCE Rich TextBox in ASP.Net Once TinyMCE is implemented in your ASP.Net project, you will need to download the TinyMCE .Net Package that contains the Spell Checker plugin from the TinyMCE website using the following link http://tinymce.moxiecode.com/download.php Direct Link to the package is ...More

Posted : July 11, 2010 by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
Rich Text Editor



Preserving state and values of custom properties across postback in ASP.Net

Author : Mudassar Khan

In day to day life in programming we make use of Properties to pass data from Page to Web User Control and vice versa in asp.net. Thus on many occasions we need to preserve the state and values of such properties across PostBack. Thus in this article I’ll explain how we can actually preserve the Properties by making use of ViewStates Below is a normal property of a Web User Control C# private string _message; public string Message {     get     {         return _message;     } ...More

Posted : July 01, 2010 by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
C#.Net
 |
VB.Net





Most Viewed
Preserving state and values of custom properties across postback in ASP.Net

Author : Mudassar Khan

In day to day life in programming we make use of Properties to pass data from Page to Web User Control and vice versa in asp.net. Thus on many occasions we need to preserve the state and values of such properties across PostBack. Thus in this article I’ll explain how we can actually preserve the Properties by making use of ViewStates Below is a normal property of a Web User Control C# private string _message; public string Message {     get     {         return _message;     } ...More

Posted : July 01, 2010   by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
C#.Net
 |
VB.Net



Implementing Spelling Check Feature using TinyMCE Rich Text Editor in ASP.Net

Author : Mudassar Khan

In this article I am explaining how to add Spelling Check Feature in TinyMCE Rich Text Editor. To get more information on how to implement TinyMCE Rich Text Editor in ASP.Net refer my article Using Tiny MCE Rich TextBox in ASP.Net Once TinyMCE is implemented in your ASP.Net project, you will need to download the TinyMCE .Net Package that contains the Spell Checker plugin from the TinyMCE website using the following link http://tinymce.moxiecode.com/download.php Direct Link to the package is ...More

Posted : July 11, 2010   by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
Rich Text Editor



Parallelism - Parallel Task Execution in .Net 4.0

Author : Mudassar Khan

.Net 4.0 has come up with many new features. Recently I got in touch with an interesting feature that is Parallelism which is nothing but Parallel Execution of some task. Parallelism can be achieved in two ways 1.     Parallel class 2.     PLINQ (Parallel LINQ) I will be explaining both the techniques with an example that will have a list of websites in an string collection and we’ll try to ping the sites in parallel using the above two techniques. In the example I’ll be making use of ...More

Posted : July 24, 2010   by : Mudassar Khan  |  Comments(0)
Filed Under :
C#.Net
 |
VB.Net
 |
New Features
 |
.Net 4.0



Performing Validation in TinyMCE Editor using ASP.Net Validation Controls

Author : Mudassar Khan

In this article I’ll be explaining how to validate TinyMCE Rich Text Editor or Rich TextBox. If you like to know more about adding TinyMCE editor in ASP.Net application, refer my following article Using Tiny MCE Rich TextBox in ASP.Net Directly if you try to add a normal Required Field validator it will simply validate the multiline textbox and not the TinyMCE Editor and gives you Required message. This is because TinyMCE adds its content to the multiline textbox or TextArea after the but ...More

Posted : July 25, 2010   by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
JavaScript
 |
Rich Text Editor



Issue: JavaScript in WebUserControl not working when used multiple times on same page

Author : Mudassar Khan

In this article I’ll discuss an issue which is not discussed on many places but is an issue any one can face when he uses Web User Control and JavaScript combination in ASP.Net. Issue Consider a simple WebUserControl with some JavaScript below. @ Control Language="C#" AutoEventWireup="true" CodeFile="UC_TestCS.ascx.cs" Inherits="UC_TestCS" %> script type ="text/javascript"> function DisplayMessage() {     var message = document.getElementById("").value;     alert(mess ...More

Posted : July 30, 2010   by : Mudassar Khan  |  Comments(0)
Filed Under :
ASP.Net
 |
JavaScript