.net

Inner joins with NetTiers

I am performing a review on different kind of ORM tooling and DAL generators today. One of them is NetTiers. I have a classic DB model with customer, order, orderdetail, etc.. I want to perform a complex inner join on those tables. This is the orginal SQL query: SELECT [Contact].LastName, SUM(OrderRow.Amount * Product.Price) TotalAmou...

Modifying the strings in fitnesse textbox before running the tests using C#

Bear with me guys because I don't know how to start things up using fitNesse framework. okay here's where I need help, upon running the test I want to capture the string or the fitnesse scripts being placed in the fitnesse textarea and then a certain function will then parse the scripts to replace the strings I want to replace. For exam...

Can subsonic build for me the CRUD and paging stored procedures?

Can subsonic help me building these main stored procedures? Can i edit its template to make it generate these SPs? Where to begin learning that? ...

Confirmation on switching between tabs.

I have two tabitems. User will enter some data and save it on the first tab. The second tab lists the saved data. What I need is when the user select the second tab before saving data in first tab a confirmation message box with Yes, No and Cancel should be shown. If the user clicks Yes button the data should be saved and go to the secon...

How to change the CultureInfo of a Converter?

Hello, I have a UserControl that displays some text of a DP of the UserControl. For this a converter is used. I understand that the culture parameter is the "en-US" culture, unless you specify a different culture in the ConverterCulture value of the binding or the xml:lang attribute. But how can I change to culture from outside of the ...

Using HTTPWebRequest in ASP.NET VB

I don't have any idea how to use this class in .net. Anyone wants to share his knowledge how to implement and use this class? Have you got any simple procedure that calls a page and process it? ...

How can i convert a MS Word 2003 document into HTML in C# ?

I'd like to extract the content of a MS Word 2003 document into HTML in C#. Any ideas? ...

Why is modulus operator not working for double in c#?

Consider this: double x,y; x =120.0; y = 0.05; double z= x % y; I tried this and expected the result to be 0, but it came out 0.04933333. However, x =120.0; y = 0.5; double z= x % y; did indeed gave the correct result of 0. What is happening here? I tried Math.IEEERemainder(double, double) but it's not returning 0 either. What ...

threatding a win.exe from web service that click to start from web page ?

i have win.exe. it is get data webservice.asmx also a weppage.aspx that is related webservice.asmx. i start a scan job from my webpage.aspx (Like a math simulation). i should threat my webservice.asmx also win.exe(simulation program) start directly. But How can i do? ...

Winforms BringToBack Option?

In winforms there is a function "BringToFront" that moves a form to the top of the Z-Order. Is there a way to do the opposite--push a form to the back? ...

How can ROWLEX be licensed under L-GPL while it uses SemWeb which is GPL?

According to its homepage, the SemWeb library (great library for handling RDF under .NET) is released under GPL. Since the ROWLEX tool is built on SemWeb, ROWLEX supposed to be GPL, too. Still, ROWLEX is claimed to be released under L-GPL. Is this legally correct? ...

How can I reload a gridview onclientclick of another gridview's button?

I have a modal popup that contains a gridview. On the click of a button inside of a grid i reload the gridview with the data that depends on the id of the row clicked in the gridview. I would have like to reload the gridview onclientclick but I couldn't find a way to do that. Is it possible to reload a gridview client-side without the us...

Binding an enum to a WinForms combo box, and then setting it.

Hi, a lot of people have answered the question of how to bind an enum to a combo box in WinForms. Its like this: comboBox1.DataSource = Enum.GetValues(typeof(MyEnum)); But that is pretty useless without being able to set the actual value to display. I have tried: comboBox1.SelectedItem = MyEnum.Something; // Does not work. SelectedI...

how to add reference in visualstudio2005 for vc++ project

Hi i have created a vc++ console application i need to add .net assembly references. but when i do the following as project right click->properties->Common Properties->references->add references then i am getting the window as addrefernce(title) tabbed window project name and project directory and have empty list i am unable to fi...

Are there any frameworks or libraries for logging errors remotely with .Net?

I'd like all of my .Net applications to be able to log unhandled exceptions via the internet when a connection is available. Are there any libraries people use for this purpose (preferably free/open source)? ...

ZedGraph (.NET) - Having axis labels for actual values only

Using the ZedGraph control, say I am plotting data that has Y values of 13, 34, and 55. How do I set up my Y Axis so that the only text labels shown (and I guess that grid lines would be synchronised) are those for 13, 34 and 55? I don't want regularly spaced labels in the range of my data (say 0, 25, 50, 75, ..). Just labels at the ac...

Assert.AreEqual fails even when expected and actual are the same

I have the following test which seems to produce same strings but Assert.AreEqual fails. [TestMethod] public void Decompressed_test_should_equal_to_text_before_compression() { TextCompressor compressor = new TextCompressor(); Random r = new Random((int)DateTime.Now.Ticks); for (int i = 500; i < 1500; i++) { char...

How can I find out whether method executes on UI thread or not in a decoupled way?

Here is the problem I have: I need to make sure an object is instantiated on the UI thread. If it is not, it should throw an exception. But how do I check inside a method whether it is running on the UI thread? Note: I do not want to pass any information into the object's constructor. The perfect candidate would be the DispatcherSynchro...

Ensure number is cast correctly in .NET

I know that I can assign a value specifically to a float by doing float y = 4.5f; I want to do the same thing, except as a byte. How do I do this? I've checked the MSDN documentation and cannot find anything related to this. Also, what is this called? Thanks, [Edit] For clarity the code I'm using this on is byte myByte = a==b?1:0;...

How can I tell if a point belongs to a certain line?

How can I tell if a point belongs to a certain line? Examples are appreciated, if possible. ...