my aspx page...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>
function Demand(regid) {
window.open("CustomerReport.aspx?Id=" + regid, 'Define', 'width=1000,height=600,left=0,top=0,scrollbars=yes,resizable=yes,menubar=yes');
}
.style1
{
width: 100%;
border: 1px solid #000000;
}
onclick="Button1_Click" /> onclick="Button2_Click" /> |
AllowSorting="true" DataSourceID="dsDetails" Width="100%" class="grid-bg" DataKeyNames="mobile" >
<%-- --%>
Text='<%# Eval("name") %>' />
using System;
using System.Collections;
using System.Configuration;
using System.Data;
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 System.Text.RegularExpressions;
public partial class Search : System.Web.UI.Page
{
private string SearchString = "";
protected void Page_Load(object sender, EventArgs e)
{
}
public string HighlightText(string InputTxt)
{
string Search_Str = txtSearch.Text;
// Setup the regular expression and add the Or operator.
Regex RegExp = new Regex(Search_Str.Replace(" ", "|").Trim(), RegexOptions.IgnoreCase);
// Highlight keywords by calling the
//delegate each time a keyword is found.
return RegExp.Replace(InputTxt, new MatchEvaluator(ReplaceKeyWords));
}
public string ReplaceKeyWords(Match m)
{
return ("" + m.Value + "");
}
protected void Button1_Click(object sender, EventArgs e)
{
SearchString = txtSearch.Text;
}
protected void Button2_Click(object sender, EventArgs e)
{
txtSearch.Text = "";
SearchString = "";
gvDetails.DataBind();
}
}
i want to know how i can find out that how many time a person click on show detail link.. plz help me out.. its really urgent.. plz plz.
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Saurabh VijanPosted Apr 26, 2014, 1:16 AM
var clickcount=0;
$('#show_detail_id').click(function(){
clickcount=clickcount+1;
});
this variable 'clickcount' is the click count to ur show detail lnk