Monthly Archives: July 2007

Important Tech Links

About Delegates: http://sellsbrothers.com/writing/default.aspx?content=delegates.htm ASP.NET Page Modules http://msmvps.com/blogs/paulomorgado/default.aspx ASP.NET Question Answer http://discuss.joelonsoftware.com/default.asp  AutoSuggestControl http://www.codeproject.com/jscript/AutoSuggestControl.asp Print From ASPX Page http://dotnetsoldier.blogspot.com/ dotnetcaffe http://dotnetcaffe.blogspot.com/ DHTML Methods http://msdn2.microsoft.com/en-us/library/ms533053.aspx .NET Development & Architecture http://msmvps.com/blogs/paulomorgado/default.aspx MSN .NET questions answers http://groups.msn.com/MumbaiUserGroup/netinterviewquestions.msnw Interop in .NET Framework http://www.dotnetinterop.com/kb.aspx ebooks http://www.chmpdf.com/archives/ebooks/ .NET Blog http://geertverhoeven.blogspot.com/ Visual Studio .NET Code Editing Tips & Tricks http://www.agiledeveloper.com/articles/VSDOTNETCodeEditingTipsAndTricks.pdf .NET Blog http://blogs.mbccs.com/mbccomputersolutions […]

Disable rightclick with javascript

http://www.learnxpress.com/modules/contents/channels/ch,js,,disable_rc.aspx <html><head><script language = "javascript">function Disable() {if (event.button == 2) {alert("This action is not possible")}}document.onmousedown=Disable;</script></head><body></body></html> 

Required field Validation on dropdown Selected index changed

——————————————————– If a field Validation needed then write——–ValidatorEnable(document.getElementById("reqDefaultDisplay"),true);else write——-ValidatorEnable(document.getElementById("reqDefaultDisplay"),false); 

Custom Vaidation for UserName

1.Java script:<script type="text/javascript">       function ClientValidate(source, arguments)       {          var userName = eval(‘window.document.form1.txtUserName.value’);    if(userName.length<5||userName.length>10)    {      arguments.IsValid = false;    }          else          {            arguments.IsValid = true;          }       }     </script> 2.ASPx:<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox> <asp:CustomValidator id="CustomValidator1" runat="server"ControlToValidate="txtUserName"ClientValidationFunction="ClientValidate"Display="Static"Font-Names="verdana" Font-Size="10pt">Length of UserName must be in 5-10.</asp:CustomValidator> <asp:Button ID="Button2" runat="server" Text="Submit" /> 

Convert Password if password field is varbinary

select convert(varchar,[password]) as password,* from tblHM_UserMaster 

IN Page popup Links

Like baloon http://www.codeproject.com/jscript/jsballoon.asp Like Rectangle http://www.bosrup.com/web/overlib/ 

Random ID selection using sql server

SELECT TOP 1 dykid,dyktext FROM dyktable where dykstatus=’y’ ORDER BY NEWID()