I am making an Asp.Net application which does the following on the client computer:
Establish a Connection. Check client's cpu usage to see if it is idle or not.If the client is idle it starts executing a c application.While executing the script if client starts doing something (also checked by monitoring his cpu usage) stop signal is sent. Start signal is again sent to the client if he is back to his idle position. If the client is Ubuntu, I use ssh and execute what I want to.What is the way of doing this in Windows without the root access?
I am working towards porting a windows application to web. The windows application is quite rich w.r.t. the form controls, complex validations and user interactivity.Basic web forms are inadequate to meet these complexities. So I would like to know the best way to still have the richness on the web pages. I have some ideas and would like comments.
Use DHTML & Java Script to mimic complex controls. There are some macro controls available as part of jQueryUI that can be used and some other third party Java Script controls. I'd like suggestions if there is a recommended control library.Use RIA (preferably Silverlight) wherever rich controls are needed. I'd like to keep this as a last option because it mandates the Silverlight plug-in.What are other popular / preferred strategies?
We have a fairly large system involving multiple applications running on Windows, written in .NET. These include a number of web applications using ASP.NET.
We have a number of unrelated web applications written in LAMP - Linux/Apache/MySQL/Php.
The greatest advantage we've seen in ASP.NET is the ease with which code can be shared between web applications, win-form applications, windows console applications, and windows services. We have signficant code in .NET assemblies that are shared across all of these environments.
Apache/Php has some significant advantages over ASP.NET as a web programming environment, but if there is anything in it that is equivalent to .NET when it comes to integrating code that is shared across non-web applications, I'm unaware of it.
What's the equivalent of PHP's $_FILES variable in C#? Or at least something that accesses the files in the same way. I've got an upload form that I can't change and need to find out how to get at these files.
I have some code I would like to execute very early in the lifecycle of a call to an ASMX function. For our ASPX pages, this code is in the Page_Init() function on a base class, from which all our ASPX pages inherit.
Is there an ASMX equivalent to the ASPX's Page_Init() function?
Better yet, is there an ASMX lifecycle diagram like the ASPX one? http://msdn.microsoft.com/en-us/library/ms178472.aspx
If there is an ASMX equivalent to Page_Init(), I assume I can implement code in a common base class, from which all my ASMX classes can inherit, correct?
I want to know what is equivalent to Page Error() in MVC which we use to have in simple asp.net, which is called when any invalid character is there in the input string.
I donot want to use [ValidateInput(false)] option for this. which I can handle invalid characters in the input.
We've been using IScriptControl to tie javascript objects to our UserControls and ServerControls, and it's worked fine.The problem is that ASP.NET seems to provide no method to tie a javascript object to a Page. Up to now, we've been putting plain functions in the global namespace, but I am developing a serious allergy to that practice.It'd be easy enough to wrap our functions into a javascript class, and to include the javascript file on the page, but how to instantiate the object, how to reference it from callback events, and how to pass data to it from the code-behind, I haven't figured out.Or rather, the methods we've been using up to now (hidden fields, emitted javascript strings, etc.
I'm considering rewriting a small Http Module i made in ASP.NET in Java. Based on a specific URL, the Http Module inserts some HTML on an empty HTML layout, do some basic reformatting, and finally returns the rendered HTML. Being new to Java web development, what is the equivalent to ASP.NET Http Modules?
Using sha As New SHA256Managed Using memStream As New MemoryStream(Encoding.ASCII.GetBytes("Hello World!")) Dim hash() As Byte = sha.ComputeHash(memStream) Dim res As String = Encoding.Default.GetString(hash) End Using End Using
I have been unable to recreate the same hash for the same values with these two bits of code.
The javascript implementation returns: 7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069
and the vb.net example returns: ƒeñüS-ÁHÖ]ü-KÖw(JÝÒ mi"
What am I missing? I assume it's something to do with the character encoding?
I have a text document that is a roster of licensees. I am looping through this document to create a html table of this data. I've come across names with non standard characters.This is one of them AimeéI tried running all the inputs through the following function, but when it comes across the above character it doesn't replace it.
Function ReplaceBadCharacters(ByVal input As String) As String Return input.Replace(Chr(233), "") End Function
How can I replace each character with the html equivalent?EDITWhen I debug the above function it shows the input as Aime[] and not Aimeé.
A fast function for scanning text for urls and turning them into html hyperlinks would be very nice... I'd write one but I feel like the odds of someone already having written one are high...
Possible Duplicate: C# version of java's synchronized keyword?
I know that when working with a session in Java, you were always supposed to surround use of the session with a synchronized block incase the user would load your page with two browsers at the same time.
Using vb.net 2005/asp.net I thought I had the issue solved: I have some strings with spanish characters such as "ñ" and I need to replace characters with their non-spanish equivalent, ex: the example I just mentioned would be changed to "n".
[Code]....
when I put a breakpoint I see that usually my code replaces the characters the way that I want and all is good but some replacements are not working well and looking at my breakpoint it appears that there are non-readable characters that are included with the spanish characters and it seems that I need to do some kind of normalization on the string but not sure what to do. I have a text "caroliné" that i processing and in the code above it appears to replace the last char with an "e" but when I return the value from the function I am able to see some non readable characters (appearing on my watchlist as a small square) and the resulting string is actually "carolina" which is confusing.