list-style-type: none;
Tuesday, May 20, 2014
Use Ajax AutoCompleteExtender in Content Page Asp.net
1) <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
2) Write All Javascripts File In Body
2) Write All Javascripts File In Body
Monday, May 19, 2014
Like Query Sql
SELECT Lead.LeadId, Lead.Phone, Lead.ReferredBy, Leadcategory.LeadCategoryName, Leadcategory.LeadCategoryId,
Lead.FirstName + ' ' + Lead.LastName AS Name,Lead.UserName
FROM Lead INNER JOIN
Leadcategory ON Lead.LeadCategoryId = Leadcategory.LeadCategoryId
WHERE (Lead.UserName LIKE '%" + clientName + "%')
Lead.FirstName + ' ' + Lead.LastName AS Name,Lead.UserName
FROM Lead INNER JOIN
Leadcategory ON Lead.LeadCategoryId = Leadcategory.LeadCategoryId
WHERE (Lead.UserName LIKE '%" + clientName + "%')
get textbox value in javascript onkeyup
1) <asp:TextBox ID="txtclientName" runat="server" onKeyUp="updateGridOnTextChanged();"></asp:TextBox>
2) function updateGridOnTextChanged() {
var clientName = document.getElementById('<%= txtclientName.ClientID %>').value;
//ajax
var args = clientName;
$.ajax({
type: "POST",
url: "TrackLeads.aspx/updateGridOnTextChanged",
data: "{'args':'" + args + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (msg) {
}
});
//end of ajax
}
3) [System.Web.Services.WebMethod]
public static string updateGridOnTextChanged(string args)
{
return null;
}
2) function updateGridOnTextChanged() {
var clientName = document.getElementById('<%= txtclientName.ClientID %>').value;
//ajax
var args = clientName;
$.ajax({
type: "POST",
url: "TrackLeads.aspx/updateGridOnTextChanged",
data: "{'args':'" + args + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (msg) {
}
});
//end of ajax
}
3) [System.Web.Services.WebMethod]
public static string updateGridOnTextChanged(string args)
{
return null;
}
split data in jquery success function
success: function (msg4) {
var array_data = String(msg4.d).split(",");
}
var array_data = String(msg4.d).split(",");
}
Sunday, May 18, 2014
how to get read only textbox control values in codebehind using asp.net
1) protected void Page_Load(object sender, EventArgs e)
{
txtbirthdate.Attributes.Add("readonly", "readonly");
}
2) in button click event birthdate = txtbirthdate.Text;
3) <asp:TextBox ID="txtbirthdate" runat="server" Width="183px" autocomplete="off"></asp:TextBox>
<asp:CalendarExtender TargetControlID="txtbirthdate" runat="server">
</asp:CalendarExtender>
{
txtbirthdate.Attributes.Add("readonly", "readonly");
}
2) in button click event birthdate = txtbirthdate.Text;
3) <asp:TextBox ID="txtbirthdate" runat="server" Width="183px" autocomplete="off"></asp:TextBox>
<asp:CalendarExtender TargetControlID="txtbirthdate" runat="server">
</asp:CalendarExtender>
Turning off the autocomplete feature for a textbox RSS
<asp:TextBox ID="txtbirthdate" runat="server" Width="183px" autocomplete="off"></asp:TextBox>
<asp:CalendarExtender TargetControlID="txtbirthdate" runat="server">
</asp:CalendarExtender>
<asp:CalendarExtender TargetControlID="txtbirthdate" runat="server">
</asp:CalendarExtender>
Subscribe to:
Posts (Atom)