Hi
I need to have objects sorted by price (decimal) value for fast access. I need to be able to find all objects with price more then A or less than B. I was thinkg about SortedList, but it does not provide a way to find ascending or descending enumerator starting from given key value (say give me all objects with price less than $120)....
I have a webpage http://www.example_page.com. When entering this page I login using the following credentials
username: a
password: a
now on this page there is a web form with an upload formular which uploads the file I enter by post method when I press the ok button.
Now I want to realize this in c# with the following code
WebClient...
In a project using .Net4 - should there be any issues referencing dlls built for older versions of .Net? We're talking 3rd Party dlls here.
I'm asking this as a general question. Specifically I have a problem referencing FluentNHibernate.dll - built with .Net3.5. It worked justed fine before I updated my project from .Net3.5 to .Net4. ...
Hi,
I have a DataGridView in a Winforms application containing a collection of items. Each item has an image and various other details. I know it is possible in WPF, but can you get a tooltip to display an image and a more structured set of details then just plain text?
Thanks.
...
Can I use a spark variable inside an html helper?
Say we have
<var url="Url.Action(“get”)" />
!{Html.Image("~/Content/up.png")}
Now if I need to use the url inside Html.Image as an attribute(part of the 2nd param) to get
<img src="~/Content/up.png" type="~/engine/get" />
how do I go about doing it?
...
Hi,
My question is is it safe for enumerator to remove item from SortedList?
SortedList<decimal, string> myDictionary;
// omitted code
IEnumerator<decimal, string> enum = myDictionary.GetEnumerator();
while(enum.MoveNext)
{
// is it ok to remove here?
myDictionary.Remove(enum.Current.Key);
}
...
I'm using MS EnterpriseLibrary.Logging and that works perfectly but the log file(s) are placed in the program executable directory.
How do I get it to place my log files in individual user's applicationData folder?
The folder I'm talking about is the one you get by calling:
Environment.GetFolderPath(Environment.SpecialFolder.Applicat...
I have a simple user control with this code:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Pager.ascx.cs" Inherits="Pager" %>
<table style="width: 100%;">
<tr>
<td runat="server" id="PageControls">
<!-- This button has the problem: -->
<asp:Button ID="btnPrevPage" runat="server" Text="&la...
I'm having a really weird problem with a third party web service that uses an ODBC connection to Oracle 10.2.0.3.0. I've written a .NET client that generates the same SQL as the web service so I can find out what's going on.
The web service is hosted by IIS 6 that's in x64 mode so we use Oracle x64 client.
The oracle client version is 1...
Recently I installed Silverlight 4 plugin and noticed that windowless mode now works correctly with FireFox. I quickly read SL4 release notes but cannot find answer.
Can I use SL3 controls (we are using a LOT of DevExpress and Infragistics controls) in SL4.
...
The small software team I work on recently got approved to upgrade to Visual Studio 2010 (we're currently using VS 2005). We have several ASP.NET 2.0 and WinForms (in .NET 2.0) projects in production.
I've been tasked with downloading VS 2010 and seeing how well it plays with our current projects. What issues should I be aware of when...
Recently I'm learned how to call SIlverlight methods from JavaScript.
All works fine (even in Chrome !).
But in FireFox 3 (3.6.4) registered Page object is undefined.
My Code is very simple
silverlight
[ScriptableMember]
public bool HasFilter()
{
return true;
}
And in MainPage constructor
public MainPage()
{
InitializeComponen...
Hi everyone,
I am trying to get OAuth for installed applications to work with my code, with actually little success...
Here is the code:
GOAuthRequestFactory factory = new GOAuthRequestFactory("cl", "MyApp");
factory.ConsumerKey = "anonymous";
factory.ConsumerSecret = "anonymous";
// example of perfo...
I cannot find the answer for this question.
I read that doubling the bracket should help so something like
<node>http://test.com?test={{0}}</node>
But it didn't
...
Is there any difference between Convert.ToString Method and Object.ToString() in C#.net other than how these handle null value.
There could be some difference between the two in Globalization Perspective.
...
Hi!
How I can find path for installed application from VB.net if i know the name of application exe file?
Thanks!
...
My application is built as a x64 application. After moving to VS2010 I got some problems which seems to be related to some x64/x86 mismatch in referenced dlls. Now I'm moving to target .NET4, and I get even more similar problems.
My question is: What precautions do I need to take regarding mixing x64 and x86. Can it be done at all? I t...
I am encrypting on JAVA using RSA and attempting to decrypt using .NET. I am including my JAVA code and .NET code in hopes that someone has some experience with this sort of thing.
JAVA Code:
byte[] modulusBytes = Base64.decode("xTSiS4+I/x9awUXcF66Ffw7tracsQfGCn6g6k/hGkLquHYMFTCYk4mOB5NwLwqczwvl8HkQfDShGcvrm47XHKUzA8iadWdA5n4toBEC...
We have a 32-bit library written and compiled in Borland Delphi. This library is referenced by various other projects including a WCF Web Service hosted in IIS. The web service is compiled using the x86 option and everything works fine on a 32-bit machine. However, on our 64-bit server the service fails when calling into the 32-bit Delph...
I am trying to reconnect to a socket that I have disconnected from but it won't allow it for some reason even though I called the Disconnect method with the argument "reuseSocket" set to true.
_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
_socket.Connect(ipAddress, port);
//...receive data
_socke...