|
Sandeep Akhare wrote: Yes, as getting the static value is much faster than the getting Application Variable value
|
|
|
|
|
Hey Navaneeth !!!
Am i wrong by saying this ? please correct me if i am wrong
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Sandeep,
There is no performance difference in accessing a static variable and application variable. ASP.NET implements application variables in static fields. If you look carefully, you will see that ASP.NET is using HttpStaticObjectsCollection for keeping the application variable value. So you can't compare the performance.
Sorry, I could have explained this in my previous post rather than putting you into a confusion.
|
|
|
|
|
Hi Navaneeth,
Sorry to say but i have read it in one of articles on web please have a look at it and let me know if you have any different view on this (Please read last paragraph of the same )
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312607[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
modified on Thursday, October 23, 2008 5:53 AM
|
|
|
|
|
thank for reply
brother you were talking about data caching through configuration file...??
can i use more than 50 variables in with hard coded data in it???
and will it be better than application variable if yes then please provide me the code i dont want to use database.
umerumerumer
|
|
|
|
|
Why do you need this? I'd put all these in a configuration file and read from there. Cache the results to avoid reading all time.
|
|
|
|
|
ya how caching is possible through configuration file?? can you provide me the code???
value + code i want to save at place where i can access it in any page and usefull for multiple users...
umerumerumer
|
|
|
|
|
and these variables can be upto 50-70.
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: ya how caching is possible through configuration file?
Just read the configuration value and assign to cache . Read books online about cache and it's usage.
mr_muskurahat wrote: can you provide me the code???
You can try it. Come back with specific problems. Lazy people asks for code.
|
|
|
|
|
Hi all i am using multiview control so change active index of multiview control i wrote ...
MultiView1.ActiveViewIndex = 0;
it is in .cs file ... can i set active index using java script if yes plz tell me how can i do this?
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
hi folks,
I require some points/answers related to performance issues in web application.Thanks in advance for ur help.
T.Balaji
|
|
|
|
|
There are few Points that you need to always care as given
1: Keep as low size of session data as you can.
2: Keep minimal data in session.
3: Try to transfer minimal data to server from Client.
4: Keep the size of the client pages(HTML etc) very less.
5: Use javascript as much as you can
Use best pratctices for server side coding.
Cheers!!
Brij
|
|
|
|
|
hi brij,
thanx yar.. Are the points 1 and 2 are the same?Can u give me sme more points?
T.Balaji
|
|
|
|
|
This is not possible to say all issues in the points and what to do and what to not. There are many books in the market which are totally devoted to performance tuning of Web application from Back end to front end.
Some times it depends on the requirement you have to look for business requirement rather than performance.
So my kind advice to you is buy one of these books or read MSDN online to get details information
Also you should know why these are issues ? the reason behind that issue is most important than the issue itself
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
|
|
hi ,
thanx i cud find so any points in the link2
T.Balaji
|
|
|
|
|
|
hi abhijit,
This is simply superb..thanx
T.Balaji
|
|
|
|
|
I am developing a Website portal using ASP.Net ( C# ).
I want to restrict the number of users to 10 who are accessing my website simultaneously.
If 11th user want to access the website then it should prompt to user that "Website is too busy while processing request". When one of the 10 users leave the website then another user can visit that website.
Please help me in this regards how to implement this technique using ASP.Net ( C# ).
|
|
|
|
|
I doubt if anything will be reliable as you need to take into account the browser back button, user simply leaving the browser on your page, session timeout etc etc.
It does beg the question as to why you only want 10 users at a time, but I guess thats up to you
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Yes, I think There is a way. You can try to implement it using Global.asax file. In Global.asax file, there is a method Session_Start()
here you just use a variable to count the number of session, because for first request one session will be created , so you just count number of seesion, if count==11 , just in page load of your application send what ever message you want to so !!!
This will solve your problem !!!
cheers,
Abhijit
|
|
|
|
|
What abhijit has said is correct and it should solve your problem. But can you please explain why do you want to restrict number of users?
I don't think it is a good option as they won't feel happy and ultimately won't visit your site again. If it is because of performance then i must say you should try to improve the design of site rather then restricting users.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
AhsanS wrote: If it is because of performance
I dont think it only because of the performance. because 10 user is too less for any web application. may be reason is other .
cheers,
Abhijit
|
|
|
|
|
hi frnds,
this code will find the browser close button,,,,,
but ineed to disappear slowly while close the web page . where i have to write the code using javascript
is it possibel ? if it is possible plz give me the solution
function confirmUnload()
{
var mes = "Your message here";
if (event)
{
event.returnValue = mes;
}
else
{
}
}
window.onbeforeunload = confirmUnload;
|
|
|
|