Hi,
I am trying to assign values from Dataset(Dataset.Table(0)) to a Typed Dataset(XSD) and vice verse. And my dataset.table(0) and typed dataset has same structure. I am trying to map between this two using Automapper but i am not getting how to do that one.
...
Hi,
I'm looking for possible solutions for the following scenario:
I have a service that holds a large amount of data in memory and also updates the data at very high frequency
I want to make that data query-able for clients over the internet
Ideally, I'd like the client to write a LINQ query on the client side against a proxy objec...
How do I check which LinkButton is clicked in the Page_Load of the page.
This is to avoid calls to service so that it only executes what is present in its event.
...
I hover over my menu and a submenu expands, then this bad boy comes accross the screen. Is there something I can do in my website to prevent this?
IE6
aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Templates/MyPage.master" AutoEventWireup="true"
CodeFile="Tasks.aspx.cs" Inherits="UI_MyPage_Tasks" %>
<asp:Content ID="Con...
Hi
What advantage does one technique have over the other:
Use Application_Error to handle
exceptions or errors.
Use defaultredirect in the web.config
file.
Thanks.
...
Using this lovely example I am getting some funky results. What I have is:
Protected Sub btnCSV_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCSV.Click
Response.Clear()
Response.Buffer = True
Response.ContentType = "text/csv"
Response.AppendHeader("Content-Disposition", "inline; filename=" + Fil...
I am calling a non-WCF service from a WCF client. The WCF client includes the "MustUnderstand" header attribute set to "1". Here's a typical SOAP request:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Secu...
Can I detect at runtime inside method Helper() that the program execution is the result of a thrown exception?
Note, my goal is to avoid extending method Helper() to take an exception object as a input pararmeter.
public void MyFunc1()
{
try
{
// some code here that eventaully throws an exception
}
catch( Exception ex )
...
OleDB always add one more digit to DBF numeric fields when we create them. A command like this:
CREATE TABLE [file1.DBF] ( [MY_FIELD] NUMERIC(1,0) NULL)
will create a field that can contains 2 digits (or one digit and a minus sign). What's funny is that I can ask for a length of zero like this NUMERIC(0,0) and it's going to create a fiel...
I created a "Code Only" POCO for use against an existing database using Entity Framework 4 and the CTP4. When I run a query I get the error
The model backing the 'xyzContext' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer inst...
Hi,
I need to develop a Add on for Excel (2003 and greater), it must upload the excel file when click the Save Button (with the event Application_DocumentBeforeSave).
My question is how can I do that?
I try with Net.WebClient UploadFile and runs OK on WinXP but doesnt work on Windows Vista and Windows 7, may be the UAC or some securi...
I am developing an Arctools .NET 3.5 C# DLL to be loaded by a .NET 4.0 application. Will this cause problems?
...
Hi, I need something like ObjectListView (http://objectlistview.sourceforge.net/cs/index.html), but it MUST be free and LGPL, BSD or some license that allow its uses in commercial applications.
Thank you and sorry about my english.
UPDATE:
"Hi,
To use ObjectListView commercially, companies normally buy a license. A license to use Obje...
When I create entities in a class library, I tend to add a Tag property which may be used by users and extending libraries to store arbitrary data with the object. Now I am looking for the best way to implement such a Tag property in my class library, and the reasons why.
In System.Windows.Forms, Microsoft uses object Tag { get; set; } ...
I have a table that I am displaying in a data grid view control. The user selects a single row from the control and presses a button. I need to retrieve the cells from that row and store them as strings.
Exactly how do I get the data using the SelectedRow method? I've been working on this for several hours and I'm at the end of my rope...
I'm new to .NET and am starting to find my way around. I have some experience in C, VB, and ASP. My question is, basically, what area(s) of the framework would be good to concentrate on learning first? Or is it better to find a problem to solve and work out how to get it done in .NET? I'm interested in desktop and web apps. I want t...
Let's say that I have the following XML:
<someRootElement>
<someTagWithUrl>http://www.google.com/s.php&test=testing</someTagWithUrl>
</someRootElement>
The ampersand inside the someTagWithUrl is invalid and needs to be escaped (by using &), but suppose I have a single string with the entire above contents.
How can I s...
I'm trying to rig an XNA WinForms system so I can have a game editor, and I need to use the mouse for it. Since the XNA Mouse input class reports mouse position based off of the window's location, I need to place the form I have in the same spot. How can i get the location of the window that my XNA game uses?
...
A little help understanding this keyword from the .Net experts please.
Here is what raised the question for me:
...
can't seem to figure it out... I need to copy Redemption.dll to a folder (eg. C:\Program Files (x86)\Redemption) and then regsvr32 it.
I also need this to happen if Redemption.dll already exists on a users machine (i want to replace and re-register it with the dll included in my click once installation)
btw, this is a vsto outlook plug...