|
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;
|
|
|
|
|
No, that is not possible.
For the browser to update the display in any way you would have to exit the function, but before you exit the function you have to decide if you will leave the page or not. So you have to choose between leaving the page or displaying the message.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have a working C# program. It's a gui that lets me access my parallel port. I would like to be able to convert it into a web page now. I've tried the copy past and start debugging approach. I think it's over my head.
I would like to know where to go or who to contact to have a pro work on it. I am willing to pay a programmer for a few hours of thier time. I will provide my working program and I can pay with paypal. Can someone please advise.
|
|
|
|
|
Gunnar5759 wrote: It's a gui that lets me access my parallel port. I would like to be able to convert it into a web page now
A webpage can't access the parallel port.
|
|
|
|
|
Please don't cross post.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi..
Is it possible to highlight the first empty row in gridview automatically?
(without selecting gridview row)
if there is data in grid, the first empty row will be highlighted for next data inserting. if there is no data and gridview is blank, the first row will be highlighted.
Could anyone suggest me.. please?
thanks in advance!
|
|
|
|
|
You cab check the value of the row on RowDataBound event and there you can change the style of the row for showing it as selected.
Cheers!!
Brij
|
|
|
|
|
|
I have a gridview with three Select Command fields as columns. I have code that tells me which row the user clicked on but how do find out which Select Command field they clicked
on? Thanks.
|
|
|
|
|
Everyday we get the same error on our production web server....and end up having to restart iis 5.0 to correct it.
OIP-04148: Unable to obtain a free database object from the pool.
I am trying to recreate this error in test to solve the problem and can not seem to do it...iis always works fine as intended ie: reusing, pooling connections and keeping sessions down. How is it that in a matter of seconds, 50 sesssions are created as if there is a lock (no lock btw).
any ideas?
|
|
|
|