Replace space character in between string in Jquery
Sometimes it possible that we need string by all space character removed, so here is the way by which we can remove space
character from our string.
For Example :
Our string is "Rajesh Singh"
var searchvalue='Rajesh Singh'
var searchvaluetemp = searchvalue.replace(/ /g, '');
Our Output will be "RajeshSingh"
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
Email: raj143svmit@gmail.com
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Replace space character in between string in Jquery
Monday, August 2, 2010
Labels:
Javascript
,
jQuery
You can use this jquery file direclty from URL
Sunday, July 25, 2010
Hello friends,
Mostly what we do to apply jQuery validation to your form.
You download files from internet and add in your website and then use that.
but whats the guarantee that, it would be correct so here is the few URL, i am providing that you might use directly or you can even download to your website.
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Mostly what we do to apply jQuery validation to your form.
You download files from internet and add in your website and then use that.
but whats the guarantee that, it would be correct so here is the few URL, i am providing that you might use directly or you can even download to your website.
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Code to execute database operation and return value in Integer
Hello,
Here in below code you will find, how to do database operation in function in class and that function return Integer as return value.
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Here in below code you will find, how to do database operation in function in class and that function return Integer as return value.
SqlConnection conn = new SqlConnection("Data
Source=localhost;Database=MyDB;Integrated Security=SSPI");
SqlCommand command = new SqlCommand("InsertUser", conn);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@User", SqlDbType.VarChar).Value = user;
command.Parameters.Add("@Pass", SqlDbType.VarChar).Value = pass;
conn.Open();
int rows = command.ExecuteNonQuery();
conn.Close();
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Labels:
Asp.Net
,
Interview
,
SQL Developer
Code to execute database operation and return value in Dataset
Hello,
Here in below code you will find, how to do database operation in function in class and that function return dataset as return value.
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Here in below code you will find, how to do database operation in function in class and that function return dataset as return value.
SqlConnection conn = new SqlConnection("Data Source=localhost;Database=Northwind;Integrated Security=SSPI");
SqlCommand command = new SqlCommand("GetProducts", conn);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@CategoryID", SqlDbType.Int).Value = 1;
SqlDataAdapter adapter = new SqlDataAdapter(command);
DataSet ds = new DataSet();
adapter.Fill(ds, "Products");
dataGrid1.DataSource = ds;
dataGrid1.DataMember = "Products";
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Labels:
ASP.NET 2.0
,
C#
,
Interview
How to create class file in Asp.Net ?
Hi,
You can just add App_Code file and add class file to this folder and copy this code to that class file and modify according to your need.
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
You can just add App_Code file and add class file to this folder and copy this code to that class file and modify according to your need.
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using commonlib.Common;
/// <summary>
/// Summary description for Program
/// </summary>
public class Program
{
#region "Fields"
string sOperation;
int iProgramID;
string sProgramName;
string sSlogan;
string sStartTime;
string sEndTime;
string sDetail;
int iCityID;
string sStatus;
#endregion
#region "Construtor"
public Program()
{
}
public Program(string SOperation, int IProgramID, string SProgramName, string SSlogan, string SStartTime, string SEndTime, string SDetail, int ICityID, string SStatus)
{
this.sOperation = SOperation;
this.iProgramID = IProgramID;
this.sProgramName = SProgramName;
this.sSlogan = SSlogan;
this.sStartTime = SStartTime;
this.sEndTime = SEndTime;
this.sDetail = SDetail;
this.iCityID = ICityID;
this.sStatus = SStatus;
}
#endregion
#region "Properties"
public string SOperation
{
get { return sOperation; }
set { sOperation = value; }
}
public int IProgramID
{
get { return iProgramID; }
set { iProgramID = value; }
}
public string SProgramName
{
get { return sProgramName; }
set { sProgramName = value; }
}
public string SSlogan
{
get { return sSlogan; }
set { sSlogan = value; }
}
public string SStartTime
{
get { return sStartTime; }
set { sStartTime = value; }
}
public string SEndTime
{
get { return sEndTime; }
set { sEndTime = value; }
}
public string SDetail
{
get { return sDetail; }
set { sDetail = value; }
}
public int ICityID
{
get { return iCityID; }
set { iCityID = value; }
}
public string SStatus
{
get { return sStatus; }
set { sStatus = value; }
}
#endregion
#region "Functions"
public int ProgramOperation(string user, string pass)
{
SqlConnection conn = new SqlConnection("Data Source=localhost;Database=MyDB;Integrated Security=SSPI");
SqlCommand command = new SqlCommand("XYZ_SP_CheckProgramAvailability", conn);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@User", SqlDbType.VarChar).Value = user;
command.Parameters.Add("@Pass", SqlDbType.VarChar).Value = pass;
conn.Open();
int rows = command.ExecuteNonQuery();
conn.Close();
}
#endregion
}
Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer
e-Procurement Technologies Ltd (India)
www.abcprocure.com
Labels:
C#
,
C# Programming
,
Interview
,
VB.NET Developer
Subscribe to:
Posts
(
Atom
)








