What are the OOPS concepts?
1) Encapsulation: It is the mechanism that binds together code and
data in manipulates, and keeps both safe from outside interference and
misuse. In short it isolates a particular code and data from all other
codes and data. A well-defined interface controls the access to that
particular code and data.
2) Inheritance: It is the process [...]
Archive for December, 2007
Some reading before Interview
Posted in Questions on December 15, 2007 | 4 Comments »
Use Regular Expression by JavaScript
Posted in Javascript, Regular Expression, Validation on December 6, 2007 | Leave a Comment »
Use Regular Expression by JavaScript
===============================
1 function validateEmail()2 {3 // Value to Validate. Ex. Your EMail Address TextBox4 var EMailID = document.getElementById(‘txtEMail’).value;56 // Here, we set the Expression to Validate the Value for EMail Address.7 var EMailValidate = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;89 // Test the Validator.10 if( EMailValidate.test(EMailID))11 {12 alert(‘Right Email Address.’);13 }14 else15 {16 alert(‘Wrong Email Address.’);17 }18 [...]
Use ICallbackEventHandler in Asp.Net 2.0
Posted in Asp.Net, Javascript on December 3, 2007 | Leave a Comment »
Use ICallbackEventHandler in Asp.Net 2.0
==================================
For Example, you have page Layout is like this :
<META NAME=”Generator” CONTENT=”EditPlus”>
<META NAME=”Author” CONTENT=””>
<META NAME=”Keywords” CONTENT=””>
<META NAME=”Description” CONTENT=””>
</HEAD>
<BODY>
<div id=”divResult” runat=”server”>
</div>
<br/>
<input type=”button” value=”Text ICallBack” onclick=”return GetPop()” />
</BODY>
</HTML>
Steps to Implement ICallbackEventHanler:
————————————————-
1. First define string variable in Common section of your code behind (.cs) file.
string _CallBackString;
2. Inherit ICallbackEventHandler in your page.
public partial class Customize [...]