I am using C# and I get a compile error when I try to do such compare.
Operator '<' cannot be applied to operands of type 'object'.
Also I do not want to create hundreds of functions. I think it is possible with runtime type cast or something like that.
User Profile
Collapse
-
-
I had the same troubles like you. I have a WCF web service for graphic effects. Each time I transfer the image the RAM increased where the service is hosted. Then I simulated long and intensive work because I thought that the server will stop responding after some time. So the results were positive for me. The garbage collector frees the memory. But you should consider to do the following in the web service:
- sometimes you have to dispose....Leave a comment:
-
How to write an universal function isNegative?
Hi,
I want to write an universal function called isNegative( param ) where the param can be float, int, double, long etc. The result will be true/false. Any comments? -
Thanks, the good news is that IE8 will support this :) But I think that MS will keep the tradition all IE versions to be hell for developers :PLeave a comment:
-
How to highligh textbox?
I have tons of textboxes. My boss wants to highlight the active textbox so in the css I wrote this class .textbox:focus{ background-color:Blue;} . The Problem is that do not work with IE. Javascript is not acceptable. Can you help me? -
Send email using only HTML?
I know it is tot possible. I just want someone to confirm that there is no way to send an email using only HTML code. If I am wrong will be greate.
10x -
-
How to execute in DEBUG only?
I want to execute some code only in debug mode. I found this:
But this refers for methods. I want to say something like this:Code:[ Conditional("Debug") ] public void DebugThis(){...}
The code there seems to be commented. What I have to do?Code:#if DEBUG code... #endif
Thank you! -
I get your point but the problem is not there because I use administrator account. I think that the framework is restricted somehow and don't know how to reverse that. If I use non .NET classes to connect to the DB everything is good.Leave a comment:
-
How can I grand this access. Where should I add the user if I am using Windows Server 2003Leave a comment:
-
.NET configuration problem
Hi,
I have BIG BIG problem with .NET. I have an application on .NET 2.0 which connects to a local database. On my machine there were no problems and everything goes smooth. When I upload the application to the server ( windows is x64 bit) I get an error which tells that the .NET functions are restricted/disabled and I cannot connect to the DB. The connection string is 100% correct. I installed .NET SDK and set full access from these tools... -
The question is not why I enter double ' // '. I have to solve this. If I try to do this with some page of microsoft website it is OK.Leave a comment:
-
CSS problem
Hi,
I have ASP.NET 2.0 website. I have 3 files. style.css, master.page and page1.aspx. I load the css from the master.page. If my URL is like this:
http://www.mywebsite.com/new_web/page1.aspx
the CSS is loaded and everything is OK. But when I try this URL everything becomes a mess because the CSS could not be found.
http://www.mywebsite.com/new_web//page1.aspx
note: ( double '... -
-
Can you give me an example because I tried as you wrote but still no effect?
...Code:<div style="height:150px; width:200px;vertical-align:middle; border:solid 1px red;"> <p>text align test</p> </div>
Leave a comment:
-
Yes, good answer. How can I miss that? I can if I am trying to do it with vertical-align. Thanks for the answer. So I have another question. In which situations should I use this sh*t vertical-align in divs?Leave a comment:
-
I dont care if I use line-heigth or not. I have to align the text at the bottom of the div. I MUST use div, not a table.
10xLeave a comment:
-
Text align within a div problem
Hi all,
I have a problem with aligning text within a div. I want the text to be aligned at the bottom of the div. What is wrong with his code:
Code:<div style="height:150px; width:200px; line-height:150px; vertical-align:bottom; border:solid 1px red;"> This text should apear at the bottom of the div! </div>
-
When occurred this kind of exception the DataGridView calls "DataError" event where I can handle the Exception.
Code:private void dataGridView1_DataError( object sender, DataGridViewDataErrorEventArgs e ) { System.Diagnostics.Debug.WriteLine( e.Exception.Message ); }Leave a comment:
No activity results to display
Show More
Leave a comment: