Hi,
I have a class which generate a dynamic page.
Panel myPanel = new Panel();
TextBox myTextBox = new TextBox();
myPanel.Controls.Add(myTextBox);
Page thePage = new Page();
thePage.Form.Controls.Add(myPanel);
return thePage;
my class basically do this. I call my class and I get thePage object from code-behind. Now, How can I r...
I'm working on a Outlook 2007 AddIn using VSTO and one of the things my addin is supposed to do is to import contacts using web service.
The algorithm for that is very simple: it asks web service for a list of identifiers of items that needs to be synchronized and then it fetches them and saves in Outlook.
The problem happens when I ha...
I found a few questions similar to this one here on SO, but none that matched this problem, so here we go.
I've got a DataGridView showing members of a team. All the team members have an assigned role within the team listed in one of the columns. Examples could something like be "Legal Representative", "Account Manager", "Assistant Acco...
First let me explain how I currently handle validation, say, for an IPv4 address:
public struct IPv4Address {
private string value;
private IPv4Address(string value) {
this.value = value;
}
private static IPv4Address CheckSyntax(string value) {
// If everything's fine...
return new IPv4Address(v...
There's one specific feature that I wish was in the .NET framework, but isn't. I wish there were a DBDataReader.GetString (or GetDateTime, GetInt32, etc.) overload that accepted the field name instead of the index. Using the field name makes for easier maintenance IMO, but the GetXxx methods only accept the field position.
I can add th...
Is it possible via an attribute of some sort to serialize a string as CDATA using the .Net XmlSerializer?
...
I'm really confused by a behaviour of LINQ I'm seeing and it's causing me a problem.
I wrote a query like:
var reportalerts = pushDB.ReportAlerts
.Select(p => new {p.Title, p.Url, p.DateStamp})
.OrderBy(p => p.DateStamp)
.Take(numResultsPerPage);
This creates ...
I'm looking at upgrading a POS (Point Of Sale) project which is currently built in FoxPro to .net. The planned architecture is quite complex and there is plenty of rationale behind the new technologies chosen. Some of the requirements include the ability to have both desktop and web front end (where web front end has limited functional...
I'm attempting to consume a HTTP Basic Auth Secured PHP WebService using VB.NET. I've so far managed to get 100% perfect integration by adding it as a Web Reference and doing the following:
Dim Credentials = New System.Net.NetworkCredential("username", "password")
Dim CredentialCache = New System.Net.CredentialCache()
CredentialCache.Ad...
I have a asp.net web page where i will navigate pages on the click of the "Next" button
Page1 will got to Page 2 and then page 3 and page4
But in a selection of dropdown in page 1 it decides page 2 should go to page 3 or page 4
How can i know where they set this page navigation? if suppose i need to change the navigation order?
...
How to implement voice recognition in .NET?
I've got a bunch of .mp3s with computer generated voice of relatively high quality. In each .mp3 the voice says some random text and then a sequence of 6-7 digits in English. I'd like to extract those digits as text.
Is it possible to implement such a thing in .NET?
...
Can someone please explain where GetModuleCatalog (Microsoft.Practices.Composite.UnityExtensions.UnityBootstrapper.GetModuleCatalog()) is called in the Prism shell? I understand that it needs to be overridden in the application Bootstrapper, but I could not find out where it is called internally when running the Bootstrapper.
...
Is it possible to have two app.config files where one app.config serves as a container for second (nested) app.config file? I would like to reference specific sections of a nested file from the outer one.
Why I need this is because of source control issue. For detailed description see this
Any other solution for the root problem is gre...
I would like to periodically check for updates for my ClickOnce application even if it is not currently running. I found a post about using ClickOnce to deploy a background service, which would allow me to run a service that checks for updates, but the setup is kind of tricky so I'm wondering if there is an easier or more straightforward...
I have an .aspx page that can perform a number of functions. The type of function is determined at run-time depending on which button the user clicks. This makes makes a web-service call to an .asmx method. The web-service call returns html and javascript which then become part of the original page.
This new content has javascript ev...
The following F# code fails because Type.DefaultBinder does not want to bind to the generic Id method. Is there an alternative Binder that would do this?
open System
open System.Reflection
type Foo() =
member this.Id<'T>(x: 'T) : 'T = x //'
typeof<Foo>.InvokeMember (
"F",
BindingFlags.InvokeMethod,
Type.DefaultBinder,...
As I'm sure many companies do/want to do, mine is looking into implementing a single sign on solution across all of its internal web applications.
All users of the company have an AD account and thus the authentication will be done through Active Directory.
Nevertheless, many users use Unix and many Windows users don't use IE so Integr...
I'm using the Chart Controls for Mircosoft .NET Framerwork. Most of the time they work perfectly. However, if I leave a page for longer than 20-30 mins and then try to refresh the page, I get an error saying:
Error executing child request for ChartImg.axd.
Exception Details: System.Web.HttpException: Error executing child request ...
I have created a custom tree view control in .NET to display directories.
What I want is for the nodes to display the folder name and also the date last modified.
I can do this by just setting the text to include this but then when I try and get child nodes using full path it also includes the date and so the folder is not found.
So I...
I want to store a number with the following 0.000 which is the best data type to use.
A double?
Also I guess an INT is just out of the question?
...