Convert enum to hashtable for dropdown list binding
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 5/31/2013 6:10:00 AM
'We have one enumenum ContractTypeBelow function for convert enum to hashtablepublic static Hashtable BindToEnum(Type enumType)Now we can direct call above function for convert enum to hashtable and use for dropdown bind.MyDropDownList.DataSource = BindToEnum(typeof(ContractType));Hope you will help above code !!'
Read full article
Search text in stored procedure
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 3/19/2013 11:28:00 AM
'Search text in store procedure...SELECT NameFROM sys.proceduresWHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%Employee%'Happy Coding... !! :)'
Read full article
JQuery reverse each loop
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 11/26/2012 10:59:00 AM
'JQuery Reverse each loop.$($("ddlid").get().reverse()).each(function() );'
Read full article
How to call child page function from parent page using JavaScript.
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 11/3/2012 5:30:00 AM
'It's very simple using JavaScript with one line code.document.getElementById('iFrameId').contentWindow.targetFunction(); Hope you enjoy it.'
Read full article
In Asp.net, how do I embed images in an email?
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 8/23/2012 1:28:00 PM
'static void EmbedImages()'
Read full article
How Parse XML Using Regular Expressions in Asp.net with C#
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 8/8/2012 7:25:00 AM
'Hello Friends,I got good solution for XML element value find from XML string.Need to just call this function with parameters XML string, XML element name and default value if value not find into XML string. private String ExtractContentFromXml(String xml, String element, String defaultValue)>)[\S\s]*?(?=\<\/)", element); Match ThisMatch = Regex.Match(xml, RegExpression); if (ThisMatch.Success) (...)'
Read full article
Insert into statement in sql server
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 1/6/2012 12:23:00 PM
'http://www.codeproject.com/KB/database/InsertGeneratorPack.aspx'
Read full article
How to restore database when database was suspect
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 12/15/2011 11:42:00 AM
'EXEC sp_resetstatus DataBaseName;ALTER DATABASE DataBaseName SET EMERGENCYDBCC checkdb(DataBaseName)ALTER DATABASE DataBaseName SET SINGLE_USER WITH ROLLBACK IMMEDIATEDBCC CheckDB (DataBaseName, REPAIR_ALLOW_DATA_LOSS)ALTER DATABASE DataBaseName SET MULTI_USER'
Read full article
Create Dynamic Excel file using Asp.Net
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 11/30/2011 12:36:00 PM
'public static void Write(HttpResponse response) // Close response stream. response.End(); }'
Read full article
Parent Child Relationship on self table in sqlserver
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 11/18/2011 10:11:00 AM
'CREATE TABLE dbo.Emp( EmpID int PRIMARY KEY, EmpName varchar(30), MgrID int FOREIGN KEY REFERENCES Emp(EmpID))GOInsert few record into tableINSERT dbo.Emp SELECT 1, 'President', NULLINSERT dbo.Emp SELECT 2, 'Vice President', 1INSERT dbo.Emp SELECT 3, 'CEO', 2INSERT dbo.Emp SELECT 4, 'CTO', 2INSERT dbo.Emp SELECT 5, 'Group Project Manager', 4INSERT dbo.Emp SELECT 6, 'Project Manager 1', 5INSERT dbo.Emp SELECT 7, 'Project Manager 2', 5INSERT dbo.Emp SELECT 8, 'Team Leader 1', 6INSE(...)'
Read full article
Price Regular expression
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 11/15/2011 12:23:00 PM
'^([0-9]*|\d*\.\d?\d*)$'
Read full article
Create Dynamic Control Using Jquery with Asp.Net
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 11/11/2011 11:37:00 AM
'Hello Friends,After so many R & D works i got good solution for generate dynamic control in asp.net using jquery/ javascript.I have got two solution. For more click here to download examples.'
Read full article
How to call server side function using JQuery in Asp.net
Author
: Kalpesh Satasiya
Blog
: Software Development - Developer | Web Designer Ahmedabad India
Date
: 9/22/2011 9:34:00 AM
'Below is Default.aspx page code-------------------------------<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=" http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <title>Call server side method using Jquery</title> <!-- Add the jQuery Reference Library--&g(...)'
Read full article