Click here to Skip to main content
15,908,581 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: LinkButton problem Pin
N a v a n e e t h14-Apr-08 20:22
N a v a n e e t h14-Apr-08 20:22 
GeneralRe: LinkButton problem Pin
Soumini Ramakrishnan14-Apr-08 20:31
Soumini Ramakrishnan14-Apr-08 20:31 
GeneralRe: LinkButton problem Pin
Nouman Bhatti14-Apr-08 21:29
Nouman Bhatti14-Apr-08 21:29 
GeneralRe: LinkButton problem Pin
eyeseetee14-Apr-08 21:38
eyeseetee14-Apr-08 21:38 
GeneralRe: LinkButton problem Pin
Soumini Ramakrishnan14-Apr-08 23:33
Soumini Ramakrishnan14-Apr-08 23:33 
Questioni want to know the number hits customers are visting Pin
ajaych14-Apr-08 19:02
ajaych14-Apr-08 19:02 
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus14-Apr-08 19:17
protectorChristian Graus14-Apr-08 19:17 
GeneralRe: i want to know the number hits customers are visting Pin
Soumini Ramakrishnan14-Apr-08 19:31
Soumini Ramakrishnan14-Apr-08 19:31 
I think the following code will help you. In your application folder create a text file named "Counter.txt" and put 0 in that file. Write the following in the code behind page.
protected void Page_Load(object sender, EventArgs e)
{
myLabel .Text = counter();
}
public string counter()
{

StreamReader re = File.OpenText(Server.MapPath("Counter.txt"));
string input = null;
string mycounter = "";

while ((input = re.ReadLine()) != null)
{
mycounter = mycounter + input;
}

re.Close();

int myInt = int.Parse(mycounter);
myInt = myInt + 1;

TextWriter tw = new StreamWriter(Server.MapPath("Counter.txt"));

tw.WriteLine(Convert.ToString(myInt));

tw.Close();

re = File.OpenText(Server.MapPath("Counter.txt"));
input = null;
mycounter = "";

while ((input = re.ReadLine()) != null) { mycounter = mycounter + input; } re.Close();

return mycounter;

}
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus14-Apr-08 19:36
protectorChristian Graus14-Apr-08 19:36 
GeneralRe: i want to know the number hits customers are visting Pin
Soumini Ramakrishnan14-Apr-08 19:49
Soumini Ramakrishnan14-Apr-08 19:49 
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus14-Apr-08 19:53
protectorChristian Graus14-Apr-08 19:53 
GeneralRe: i want to know the number hits customers are visting Pin
Soumini Ramakrishnan14-Apr-08 20:03
Soumini Ramakrishnan14-Apr-08 20:03 
GeneralRe: i want to know the number hits customers are visting Pin
N a v a n e e t h14-Apr-08 20:15
N a v a n e e t h14-Apr-08 20:15 
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus14-Apr-08 21:12
protectorChristian Graus14-Apr-08 21:12 
GeneralRe: i want to know the number hits customers are visting Pin
N a v a n e e t h14-Apr-08 21:23
N a v a n e e t h14-Apr-08 21:23 
GeneralRe: i want to know the number hits customers are visting Pin
ajaych15-Apr-08 19:50
ajaych15-Apr-08 19:50 
GeneralRe: i want to know the number hits customers are visting Pin
Christian Graus16-Apr-08 11:18
protectorChristian Graus16-Apr-08 11:18 
GeneralRe: i want to know the number hits customers are visting Pin
N a v a n e e t h14-Apr-08 20:19
N a v a n e e t h14-Apr-08 20:19 
Generalconverssion of PDF pages into images Pin
Arihant rathi14-Apr-08 18:54
Arihant rathi14-Apr-08 18:54 
GeneralRe: converssion of PDF pages into images Pin
Christian Graus14-Apr-08 19:18
protectorChristian Graus14-Apr-08 19:18 
QuestionGlobalization and Date Format Pin
andrew_dk14-Apr-08 12:29
andrew_dk14-Apr-08 12:29 
GeneralDash boards Pin
kjosh14-Apr-08 12:01
kjosh14-Apr-08 12:01 
GeneralRe: Dash boards Pin
Christian Graus14-Apr-08 12:30
protectorChristian Graus14-Apr-08 12:30 
GeneralRe: Dash boards Pin
Hamid_RT14-Apr-08 21:51
Hamid_RT14-Apr-08 21:51 
QuestionCustom Control Problem Pin
DominionZA14-Apr-08 11:14
DominionZA14-Apr-08 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.