I have this GridView that have it's DataSource as a list of previously selected products.
For every item on it, I need to Eval it's ID and load a specifc form that the user must fill, then after that i've got to update the GridView.
I have made those specific forms as User Controls, is this the best approach for this scenario?
If yes, ...
I'm refactoring some code that was originally designed with generics to also work with reflection. The particular code base has default(T) scattered throughout. I've created a method that will look similar named Default(T), but I don't think my implementation is correct.
Essentially my implementation looks like this:
private object D...
I used to be able to add a view using the Smart Client Factory context menu in solution manager.
However now the only option available is "Create Disconnected Service Agent".
Having said that one of the projects has the "Add View" menu available.
Any ideas on how to solve it?
...
Hi,
Is it possible to capture from windows service written in C# event when someone tries to print anything from that machine ?
thanks for any help,
Bye
...
I am going to start working with Entity framework but the problem is my Visual Studio 2008 Does not showing ADO.Net Entity Data Model in Items list.
Following is snapshot of my item list and Visual Studio
...
Datagrid control is missing in Toolbox. I tried to add it from WPF components, but it is not listing there also. And iam using 3.5 framework
...
Hello everyone !
I have problems with NHibernate updating some of my entities when this is not supposed to happen (dirty checking).
As I use NHibernate.Mapping.Attributes to map my classes, I have found that there is a parameter "Check" to the element "Class" of NHMA. I would like to know if I can turn off dirty checking by setting thi...
I have a solution that contains several projects. One of the test projects is using .NET 4.0 due to a dependency. The deploy-able project I want to build is targeted against the .NET 3.5 compiler. Our current build script is not granular enough to target different .NET compilers on a project by project basis. Basically I can only use...
Visual Studio has a nice feature to spit out a bunch of compiler warnings if some of the public members are missing XML documentation.
I would love to have the same for internal, or better, any non-private members, but unfortunately so far I wasn't able to find how to configure the level of visibility for which to require XML documentat...
Hi,
I'm trying to understand why this very simple HttpModule fails. The code is a precursor to a simple HttpUrlRewriter that I need to develop for a test project.
It appears that whenever I test the Request, and then execute a Response, the output is not written to the stream!
I've attached the debugger (VS 2008) to the module, and a...
My standalone Windows app. is written on C# 2008 and back-end is MySQL 5.1.
In a Windows Form, I have a TextBox control on top and a DataGridView below. Initially, as the Form loads, the DataGridView is filled with Item Names of products in sorted order. As and when the user starts typing few letters in the TextBox, the records in the D...
I've downloaded the recaptcha.dll in both 1.0.1.0 and 1.0.4.0.
When trying to render the control, I get the following exception:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administ...
How to populate WPF datagrid with database values?
...
I am writing unit tests to test an MVC application. How can I validate my view models from a unit test?
...
I'm using MessageContracts to define my web method signatures and return types. Such as:
<MessageContract(WrapperName:="get")> _
Public Class GetRequest
Inherits BaseAuthenticatedRequest
Protected _typeName As cEnum.eType
Protected _id As Integer
<MessageBodyMember()> _
Public Property TypeName() As cEnum.eType
...
Hello, I have the following set up. 2 Web Sites A and B (each has it's own virtual directory). I have written a simple web service (asmx) that reads configuration of web site's A web.config. The .asmx file resides in the WebServices folder of site A.
When creating web service reference from site B ran on the same IIS I get this error:
...
I have a SSIS Data Flow project with a Flat File Source object and a SQL Server Destination object. Is it possible from a C# application to get the inserted rows progress? I haven't found any good info on this. Thanks
...
Hello
is there any shorter way to consume an asynchronous WCF method in a ASP.NET page?
here is a sample I would like to refactor:
protected void Button1_Click(object sender, EventArgs e)
{
PageAsyncTask c = new PageAsyncTask(AsyncList, CallbackList, null, null);
Page.RegisterAsyncTask(c);
}
IAsyncResult AsyncList(object s...
Hi !
I need help . I need a login form (user/pass) using LINQ, .net3.5, C#
I need a sample code for this. Its urgent ...suggest how can i do it ASAP . any open project from where i can take the login part ?
any code you dont mind sharing ?!!
thanks
sj
...
I am using Visual Studio 2008 (C#). Is there any better way to write this code? I am a poor programmer.
#region Properties
public string ItemCode
{
get { return _itemCode; }
set { _itemCode = value; }
}
public string ItemName
{
get { return _itemName; }
set { _itemName = value; }
}
public decimal? StockInHand
{
get...