.net

communicate between Firefox extension and .NET application

I am looking for a better way to pass information between my Firefox extension and .NET application. Currently, I am using text files to pass information one way to the .NET application by using the FileSystemWatcher class. The .NET application watches for new files in a specific directory when the Firefox extension writes to it and th...

how to create GUID?

how to create GUID in asp.net 3.5? ...

How do I serialize a child class?

how do I include the serialized data from a child class where both impliment iserializeable? Class A Implements ISerializable dim _B as new B Class B Implements ISerializable dim _C as integer end class end class I need to be able to serialize object B's data along with the data that is being se...

MS States remote proc trans option will be removed in Next version of SQL SERVER...

Hi All, I'm not sure whether it is right to ask it here... I searched the net for an answer, But in vain... So I just wanted to try my luck here. Here is the excerpt from Microsoft Website http://msdn.microsoft.com/en-us/library/ms189322(SQL.90).aspx remote proc trans Option Use the remote proc trans option to protect the act...

WCF: DuplexChannelFactory timeout error

Hi there, I'm using a DuplexChannelFactory when accessing my WCF service so that my service can use a callBackChannel to communicate back to the client. That's all fine but I get a timeout error when creating the CallBackChannel if I do not use the channel for a period of time. I create the callBackChannel like so: OperationContext.Cu...

Program for fetching email from the inbox in VB.NET

Possible Duplicate: Recommendations for a .NET component to access an email inbox I am trying to develop an application to parse email messages. I wrote that program in PHP. It is now working. But the problem is I can not complete my requirement. Now I try to do this in VB.NET or any type of language that is supported by Visua...

C#: How to access structs in ArrayList?

Hello! It's probable the question of typization (in C++ with STL everything would be made through std::vector and no questions would appear). I have an ArrayList and I'd like to store some structs there. Like struct txtRange { public String sText; public String sTag; public int iBeg; public int ...

How to get the Displayed Webpage source

Hi, how can i get the web-page source displayed on a web-browser control, either in c# or Win32.even ATL COM also fine. i mean.. i dont want to create new "HTTPReqest" or "openURL" to get source.. i want to get the source from the control only..is it possible for windows mobile.. if so how?.. please let me know. Thank u ...

How to put my component in a new group in Visual Studio toolbox?

I have created a component and it is automatically shown in toolbox when I open the solution. It can be placed on form, I can change properties etc. When I close the solution and install it in toolbox (choose toolbox item menu), I want this component to be shown in a different group (other than "All Windows Forms" group). How can I do i...

check all uncheck all linkbutton not working when gridview is inside updatepanel

I can't seem to get checkAll and uncheckAll linkbutton functionality working using javascript when my gridview is inside updatepanel <asp:LinkButton ID="LinkButton1" runat="server" Text="Check All" OnClientClick="CheckOrUnCheckAll(true);return false;"></asp:LinkButton> <asp:LinkButton ID="LinkButton2" runat="serv...

Mailengine with .NET API

Hi, I am looking for a mailengine that supports Sending emails Catching bounced emails Support read confirmations Show reports of mailing statistics (how many received/bounced) Expose everything through an API that can be called using .Net Does anyone know of any? It doesn't have to be free (always nice though) but it can't be a ...

Creating a plugin for Visual Studio

I'm a fan of style cop but hate the way it dosn't have a more producticve way of resolving errors. So I'm thinking, to give me a wee project to keep me happy in my spare time, of creating a Visual studio plugin to automate some error fixing. Has anyone authored a plug in before and got any useful links, hints, experience to share? ...

Object being passed to Function, but not being received... why?

I'm not having any errors from these pieces of code, they're just empty everytime. I'm wondering if I perhaps have created them incorrectly. Help as always, hugely appreciated; Dim l As New Log() l.Log = "Attempted staff login with username [" & txtUsername.Text & "]" l.LogId = 0 l.StaffId = 4 l.LogDate = Date.Now() l.Insert() .Inser...

Using CreateCriteria and selecting row based on maxvalue

Hi, I want to select a row from one table in the database using CreateCriteria where I have a know value for a column, not primary key so there will be multiple rows matching. The table contains update information so we have a column that contains a version number for each row based on which along with my primary question gives a singl...

.net compact framework button override OnPaint

Hi, I am wrting for the .NET Compact Framework. If a create a MyButton : Control, my OnPaint override gets called correctly. However, if I have MyButton : Button - it does not... Strange, Button is a Control. Any help would be appreciated. ...

Can memory leaks in .NET lead to a corrupted disk? (Error creating window handle)

Related to this question (I too have had this error in an application). "Error creating window handle" due to too many non disposed controls. Can this lead to Windows crashing and refusing to start, even refusing to be reinstalled, even when reformatting the drive (only quick reformat)? Because that seems to have happened to me. Edit a...

How to set ServiceHostingEnvironment.AspNetCompatibilityEnabled = true in Code (not in config) .NET/C#

Hi all, I have a requirement to access the HttpContext.Current from with-in a RESTful WCF service. I know I am able to achieve this by adding the following to config: <serviceHostingEnvironment aspNetCompatibilityEnabled=”true” /> and using the following attribute on my service: [AspNetCompatibilityRequirements(RequirementsMode ...

Changing activeindex numeric to text

I have an asp.net page, i want to change the active index numerical values to text values? like......... currently it is 1 to 2 and it goes like increasing............ instead ..i want a,b,c,d ............ ...

Setup roles programmatically from a console application

I'm writing a setup-application for our web application. One of the tasks is to setup the database for the built-in SqlRoleProvider. I've got my script to create the database with the aspnet_regsql.exe-command, but now I've run into troubles creating default roles and user-mappings programatically. What I'd like to do: ... private clas...

Profiling Library for .NET

Edit: I'm NOT asking for a way to implement a profiling library, I'm asking if there's one (preferably free) out there. Although there are a lot of commercial and free profilers for the .NET platform they all analyses (better or worse) your application code in a way that let's you see what method call or even line is consuming a lot of ...