.net

Server.UrlEncode vs Uri.EscapeDataString

What exactly is the difference between the 2 , the output seems similar except the Uri.EscapeUriString encodes spaces to %20 and Server.UrlEncode encodes them as a + sign. And the final question which should be used preferably ...

How do I add Silverlight XAP file to an existing ASP.NET Web Page?

I've added a new silverlight application to my project. It works fine by itself. I even have a ClientBin folder in my ASP.NET Web Application with the XAP file of my Silverlight project. So how I embed that Silverlight project into my existing ASP.NET web application? ...

How to change font size in VB.net

I want to below script to send an email to lotus notes, but I find that in lotus notes, the font size of body message is a little bigger, so I want to change its font size to a small one, but due to string body in below function is a variable, I don't know how to change its font size, so could anyone here can help me ? thanks in advance ...

Need help about choosing the right way to support multiple players to play videos.

I will try to be brief here.... I am working on a project where i need to support multiple players and platforms to play videos. Major Platforms will be: Windows PC,Mac PC,Apple Devices and Android. This is the precedence i will be following. First it will check browser support for Silverlight 3 or later then Flash then HTML5. If not ...

Alternative to Windows Credential Provider

I'm not interested in replacing the window login. I want to display a message to the user after they have successfully logged in. But I want to force them to hit the OK button before they can continue using the system. Users in the past have claimed to not have seen the message. Therefore, I want to force user interaction or "confirm...

All registered dll in the system in .net

Hello, Is it possible in .NET to get a list of all registered dll in Windows OS. Can anyone provide me with C# code. Thanks. ...

How do I name an interface when the base word starts with an I?

I want to create an interface for "Items". Typicaly I would name an interface by adding and "I" prefix to a base word. But in this case my base word already starts with an I. Here are a couple ideas I've had IItem: Two I's Iitem : Vary the case ItemInterface: Skip the I prefix and write out Interface What looks the best? Has anyone e...

ComboBox AutoComplete

Is there anyway to have the autocomplete for a combo box to start from anywhere in the text, let me give you an example. If I have someone named john smith in the combobox if I start with the letter 'j' it pulls up john smith but less say I want to start with the letter 's' to search for his last name, is that possible, if so does anyone...

.net accordion control not working after jquery modal popup

Hi. I have a strange problem on a web page. On this page, there were (.net ajax) accordion control and modal popup extender. For some reason modal popup installer would not work properly so I have replaced with jQuery modal. (using jQuery-ui). The problem is that after the jquery modal is open( or closed) Accordion control will not f...

convert sql query for different database

Is there a tool to convert form one sql query of one Database to another . > eg for sqite CREATE TABLE ConstantValues( Id int > AUTOINCREMENT primary key , > VariableName varchar(50) , Values > varchar(150) ) for sqlserver > CREATE TABLE ConstantValues( Id > INTEGER identity(1,1) primary key , > VariableName varcha...

In Memory Data Cache for Performance in .Net Applications

Hey All - We have an application (rules engine) that has a lot of tables in memory to perform certain business rules. This engine is also used for writing back to the database when needed. The DB structure is denormalized, and we have 5 transactional tables, that also sometimes need to be queried for reporting. The issue here is, we w...

error while using crystalreport in website

hello, i have a strange problem.i want to use crystalreportviewer control...but once i drag it to my page and choose the crystalreportsource and the report.i find crystalreportviewer become like this.what can be the problem??? thanks in advance ...

What's the story behind the name of the SOS (Son of Strike) debugger extension?

The title says it all really. What's the significance of the name "Son of Strike"? Does it serve any meaning or does it just sound cool? ...

Generation of Windows forms from databases.

Is there any tools using which I can use to create Windows forms from selecting database table only? ...

Application Manifest problem

Hi Can i build a setup that does not have and does not need application Manifest? This is causing problem to setup my application on many computers. Thanks Furqan ...

Memory management in .NET

Has anyone any guideline, book, or article for memory management in c#? I want to improve my memory management information? ...

the IndexOf() method returns -1 all the time

i have two data tables with the same structure the first one has one row of the second one the second one has set of rows what i want is to get the row which comes next to the row of the first data table in the second data table. the first data table his name is :: temp the second data table his name is :: dt i do the following: ...

Trim last character from a string

I have a string say "Hello! world!" I want to do a trim or a remove to take out the ! off world but not off Hello. ...

DataGridViewColumnCollection: count always 0

Hi, I use C# (winform, .net 2.0) to create a DataGridView programmatically to which I connect a BindingSource. Afterwards I want to change the column order (display index property) and the name of the columns (header text property). But when I try to access the column collection of the DataGridView, the debugger always tells me the colu...

Most maintainable method to share code between multiple projects

Given multiple websites all running the same sourcecode, what's the best/most maintainable way to organise these into projects within visual studio? For example, say we have websites Red, Blue, and Green (etc). Their HTML may be different, but they are a functionally the same. Previously in one solution we have created one project Col...