.net

delete coockie of an sub domain

hi all, i have a domain for example : example.com and i have sub-domain : sub.example.com the users on the site is sharing the same session & cookies, but how can i remove cookies from both the domains ? for now i delete from one domain and when the goes the the sub-domain he is logged in again .. much thanks. shlomi ...

Dealing with DBNull.Value

I frequently have to deal with DataTables connected to grid controls, custom updating always seems to produce a lot of code related to DBNull.Value. I saw a similar question here but think there must be a better answer: http://stackoverflow.com/questions/26809/what-is-the-best-way-to-deal-with-dbnulls The thing I find is I tend to enca...

Monitor which thread is downloading url

I have an application that downloading urls using threadPool in different threads, but recently I've read an article (http://www.codeproject.com/KB/IP/Crawler.aspx) that it says HttpWebRequest.GetResponse() is working only in one thread and the other threads is waiting for that thread. first I want to know is it true ? how can i monitor ...

Does learning ASP.NET also mean learning javascript, jQuery and CSS?

Possible Duplicate: How can I learn ASP.NET? I'm a new comer to the ASP.Net world , i learned C# before and i have 3 years experience of C#,i wanna to ask what are the required steps to be professional in ASP.net in short time ,also i wanna to ask , is it a must to learn JavaScript ,Jquerey,CSS because i knows so little info's...

WeifenLuo.WinFormsUI.Docking in older apps

I'm using the WeifenLuo.WinFormsUI.Docking library in an application that is launched from a written prior to the release of .NET. This application provides a programming interface that can be written using a .NET language not unlike Microsoft Word and Excel. My question/problem is that when you attempt to drag content from one docked ...

JNBrigeInternalError : .NET-side failed

I am having issue in one of the java application accessing classes of .NET . The errors can be referred to as: Exception in thread "Thread-4" com.orsus.mobileclient.MobileClientRuntimeException: Failed to create the AdminFactory object. Original message null. at com.orsus.mobileclient.impl.jnb.ExceptionProcessor.costructException(Excep...

Capturing DNS responses with PCap.Net???

Hi, Q1 - Is it possible to capture DNS request/responses with the library? Q2 - If yes, once I have the packet does anyone have any sample code that shows how I could extract the fields from the DNS response? In particular the IP address that DNS resolved for the given DNS name provided in particular. ...

What's the difference between IOrderedQueryable and IQueryable?

I have this: var points = from p in ContextDB.Points orderby p.PointInTime descending where p.InstanceID == instanceId && p.ParentPointID == null && p.PointTypeID == currentPointTypeID select p; and this: var points = from p in ContextDB.Poin...

How to identify associations flagged as Cascade Delete

I am using EF 4.0 and in my entity data model I have several relationships where I have a 1-to-many associations and have the assocation flagged as Cascade OnDelete. Is there a way to programatically identify these associations for an entity type T? One option I thought of was identifying these associations and in my T4 template annotat...

how to play sound from C#.Net

hi i have made an window based application using C# .Net and i want to play a specific sound when i click on Button so what should i do? does it require any dll for that.. please inform me precisely ...

How to set Host's Domain Manager in a created AppDomain

I am not sure if this is possible but I would want something similar to loading the Host's domain manager to my new AppDomain. There is no Domain Manager for a newly created AppDomain. Owing to this many of my subsequent call fails. For example if I make a call to "Assembly.GetEntryAssembly" it returns null in the new AppDomain. To wor...

Developmentor Guerilla.net / WPF course review, recommendation, feedback

I am considering a Developmentor course either Guerilla.net C# or WPF. I would like to do both but budget won't stretch to that. Can anyone provide any comments (+ve or -ve) on either course and on Developmentor in general. Suggestions for alternatives also welcome. Course must be in Europe and in English. My experience: 15yrs dev, 8yrs...

Need a Gridview to be added in view and also i would need to extended HTMLHelper class to manipulate(Paging, sorting) the Grid

Can you let me know about adding Gridview control / similar control in MVC2 also i would like to have the sorting, paging options to that. Thanks in advance ...

Stop and Start IIS programatically. Quickly and safe way.

My situation: when I deploy assemblies .NET in GAC, I get errors (Cannot access to xxx.dll because is in use for another process). The IIS use those dll (assemblies). Which is the best way (more performance,quick and safe way) or all ways to stop, start IIS 6.0 Windows 2003 ? (for C#, .NET 3.5) options, I think: 0). First step, detect...

Make Setup of Desktop APplication Built in .Net

I have made Desktop application.. and in other PC i have not installed .net Framework so i want to make setup which automatically install framework first then install my desktop application and also reports of CRYSTEL REPORTs so guide me step by step Tutorial for it Thanks in advance ...

Using microsoft internet backgammon DLL

Hi. are we enable to use Microsoft backgammon dll in our application? http://msdn.microsoft.com/en-us/library/aa939626%28WinEmbedded.5%29.aspx for example Bckg.dll is game logix. can we use it in out application? ...

Is there a query that will return all of the column names in a Microsoft Access table?

I have a Microsoft Access database that I connect to with the Jet Database Engine, using VB.NET. I want to programmatically get all of the column names for a particular table. I would like to do the equivalent of this MS SQL statement: SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'TableName' Is this possible...

Crystal Reports Exporting to Excel with Can Grow

Using Crystal Reports 2008, Visual Studio 2008 with C#. Build the report in Crystal with multiple columns, some of which are narrative and can be quite lengthy. Using the “Can Grow” option on all fields. Have a web page that displays the report through the viewer, looks great. Web Page / Crystal Viewer Date Narrative ...

Dequeueing objects from a ConcurrentQueue in C#

Hey, I'm trying to implement a ConcurrentQueue in C# for an asynchronous server. Items are being queued as soon as a complete message is received. To dequeue messages, I'm making a small number of threads to do the work of dequeueing and servicing the requests. This is inadequate as each thread is using a while loop, which consumes ra...

Asp.net Menu open submenu on click not on hover

Is there any way to force asp.net 3.5 menu control to open submenues(menuitems) on mouse click, not on hover. I beleive it can be done with javascript or maybe jQuery, because when I click on menuitems postback ocures even if there is no navigation url. I found some javascript function but it only opens root items on click, deeper item...