How to send an asp control to javascript
I am trying to send an asp control (textbox) to a javascript function. onblur="CalculateLossRatio(this.value,<%=txtLossRatioCurrentYear.ClientID%>)" Is is the right way to do this. ...
I am trying to send an asp control (textbox) to a javascript function. onblur="CalculateLossRatio(this.value,<%=txtLossRatioCurrentYear.ClientID%>)" Is is the right way to do this. ...
Hi all, I am trying to create a windows mobile application in which i want to show a confirmation window on the top of the main window ( Ex: Quit application / Updating Information). for this i want to put a transparent window on top of the current window. It's more of a Opacity effect. Can anyone give me some glue on how to do this? T...
I'm using the OLEDB connection string for this and it appears that whenever I try to load an Excel file (I'm using .NET) it takes an incredibly loooong time. This causes a timeout and most files greater than a certain size can't be loaded into the program. Is there any other way or pattern I can use to make everything work faster (The d...
If I have a WCF service which accepts an IEnumerable as a parameter to a function, is the order that I look up the elements guaranteed to be the same as they were added to the collection? (Or at least the same order they were sent across the wire?) If not, is there a way that I can guarantee the order, such as defining it in the service...
i am having a problem attempting to have two environments published through clickonce i have two urls one with the QA version and one with the PROD version the issue is that i can only have one at the time, if i install one it overrides the other instance. i already attempted to change publisher name and also add a Suite name to creat...
I have a WCF service self hosted in a console application. I need to use a custom username and password validator (I wrote a class that inherits from UserNamePasswordValidator for this purpose). I need to use http (not https). Which is the right configuration (in term of type of binding, security mode) for setting up this configuration ?...
Hi, guys. The issue consists of two parts: What are the best .NET libraries to modify (read/write) existing excel document (should be work with Excel 2003)? What are the best .NET libraries to modify (read/write) existing pdf document? They should be able to create new document too. It's better if they are free (open source) or not...
Hi, in a small .net c# app I read the usb output of a barcode scanner with LibUsbDotNet http://libusbdotnet.sourceforge.net/V2/Index.html . The problem is that I don't know how to convert the output into something I can read. The scanner is set to output a return after each barcode, so I need for example to detect that. The output is, I...
I'm trying to accomplish some form of redirection of messages in .NET Remoting. As you can see in the image I would like for the client to send a message to the provider (which is the only URI that the client has to know about), which will then redirect this to host1. Here's the tricky part; the provider will keep track of which host i...
Hi, Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too. Thanks for any helpful reply/replies. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it...
I have a simple question: Why the program below does not write the whole array $lines? It is looping forever. I am really confused.. function Get-Current ($enumerator) { $line = $enumerator.Current return $line } $lines = @('a', 'b', 'c') $enumerator = $lines.GetEnumerator() $enumerator.Reset() while ($enumerator.MoveNext()) ...
I'm having trouble implementing a connect timeout using asynchronous socket calls. The idea being that I call BeginConnect on a Socket object, then use a timer to call Close() on the socket after a timeout period has elapsed. This works fine as long as the socket is created on the GUI thread - the Close method returns immediately, and ...
Hi, I am creating an application for data retrieval from the web page. The page is password protected and when the user logs in the cookie is created. In order to retrieve the data the application first has to log in: make web request with username and password and store the cookie. Then when the cookie is stored it has to be added int...
I have a wpf app that shows 5 different usercontrols as you go through the system. Each usercontrol has a listbox on it. So i want to select an item and pass it back to MainViewModel. I have it working now so that i can store a value in ViewModelBase but it seems that my tactic for calling the User controls is flawed as I cant link up to...
I have a variable i=28.57142857142857; I want to alert(i); alert this variable on user screen. But I want only two digits after decimal. i.e 28.57 How to do it. ...
Actually, What is .NET Assembly? I browsed over the net and I not able to understand the definition. pls..explain about the .NET assemblies. Thanks.. ...
I am trying to use autoimplemented properties. It shows me error public OpenMode OpenFor { get;//must declare a body because it is not marked as abstract, partial or external. Why so set { if (value == OpenMode.Add) { btnAddGuest.Text = "Save"; btnU...
What's the recommended way to print an integer with thousands separator? Best I've come up with so far is let thousands(x:int64) = String.Format("{0:0,0}", x) Which works in most cases, but prints zero as 00. ...
I need to send about 200 HTTP requests in parallel to different servers and get response. I use HttpWebRequest class in C#. But I don't see good time enhancement when requests are handled in parallel. For example if one request needs 3sec to get response, 2 request in parallel - 6sec, 3 requests - 8 secs, 4 requests - 11sec ... It is ...
I saw the Cursor File in the dialog box when adding a new item. Actually what it will do and what is the use of it ?...Thanks.. ...