.net

Are there any controls to edit text with intellisense?

Are there any .net controls (hopefully WPF) to enter queries based on application rule engine (or language definition)? Something like SQL with intellisense or Jira advanced filter? In other words i would like to allow a user to enter something like this into a text area (type='apple' and color='green' and quantity>10) or (type='tomato...

How is the .NET event, Application.OnIdle, coded in Win32?

How is the .NET event, Application.OnIdle, coded in Win32? (i.e. What is going on behind the scenes?). ...

Can Tao.FFmpeg use H264 for video encoding?

Can Tao.FFmpeg use H264 for video encoding? (what shall be done to enable it?) So I can encode video into MPeEG2 but how to encode into h264? ...

ASP.NET's Compilation files directory.

By default ASP.NET's compiled files (Along with VB or C#) are saved and created in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root... Is there a way to change it? or is it recommended to keep it at default? I am asking about changing it because what if you format the c drive? or some other reason as keeping f...

ASP.NET - How do I package a Web User Control (.ascx) in a DLL for use in other applications?

I have developed a paging control that I would like to use in a variety of applications, both C# and VB.NET. I'd like to package the entire thing, markup and all, into a DLL which I can add as a reference from my other applications' bin folders. If this is not possible, or is a very bad idea, what is the recommended method for deployi...

Page-specific margin setting in AR3...

Hi SO! I'm trying to programmatically set the margins in an active report based on the page number. Specifically, the first page needs to have small margins (so that the top-most text box with a return address matches the alignment of a company logo) and every page after that should have standard 2.54cm margins. I've read posts that ...

doing validation in WPF 4 for non-binding attributes - what approach?

How should one handle validation in WPF 4 when there is no binding? Most of the validation doco I am reading seems to be for controls that have bindings. For example, just a main windows with some text boxes that a user would fill out, and then a button someone would then click on. One could do it manually I guess but wouldn't' there ...

what are the disadvantages of using ClickOnce Deployment in .Net?

Can someone tell me some disadvantages of ClickOnce deployment with respect to other means of deployment? ...

Applying a Condition to an Eager Load (Include) Request in Linq to Entities

I have a table Product. Product is related to ProductDescription in a one-to-many relationship. ProductDescription can have more than one row for each product. It will have multiple rows if there are multiple translations for the description of the product. Product has a many-to-one relationship with Language. Language has a language cod...

How to send/receive a HTTP request in .NET

How to send/receive a HTTP request (it is good to give me a link) ...

Lambda Help Grouping and Summing in C#, need a Func<IGrouping<int, anonymous type, int> or Expression<Func<IGrouping<int, anonymous type>, decimal>>

I'm having a bit of trouble doing an inline .GroupBy() and .Sum() action. I have a subset of data obtained via a let so it's return type is already anonymous. Hopefully there's enough code in this sample to show what I'm trying to achieve... from r in Repo.R join f in Repo.F on f.ID equals r.FFK let totalB = Repo.B .Join( ...

A file uploaded with HTTP PUT has extra data at the beginning and the end

I need to implement uploading and downloading files as cheap as possible. For my tests I use Windows XP with IIS 5 and a console C# program. I created a virtual directory in IIS and in my program I execute the following code: System.Net.WebClient webClient = new System.Net.WebClient(); webClient.Credentials = System.Net.CredentialCache...

How to create a module in existing Sense.Net Projects

How to create a module in existing Sense.Net Projects What are all the steps need to follows ...

How to change iframe inner text ?

I'm using a web browser to login to site and submit articles its very simple but at some places when there is iframe instead of textarea it gets very complicated.At some times just putting valye in the textarea automatically puts value in the iframe and sometime it doesn't ,So is there any way that can be applied at all iframes to change...

Is there any way to serialize ChangeSet class from MyDataContext.GetChangeSet() method

Is there any way to serialize ChangeSet class from MyDataContext.GetChangeSet() method, or how to get sql commands for all changes in ChangeSet? ...

Strongly typed custom baseviewdata in a custom basecontroller

In my project I have strongly typed viewdata in the spirit of the following: AppleListViewData : ViewDataDictionary + SelectedTheme + ThemeList + SelectedApple + AppleList Where the first four are re-occuring accross all the viewdatas because they are used in the site.master To keep it DRY I elevated them into a BaseViewData c...

Datatable to Datasetxsd?

Hi people. I'm having some problems with reporting and I thought you could help me: I have created a dataset (mydata.xsd). I also have designed a Report.rdlc, and I did the same with a frame with a ReportViewe inside, wich use mydata.xsd as a source data. I have designed mydata.xsd to have 2 columns (user, time). How would you fill th...

How to return as little rows as possible from related table

Hello, I am new to ADO.net and have this problem: Let's assume I have these two tables in a SQL Server 2005 database, with these columns: [Orders] OrderID OrderDate ShopID TotalAmount TotalTaxAmount etc... [OrdersDetails] OrderID ShopID ItemID Quantity Amount TaxAmount etc I have started a WinForms application to get myself st...

Setting encoding for every part of a MailMessage

I'm targeting a .NET application for the international market and need to implement mail sending functionality. I've noticed on the MailMessage class there are several options for setting encoding: BodyEncoding SubjectEncoding HeadersEncoding To, From address encoding I have added a drop-down in the app's config page to choose the ma...

Data Partition in C#

I want to distribute a large amount of data to different C# applications. For example, my table contains millions of records. I would like to specify that first 3 millions records are processed by App1 and next 3 million in another C# application App2 and so on. Table rows are deleted and added as per requirement. Now I want to write a S...