I'm trying to use the following command:
Dim xmlFilePath As String = _
System.Configuration.ConfigurationManager.AppSettings("XmlFilePath")
to retrieve the following setting:
<applicationSettings>
<MySolution.WebProject.My.MySettings>
<setting name="XmlFilePath" serializeAs="String">
<value>C:\ASP.NET\Fold...
Airlines have divested most of their direct holdings to dedicated GDS companies, who make their systems accessible to consumers through Internet gateways. Modern GDSes typically allow users to book hotel rooms and rental cars as well as airline tickets.
What I want to know is,if I want to vertical search engine specially airline, how to ...
Hy,
Can someone tell me how can i find the page parent of an element in Silverlight 4. The element is in a page of a Project2 (is a userControl), and i want to find that page in the codeSource of the ControlElement. The code which i use now is this (this code is in control):
Project1.MainPage pageM = Application.Current.RootVisual as Pr...
I have WPF application which was migrated from .net3.5 to .net4.0. This application uses an old one C++ library (as I understand this is mixed mode library, means managed-unmanaged). Library moved to .net4 environment with some strange bug which occurs on callback call:
if (m_pCANCallback)
m_pCANCallback(m_pCANCa...
Using VS2010 and .NET 4 what exactly does the ADO.NET EF wizard update when you right click in the EF model and select Update from database because I have a feeling that very little.
For instance, making a column optional (null values allowed) in SQL Server Management (a value that was previously not nullable) and updating the model in...
For my primary key and identity in our Clients table I use uniqueidentifier column with a default value set to newsequentialid(). Inserting new rows through the management tool creates the values for the ID fine.
Inserting from .NET 4 code via EF results into zero GUIDs (00000-0000....) being inserted. I create the entity with new, set...
Hi
I'm experiencing some difficulties with a WCF RIA Services similar to the problem specified in this thread.
The domainservice method I'm creating (a Query method) should take a complex object parameter.
example domainservice method:
public ComplexObjectResult GetComplexObject(ComplexObjectParameter test)
{
//do stuff
...
I have a ASP.NET page using a PlaceHolder. Grids are build programmatically and added to this PlaceHolder when the page is run. Example:
ASPX Code:
<asp:PlaceHolder ID="myPlaceHolder" runat="server" />
Code behind:
foreach (var country in Tables.Countries())
{
var nGrid = BuildGrid(country.Code);
if (nGrid.Rows.Count > 0)
{
...
Here's how I understand asp.net compilation. Please correct any errors in my understanding.
If I do not publish a web site project, rather simply copy all the files to the web directory I know that the first visit it compiles and so the first visit it's a little slow. From then on (if I don't update the source) the website stays compi...
I'm loading a datatable from the cache and I need to read it's schema, and then load that schema into another datatable. Here's the code I'm using:
using (var ms = new MemoryStream())
{
using (var xmlWriter = XmlWriter.Create(ms))
{
tableWithSchema.WriteXmlSchema(xmlWriter);
xmlWriter.Flus...
How to join multiple machins connected via enthernet cabels (in one NAT) into one counting resource using new .net 4 Parallel Programming APIs? Is it possible?
...
I have an application built in C# with the .Net Framework 3.5 SP1 (also using wix).
The obvious requisite in the running machine is .Net 3.5 SP1, but what if the machine already has .Net 4.0?
Right now I'm having a crash in that machine and only installing the .Net 3.5 SP1 fixes the problem.
Is there a way to avoid the customers that...
I am building a site in ASP.NET 4 and MVC2 that will have premium features, such as SMS notifications that will only be available to paid subscribers. I also have additional modules for things like Inventory, and Transactions etc
I am already leveraging the standard MembershipProvider, and am leaning towards using Roles tp provide this ...
Has anyone got a RESTful WCF service (in .NET4) successfully using JSON.NET to do serialization/deserialization?
What's the best approach?
...
HY,
Know someone how can i add a assembly to GAC and Add reference dialog automatically in same time.
I have a setup project which i set him to add the assembly automatically to GAC, but i can`t add that in add reference dialog from visual studio 2010. I search on the internet but i didn't found how to do it.
The idea is that i have a ...
I have a feeling this is something very obvious that I'm missing, but here goes.
I'm trying to set up multiple languages in an ASP.Net MVC project (C#, MVC2, .Net4.0). However, I have some cases where I want to have phrases translated within the Controller (error/success messages, mostly). However, it seems every method I try is eithe...
I came across a strange problem with a website that I am working on when I moved it from Visual Studio 2010 (Cassini) Webserver to IIS 7 running on Windows 2008. Given the following class as the viewmodel posted back to the server:
public class NominateViewModel
{
public Models.Category Category { get; set; }
publi...
I'm trying out the Razor ViewEngine from ASP.NET MVC 3 Preview 1 and I'm running into an issue trying to using the Any() extension method.
Here's the code I use to set the property in the controller:
ViewModel.Comparisons = DB.Comparisons.Where(c => c.UserID == this.UserID).ToArray();
Here's the code in the View where I try to use An...
I have a .NET 4 application that runs as a windows service. It runs periodic tasks and provides WCF restful webservices. It already hosts a silverlight web page (via WCF) that allows a user to configure the service.
Now I have a requirement to provide information on HTML/java script pages (e.g. for browsers and platforms that don't su...
I have downloaded a font, [Betsy Flanagan][1], that I'd like to use in my program that shows on-screen keyboard shortcuts and their meaning in various programs.
However, when selecting the font in Visual Studio 2010 for a label, I get an error message that says "Only TrueType fonts are supported. This is not a TrueType font."
Is there ...