I have just started a new project using a Linq to Sql model and I'm implementing our first many to many relationship. I have found this blog that gives great info on how implement this:
http://blogs.msdn.com/mitsu/archive/2008/03/19/how-to-implement-a-many-to-many-relationship-using-linq-to-sql-part-ii-add-remove-support.aspx
When I t...
I am learning ASP.NET MVC and many concepts of "ASP.NET" like authentication, authorization, session state still apply to it.
But from whatever little I have understood, I don't see that ViewState is still relevant in an ASP.NET application. But it is there (property of System.Web.Mvc.ViewPage)! Is it there only for compatibility reason...
I need to show form as top level system-wide, e.g. over /all/ other windows on screen. I do realize this is usually /bad UI practice/, but I have very specific scenario in mind.
We intend to use normal Windows PCs for POS cash registrators. There is an option on the screen to open cash drawer. It would be rather bad for someone just to...
In an ASP.NET web application I have to dynamically create a SQL Compact 3.5 database for a Windows Mobile Compact Framework application from a data source (SQL Server).
I have to create the database file, needed objects (tables, ...) and fill the tables with data. The client application (Windows Mobile device ) will download that gene...
I've written a class that should allow me to easily read and write values in app settings:
public static class SettingsManager
{
public static string ComplexValidationsString
{
get { return (string)Properties.Settings.Default["ComplexValidations"]; }
set
{
Propertie...
hello,
i have a solution, which has a C++ project and a C# project.
the C++ project defines a class, which i want to instantiate in C# and call it's member functions. so far what i managed to do is to instantiate the class:
CFoo Bar = new CFoo();
but when i try to call a function on it, the compiler says, it is not available.
also, w...
The closest thing I've found is using Activator.CreateInstance, but you can't pass it a server name/account information.
What I would like to do is programmatically create a COM object on a different computer. (I know I can create it on a different computer by manipulating the component properties in the control panel, but I want to sta...
I have been working as a .net programmer for the last 5+ years but don't want to go into management or people handling. I want to stay in technical side always and also want good future growth with a secure career.
As these days the IT industry is down I feel I should be an Oracle DBA which is more secure and interesting for me to do.
...
Problem is that I use a 5.2 Sitecore, and when I start to publish something, it only shows the publishing window and a "Queued" message. There is a chance that some people full published several times(that means 15000 items and 4 slaves), and the publishing queue is stuck. The restart of the webserver/app pool is not an option.
Any exper...
This question might sound weird but I am finding it really difficult to digest a typical aspx page in ASP.NET MVC application. For example:
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
About U...
Still looking for solution please help
I do agree with all of you but the thing is that happened with ie cant be with any other browser I am looking for some settings/option so that it will kill the process as soon as the firefox window is closed
origional message
Hi all,
I am going to set Mozila fire fox as my default web browser to...
I have a form that acts as MDI parent form and several other forms as MDI child. The child windows have FormBorderStyle.None and ControlBox = false so that no border stuff from the MDI children is displayed in the MDI parent. But the MDI children run maximised in my application and in that case, the main form window title text always inc...
I have a DataViewGrid I populated from a DataTable in a query to a DB. While trying to capture the Row_Leave event, so I could properly update it, I can't seem to capture the latest value in boolean columns.
If I update just a text field, when I access the underlying DataSource I get the latest value I entered, buy if I access the boole...
How can I write gadgets for the Windows 7 desktop using C# and Visual Studio 2008? I'm looking for tutorials and resources on that topic.
...
I am doing webparts in sharepoint and I want to transfer the data from one to another. I tried the 3 ways but they all fail. Any idea?
It just says
An unexpected error has occurred.
...
Can I rely on the fact that the underlying field to a property named Foo is called "k__BackingField" ?
...
I have this extract of C# 2.0 source code
object valueFromDatabase;
decimal result;
valueFromDatabase = DBNull.Value;
result = (decimal)(valueFromDatabase != DBNull.Value ? valueFromDatabase : 0);
result = (valueFromDatabase != DBNull.Value ? (decimal)valueFromDatabase : (decimal)0);
The first result evaluation throws an invalid cast...
I'm looking for a free, open source API for encrypting and decrypting PGP files. I'd like to use it in closed source products, as well as open source ones, so it would have to be a license other than the GPL.
...
Hello
I'm trying to do the following:
List<IRepository<IBusinessObject, ICriteria>> Repositories { get; }
and call this by
IRepository<ICustomer, ICustomerCriteria> cr = new CustomerRepository();
List.Add(CustomerRepository);
where ICustomer and ICustomerCriteria descend from IBusinessObject and ICriteria respectively.
However, ...
I need a asp.net text box validation to enter value which is above zero;
Not less than zero or zero
...