.net

Session expire issue after deploying in virtual server

Hi, I have asp.net app which works fine with visual studio and also local IIS server deployment witout any issue with its session. but after deploying the code to server virtual server (IIS 6, windows 2003) it dosent work properly. Session gets null in subsequent requests and after few navigations in the site, and this issue is only oc...

From swf to mp3 (.net)

Hi, how to make a converter (from swf to mp3) in .net? Which library should I use? Any ideas? Thanks in advance. ...

How can I use LINQ to summarize this data--number of relationships grouped by the count of those relationships

I have a simple table like: | fkId | Item | --------------- | 1 | A | | 1 | B | | 1 | C | | 1 | D | | 2 | H | | 2 | I | | 3 | Y | | 3 | Z | I want a LINQ query that will first count the number of Item's per fkId, and then report the number of fkId's with a given Item-count. With the sa...

Tooltip baloon display position (for error notification)

I asked a question closely related to this awhile ago: http://stackoverflow.com/questions/2878043/alternative-way-to-notify-the-user-of-an-error In short, i was trying to find a quick and easy way to notify the user of errors without using popups. Now i have implemented this using tooltip baloons. The problem is that even if i give it ...

How to test a method in an abstract class with abstract methods?

It is necessary to check implementation of 'MyMethod' virtual method in the abstract 'MyAbstractClass': public abstract MyAbstractClass { public void MyMethod() { Testpassed = true; } public abstract int StatusCode{get;internal set;} // **EDIT**: internal setter was added public bool TestPassed{get;private ...

Read XML, or JSON file instead of SQL Server

I have asp.net 3.5 C# and a SQL Server 2008 back end. There is a table that I use the most, this table has around 100 rows and doesn't change often. My code (web service with a cache) is called from JQuery to search a record by ID and return a JSON response to client side. Recently the server that hosts my site had a big problem and h...

MVVM flow chart question

Hi Folks I'm new to WPF and after glancing thru this article, http://stackoverflow.com/questions/3432423/mvvm-pattern-for-a-diagraming-application-with-wpf-convert-enum-to-xxxviewmodel I like to know if MVVM could be used or encouraged to use for a simple app that I like to try: The simple app is a wpf flowchart designer that allows ...

Dynamic WSDL Implementation in C#

I am relatively new to web services in .Net, so I apologize if this is a newbie sort of question. I have found numerous resources on how to implement web services in a .Net project, but all of them seem to involve static definition of the exposed methods. While this may be suitable for some applications, it does not fit the bill for wha...

How can I refactor this IQueryable<T> Repository Method?

Hi Guys, I'm working on a .NET 4 application, C#, Entity Framework 4, SQL Server 2008. I have a 7 tables in my database, each representing a specific level of location (Country, State, City, Neighborhood, etc). Now in my Repository I am trying to define an interface contract which has only one Find() method. To do this, I've created ...

Approximating Size of Serializable Class

I would like to know the approximate XML serialized size of a class instance, without actually serializing the instance. Certainly I can provide a property that explicitly sums together the size of all fields, along with padding for the XML tags that would be generated. However, (1) I'd like to know if there is already a tool that serv...

Extract a Table from an HTML File with PowerShell or VBS

I have a two part problem that needs fixing. I'll try my best to describe it then break down what I "think" the steps are. I am trying to get a specific table in a webpage and email it to myself. At the moment what I am trying is to use GNU\Win32 wget.exe (I'd rather use PowerShell natively but for some reason I couldn't, perhaps becau...

Multi version of the an application

Hi, I am newbie here. I have an existing application (C#/Win forms). I need to add functionality to the application such that is can launch another instance of its own and make some of the controls in the form disabled. It may be very easy to implement this using simple inheritance or may be some if else loop , but this application has...

setting maximum length in a gridview

Greetings Everyone..i just wanna ask is it possible to set a maximum length in my field in gridview? Below is my gridview sample that retrieve a formatted html in my database..All i want to achieve is to limit the maximum length of characters i.e "50" then automatically create a pagination for the succeeding characters..to be posted in...

Covariance and Contravariance

Possible Duplicates: Covariance and contravariance real world example still confused about covariance and contravariance & in/out Can you give me a description or example of both covariance and contravaiance, and why they now decided to add it to .NET 4? ...

How do I work with ASP.NET between SubVersion and my hosted site?

I'm at the very beginning of learning ASP.NET WebForms. Right now I'm starting to go through the TailSpin-SpyWorks tutorial. I've also setup a Windows hosting account at www.arvixe.com to use to host my site(s). I've currently been working on desktop apps in WinForms with C#, and using subversion for version control. And I'm trying to u...

how to use a webservice which created on c#t at java platform

Hello Previous developers created a webproject which consumes a webservice in .net platform and they wanted me to use this webservice on jsp. I read netbeans tutorials and find out that webservice is irrelevant to platform. However the problem is at .net project I could not find a file whose extension is .wsdl or a werbservice.amsx.The...

Good place to learn the core part of a .Net download manager

I am trying to develop a download manager for the .Net platform. It will hook into IE first, and then maybe Firefox and other browsers. I already have good experience writing apps for the .Net platform. But I have not written code that will download files, pause downloads, resume etc.. There are two motives for this project: I am sic...

How to get selected value from DevExpress LookupEdit?

Hai all, Am using DevExpress LookupEdit in C#.NET project,also set both Display Member and Value member property of LookupEdit.How do I get selected value from DevExpress LookupEdit. Thank you ...

Timestamping data through multiple machines - times are off?

Hi, I working on some applications that route tcp and upd traffic through multiple machines and I'm trying to timestamp (millisecond resolution) the packets on every node to receive a full picture of latency through each node. Before the tests I made sure that all windows machines are NTP synced, however my issue seems to be that the t...

C# 4.0 - How to Handle Optional String Parameters

This code is not valid: private void Foo(string optionalString = string.Empty) { // do foo. } But this code is: private void Foo(string optionalString = "") { // do foo. } Why? Because string.Empty is a readonly field, not a constant, and defaults for optional parameters must be a compile-time constant. So, onto my question....