|
How to set logout After Backspace or backbutton in login page display without code use history.forward()
|
|
|
|
|
I don't know exactly what you looking for. Can you clarify your question
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hi everybody
How do display a word page into web page
Nguyen Duy Tuan
|
|
|
|
|
duyoanhht46 wrote: How do display a word page into web page
Are you trying to embed Microsoft Word document on asp.net page? If so, you can embed the doc file within IFrame
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hello,
1. I was under the impression that cache.insert was thread safe. Is this true?
2. Also you cannot count on a cached item staying in the cache until it expires because it maybe be removed for memory reasons - true?
3. Are there rules of thumb for how much data is too much to cache? which would then just cause the cache to be continually shuffled with objects. I know it would be depend on many things...but if there any basic parameters?
Also there are different patterns of how to implement caching one of which is called: Asynchronous pull loading - which is what I probably should use. It requires implementing a dispatcher to consolidate data, a cache and the business logic.
I don't have lots of data consolidation to do but do have a situation where I want to pull data all at once into the cache, then expire on a regular and fairly infrequent basis.
4. Does this sound like the kind of pattern for me to use then?
5. Would the dispatcher then just be a method called asynchronously to pull data on the cache object expiration and then also as a callback if the cache object is removed for other reasons?
Thanks for enlightening me on any of this.
|
|
|
|
|
I don't know, as I have not done much webservice caching. Is there anything that can answer your question in this article (XML Web Service Caching Strategies[^])
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks - that's a good article.
|
|
|
|
|
you are welcome.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi All,
I have a asp.net web service and I am running an .exe file though this web service. The web serivce is calling that .exe file (console application) and running the code of that console application successfully. I have written console.readline in the console application. The problem is that when I run this web service in the windows XP is show that console application, however when I run in the Windows 2003 this also call that console application, but not showing that window. I have to show that console application in windows 2003 also. Would you please let me know the solution.
Pankaj
|
|
|
|
|
why in the world do you want to run console app from web service? I'm totally at loss.
If there is a valid reason to run the console, why do you want to show it? can't you run the process and redirect the output to your process.
Just because you can do it, does not meant you have to do it.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks for the replay. Actually there is the need to show all the processes in the console, that's why I need to show until it complete all the process.
Pankaj
|
|
|
|
|
Pankaj Saha wrote: Actually there is the need to show all the processes in the console, that's why I need to show until it complete all the process.
Are you going to sit 24/7 on the server to watch all the console app coming and going? I don't understand why you need to show it. You can still run it with out showing the console up. You can interact with it. You can get all the outputs, but I don't get it why the need to show it, unless you will have someone staring at the server all the time.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
There is no one to sit 24/7 hours on server. As I said before there is a web service which will call that console application, now if some one call that web service then that web service call that console. In console he/she can we see what process are running. That's why I need to show the console.
Pankaj
|
|
|
|
|
Look you are repeating your self. I know what you said and what you are doing
Pankaj Saha wrote: now if some one call that web service
Ok, let me walk you through this. Imagine I am consuming your webservice, ok are you with me.
Pankaj Saha wrote: then that web service call that console.
fair enough. I call your webservice and the webservice starts the console app
Pankaj Saha wrote: In console he/she can we see what process are running.
who is he/she? I called your web service. I am here on the client side (in US), your web service is running on the server side (over there in India). How can I see your console? Are you embedding it in your web service? Impossible! I am just consuming your web service.
Now explain to me, who is going to see your console. Me, I can't. You, ok, will you be there in the server 24/7 to watch the paint dry?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Pankaj Saha wrote:
In console he/she can we see what process are running.
who is he/she? I called your web service. I am here on the client side (in US), your web service is running on the server side (over there in India). How can I see your console? Are you embedding it in your web service? Impossible! I am just consuming your web service.
ok. Now the thing is that there are multipal servers and every server have a web service, and there is only single application in each server which will consume their local web service, no one is accessing the web services from the client site. Now I am running that service and want to see that console window. It is showing in Windows XP but not in Windows 2003.
Pankaj
|
|
|
|
|
Unless there is something else you did not describe, you latest statement make it more confusing.
Pankaj Saha wrote: Now the thing is that there are multipal servers and every server have a web service
Are all the servers running the same webservice? If so why?
Pankaj Saha wrote: and there is only single application in each server which will consume their local web service
So you have asp.net application running on the server which it consumes a local webservice. Fair enough.
Pankaj Saha wrote: no one is accessing the web services from the client site.
But will there be someone accessing it from a client?
Pankaj Saha wrote: Now I am running that service and want to see that console window
So what you telling me is. You have webservice running on a server, and you have an asp.net application on the same server. Now, you are running the asp.net from the server, which in turn it is consuming your local webservice. So, it begs the question, why do you need asp.net application if you have to run it from the server locally? Why can't you do it with Windows application?
If all the servers are running the same webservice, then you have got it wrong. You don't need to run it on all the servers. Single web service is sufficient for all of your server.
There is something that is not clear to me.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Actually there are n numbers of server and each server contains n number of applications. There are so many settings which I have to do with the that console application and I am calling that console application through the web service. The console application doing the settings as well as showing the process in the console window. We can use that web service from another site also that's why we have used the web service, but right now I am calling on that local server, and there is Windows server 2003. I just need to show that console windows. Would you please let me know the solution.
Pankaj
|
|
|
|
|
Ok, what you saying is
- each server has a number of asp.net application
- each application consumes the same web service
- the web service calls console application
- the console application performs some configuration.
is this right?
If so, I'm totally at loss. See my first post again. The solution you trying to reach at does not seem optimal to me. Here is how I solve it.
1. Since all the servers are running asp.net pages, I eliminate the web service and console up and write the functionality of both in the asp.net app.
2. If solution #1 is not possible, then I will eliminate the web service and call the console from the asp.net app
3. If solution # 2 is not possible, then what can I say.
As far as the console app, I will not show it at all. Instead I call it as following (Take it with a grain of salt, you will need to modify the code to your needs)
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = <insert your application including path here>
startInfo.Arguments = <insert all your arguments you want to pass to your application here>;
startInfo.CreateNoWindow = true;
startInfo.RedirectStandardOutput = true;
Process convertProcess = new Process();
convertProcess.StartInfo = startInfo;
convertProcess.StartInfo.UseShellExecute = false;
EventLog.WriteEntry(mySupperApp, what ever :-) , System.Diagnostics.EventLogEntryType.Information);
convertProcess.Start();
convertProcess.WaitForExit();
string result = convertProcess.StandardOutput.ReadToEnd();
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks for your help. I have created a sample web service, where I have copied your code and calling a sample console application, and testing on Windows XP, but still not showing the console window.
Pankaj
|
|
|
|
|
Pankaj Saha wrote: but still not showing the console window.
Stop what you doing and find different job. Apparently programming is not for you. If you looked though the code and comments in the code I posted, and expected what you wrote, then you are not qualified to write software.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
First of all you must understand the problem. As there is a client requirement and I am not going to tell you everything. I have a problem and need help, and there is no need to explain our requirement to you. I have tried to explain you the situation and instead of concentrating to the problem you wanted to know the architecture of the system. And before be a software engineer you must learn lot's of things. To see your replay I can tell that so many people are suffering from you.
Pankaj
|
|
|
|
|
Pankaj Saha wrote: First of all you must understand the problem.
No I don't need to understand your problem. You need to understand the problem. All I need to know is subset of the problem to which you asked for help.
Pankaj Saha wrote: As there is a client requirement and I am not going to tell you everything.
That is your problem, your did not understand the client requirement, and If you did understand it then you are clueless. You stuck your head in the sand. You trying to do something, in my view, unnecessary.
Pankaj Saha wrote: I have tried to explain you the situation and instead of concentrating to the problem you wanted to know the architecture of the system.
That shows your lack of understating. You have no freaking clue of what your architecture is. All you want to do is you want to run console application. I gave you a code that do exactly that, except instead of showing the command window, it does it in the background. You can control all the inputs and get the output as well. What the heck more do you want. It is you who have no idea what the requirements are.
Pankaj Saha wrote: To see your replay I can tell that so many people are suffering from you.
It is simply halarious
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
I have a website with a Page that can start or stop a Windows Service. I get the error:
Cannot open Service Control Manager on computer 'NZDB-TST'. This operation might require other privileges.
My code:
private void RunAlongServices(String ServiceName)
{
ServiceController ctrl = new ServiceController(ServiceName, "NZDB-TST");
if (ctrl.Status.Equals(ServiceControllerStatus.Stopped))
{
ctrl.Start();
}
else
{
ctrl.Stop();
}
}
How to solve this issue, so the Windows service(s) can be started or stopped via de website?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
digimanus wrote: This operation might require other privileges.
digimanus wrote: How to solve this issue, so the Windows service(s) can be started or stopped via de website?
It appears you need to effect a change in privileges some way. What do you think the odds are that Microsoft has documented Privilege issues associated to using ServiceController? I guess those are pretty good odds. I also guess a simple Google search using the keyword MSDN along with other key words in your original post would turn up that documentation.
Of course I am just guessing. Good luck.
|
|
|
|
|
asp.net runs under IUser_machine_name account. Do you think it has permission to run services?
Why do you want to start/stop service from asp.net anyway? Can't you solve it using other ways?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|