Click here to Skip to main content
15,891,513 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: !include aspx in anotheraspx Pin
_AK_16-Oct-06 19:19
_AK_16-Oct-06 19:19 
GeneralRe: !include aspx in anotheraspx Pin
mamatha_raghu16-Oct-06 19:50
mamatha_raghu16-Oct-06 19:50 
GeneralRe: !include aspx in anotheraspx Pin
_AK_16-Oct-06 20:06
_AK_16-Oct-06 20:06 
GeneralRe: !include aspx in anotheraspx Pin
mamatha_raghu16-Oct-06 21:08
mamatha_raghu16-Oct-06 21:08 
GeneralRe: !include aspx in anotheraspx Pin
_AK_18-Oct-06 21:02
_AK_18-Oct-06 21:02 
QuestionEvents in ASP.NEt Pin
Nandini Sharma16-Oct-06 3:23
Nandini Sharma16-Oct-06 3:23 
AnswerRe: Events in ASP.NEt Pin
Guffa16-Oct-06 3:34
Guffa16-Oct-06 3:34 
QuestionRegarding calculating total amoun of memory and cpu used. Pin
VishalSharmaDev16-Oct-06 3:13
VishalSharmaDev16-Oct-06 3:13 
hi dear

i am trying to calculate the total amount of memory and cpu used while using string and stringbuilder.

i am trying this way ...

calling a method in one button click and writin to response.

Process myprocess=Process.GetCurrentProcess();
string str=null;
for (int i=0;i<=10000;i++)
{
str+="Hello1";
str+="Hello2";
}
Response.Write("using string : "+myprocess.WorkingSet.ToString()+"
");

and calling another method on another button click and writing to response.

Process myprocess=Process.GetCurrentProcess();
StringBuilder str=new StringBuilder();
for (int i=0;i<=10000;i++)
{
str.Append("Hello1");
str.Append("Hello2");
}
Response.Write("using stringbuilder : "+myprocess.WorkingSet.ToString()+"
");


but i am not getting the appropriate answer as it is showing the stringuilder is using much memory then string...

i have calculated the total time using two date time variables initialising them before starting and end of loop and then subtracting and getting the milliseconds of difference in between them. one more thing that i am calling both the functions after restarting the page.

please help out me guys, i need the solution of this problem very urgently!!!!!!!!!!!!!!!!!!!!!!!!1
regards
vishal sharma



Thanks & Regards

Vishal Sharma
vishalsharma556@yahoo.co.in

AnswerRe: Regarding calculating total amoun of memory and cpu used. Pin
Dustin Metzgar16-Oct-06 4:03
Dustin Metzgar16-Oct-06 4:03 
Questionpass the values of variable in code Behind Pin
Naif_Prof16-Oct-06 3:05
Naif_Prof16-Oct-06 3:05 
AnswerRe: pass the values of variable in code Behind Pin
perlmunger16-Oct-06 4:37
perlmunger16-Oct-06 4:37 
QuestionRe: pass the values of variable in code Behind Pin
Naif_Prof16-Oct-06 8:34
Naif_Prof16-Oct-06 8:34 
AnswerRe: pass the values of variable in code Behind Pin
perlmunger16-Oct-06 9:21
perlmunger16-Oct-06 9:21 
Questiondifference in session class function Pin
amaneet16-Oct-06 1:55
amaneet16-Oct-06 1:55 
AnswerRe: difference in session class function Pin
Elina Blank16-Oct-06 3:04
sitebuilderElina Blank16-Oct-06 3:04 
QuestionProblem in sorting Datagrid Pin
happyheartcs16-Oct-06 0:46
happyheartcs16-Oct-06 0:46 
AnswerRe: Problem in sorting Datagrid Pin
_AK_16-Oct-06 1:11
_AK_16-Oct-06 1:11 
AnswerRe: Problem in sorting Datagrid Pin
VishalSharmaDev16-Jan-07 5:38
VishalSharmaDev16-Jan-07 5:38 
Questionmy xml file Pin
ahmadnaghsh16-Oct-06 0:43
ahmadnaghsh16-Oct-06 0:43 
QuestionAdding thousands separators to numbers in GridView Pin
Mohamed El Gohary15-Oct-06 23:56
Mohamed El Gohary15-Oct-06 23:56 
AnswerRe: Adding thousands separators to numbers in GridView Pin
_AK_16-Oct-06 0:48
_AK_16-Oct-06 0:48 
GeneralRe: Adding thousands separators to numbers in GridView Pin
Mohamed El Gohary16-Oct-06 0:54
Mohamed El Gohary16-Oct-06 0:54 
GeneralRe: Adding thousands separators to numbers in GridView Pin
_AK_16-Oct-06 0:57
_AK_16-Oct-06 0:57 
Questiondropdownlist problem Pin
Kissy1615-Oct-06 23:38
Kissy1615-Oct-06 23:38 
AnswerRe: dropdownlist problem Pin
_AK_16-Oct-06 0:34
_AK_16-Oct-06 0:34 

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.