|
hi vimal raj
it is working perfectly..thanx for your valuable suggestion and your time.
pintoo
|
|
|
|
|
i want to make a remote backup server. plz send me c# example related to remote backup server.
regards
modified on Tuesday, March 25, 2008 11:43 AM
|
|
|
|
|
|
Hello everyone,
I do not understand what means "A stateless design (popular for reasons of scalability) intrinsically limits the possibility of interaction, since classes are unable to persist data between each request." and why such design will be better to scale. Any more descriptions?
http://www.albahari.com/threading/part2.html
--------------------
Another way to cheat is to minimize thread interaction by minimizing shared data. This is an excellent approach and is used implicitly in "stateless" middle-tier application and web page servers. Since multiple client requests can arrive simultaneously, each request comes in on its own thread (by virtue of the ASP.NET, Web Services or Remoting architectures), and this means the methods they call must be thread-safe. A stateless design (popular for reasons of scalability) intrinsically limits the possibility of interaction, since classes are unable to persist data between each request. Thread interaction is then limited just to static fields one may choose to create – perhaps for the purposes of caching commonly used data in memory – and in providing infrastructure services such as authentication and auditing.
--------------------
thanks in advance,
George
|
|
|
|
|
George_George wrote: A stateless design (popular for reasons of scalability) intrinsically limits the possibility of interaction, since classes are unable to persist data between each request
Yes as told in the article, this is another way to minimize thread interaction. Webservers communicates with the clients through HTTP protocol. When a request arrives at the webserver, it processes and sends the response back. It's not persisting the data(HTTP is stateless) . Instances will be created and disposed before sending the response, also each request has it's own thread. This limits the interaction between threads. But static classes will be there in the memory for long time, so thread interaction is needed there.
Hope it's clear
|
|
|
|
|
Thanks N a v a n e e t h,
Your reply is clear. Question answered.
regards,
George
|
|
|
|
|
Glad to know it helped
|
|
|
|
|
George_George wrote: This is an excellent approach and is used implicitly in "stateless" middle-tier application and web page servers.
Not sure I believe that is completely accurate. There seems to be a mixing of several things into one and making a point that is not valid for all of them. HTTP is a stateless protocol. That has nothing to do with threading. And in fact modern Application Servers do provide mechanisms to manage state in an HTTP context. While the point about static data is accurate it's mixed in a discussion of Application Servers which don't use static data to provide state mechanisms.
Perhaps I am reading it wrong but I find that paragraph confusing and I'm not at all sure that it is accurate.
led mike
|
|
|
|
|
Hi led mike,
Which point or points do you think is inaccurate? HTTP is stateless (almost), but still use minimal static data which needs to be synchronized by threads, I think this is both the points from my quoted article and your points.
regards,
George
|
|
|
|
|
George_George wrote: Which point or points do you think is inaccurate? HTTP is stateless (almost), but still use minimal static data which needs to be synchronized by threads
No, I thought I was very clear on that:
led mike wrote: HTTP is a stateless protocol. That has nothing to do with threading.
led mike
|
|
|
|
|
Thanks led mike,
Question answered.
regards,
George
|
|
|
|
|
Hi,
kindly tell me the solution or give the ready made samples of following:
The "notepad" is already loaded and I want to send "Hello Notepad" to "notepad" application.
Thank you in advance
(Riaz)
|
|
|
|
|
|
Hi i am having two datagrid views in my form
User is entering data into the gridview 1
and i have provided a button ...
So how to copy the data from the first gridview to second on button click ...
Here i can implement a recursive method to do this ...want to know is there any other way to do this
Thank You
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Why would you need recursion when a gridview has only one level ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i mean to say a loop for assigning the grid view 1 cell data to grid view 2..
CG I have solved this ...i know i am starting another thread here sorry
One more question when user clicks on the column head cell contents get sorted how to restrict this ....
*** Why EXPERTS behave like a fool ***
modified on Monday, March 24, 2008 3:03 AM
|
|
|
|
|
Hey! the problem is solved, it needed a static class
|
|
|
|
|
Sorry My Dear Friend
Try this Take a Grid View on the form with two columns In the load event add 10 rows to it
Restrict user from adding and deleting rows
now run the application
Example : S.No Phone_Number
1 23232
2 45324
5 23422
Now click on the S.No which is the Column header you will find that there positions are changing and getting sorted up.. I want to restrict this thing
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Can we do like this in enums
enum myStringEnum {
enumItem1 = "value 1",
enumItem2 = "value 2",
etc
}
i.e.spaces in the string value, I know we can assign int value to enum
but I m not sure whether string values (with spaces) can be assigned to enums.
If no, then can we have some alternative?
Since I want the string values with spaces in enum
|
|
|
|
|
Nope you can't. You can use underscore.
You can put a Description attribute to the enum
public enum EnumTypes
{
[System.ComponentModel.Description("Nothing To See Here")]
Null = 0,
}
and use DescriptionAttribute to read the Description. But for datagridview, databinding etc, it will show the enum (not the description).
|
|
|
|
|
and if i want to use the value in description then how can i retrieve this,
I mean I have "value 1" i.e. string value (with spaces) in database and I want this value to the database value and retreive some records,
then m i able to get the string value?
|
|
|
|
|
Nope, you can't directly.
Work around is (not recommended, it's messy)
1. From database, read "value 1"
2. Make a function to map "value 1" to the enum value base on the Description value, using loop, etc.
3. Use the enum in your code, etc.
4. When saving to database, save the enum's Description.
|
|
|
|
|
Hey! Thanks a lot ,
the problem is solved by using static class....
got the answer in this link
http://www.codeproject.com/KB/cs/stringenum.aspx
|
|
|
|
|
All,
Is there a way in which I can run my application as a SYSTEM process instead of a user process?
Thanks
|
|
|
|
|
CNewbie wrote: in which I can run my application
Is it a Windows service?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|