I have the following hierarchy:
class Base
{
public Base(string sMessage)
{
//Do stuff
}
}
class Derived : Base
{
public Derived(string someParams)
{
string sMessage = "Blah " + someParams;
//Here I want to call the base constructor
//base(sMessage);
}
}
...
I'm trying to get a Silverlight application to connect to a Java webservice using a service reference.
I've come to the conclusion that Silverlight doesn't work the same way as as WPF or ASP.NET with respect to service connectivity.
I've searched the net and all I found for authentication was articles talking about securing the applica...
Hi,
When I change the ASP.Net version of a web application in IIS 6 from ASP.Net 1.1 to 2.0. ALL sites in IIS are becoming "unavailable" (Service Unavailable) for a brief moment (the time it takes to apply the changes in the IIS dialog).
I checked with Application Pools, but the sites are all in different application pools...
How can ...
I am having a bit of a problem adding a few check boxes and an event handler programatically. The check boxes all appear fine, but they don't do anything when clicked. Does anyone have any idea what I am doing wrong?
My code:
foreach (Statement i in theseStatements)
{
box = new CheckBox();
box.Text = i.S...
Is there a simple way to use the existing Html Helpers to generate a list of checkboxes with explicit values (as was possible in Beta)?
Example in Beta (possibly with MVC Contrib):
.CheckBox("Field", 6, new { value = 6}) would output:
<input id="Field1" type="checkbox" value="6" name="Field" />
<input id="Field2" type="hidden" value="...
I have an aspx page that has a control which serves as a summary for a GridView that is on the same page. When the page loads, it creates the summary control and dynamically creates links and attaches an event handler to it. Here is a snippet:
protected void Page_Load(object sender, EventArgs e)
{
LoadSummaries();
}
LoadSu...
Hello chaps, first question so be gentle with me and thanks in advance for your help!
I'm going to add quite a bit of context to explain why I'm asking the question I am and why I want to do what I want to do. Bear with me, it'll all be worth it.
I should mention that this app will not be seen by the general public and we have some co...
Here are the basics of my setup:
I have a BasePage class that inherits from System.Web.UI.Page. BasePage has two properties implemented such that their get/set does so from two different items in the ViewState collection (ex this.ViewState["Year"] from the BasePage).
I have another class that then inherits from BasePage, lets call it ...
Hi,
On my machine when I test my webapplication (wether in debug or normal) after
a javascript:history.back() triggers a postback in my app.
On the other hand it does not occur when i precompile the application.
Lastly, when I test the same pages on someones elses machine, the postback does not occur at all.
I'm using vs2008, asp.net 2...
We've been having a problem with a mass mailer component that I wrote for a long time and the exact nature of the difficulty, how to measure it and how to mitigate it have all remained elusive.
It's got to the point where these problems are becoming critical and I need some straight answers so I'm hoping someone here can provide them.
...
I have a number of user controls. The user controls can be used on different pages. The behavior of the user controls are different based on what page they are used on.
How can I set a parameter on the host page that ALL user controls have access to?
...
I've run into a snag though which has to do with authentication between the Google Search Appliance and ASP. Normally, when asking for secure pages from the search appliance, the search appliance asks for credentials, then uses these credentials to try and access the secure results. If this attempt is successful, the page shows up in the...
in a noncompiled .aspx, is it possible to have 2 partial class files for one aspx? I'm trying to do something like:
<%@ Page
Language="C#"
inherits="_Default"
src="Default.aspx.cs"
src="Default2.aspx.cs" %>
Both Default and Default2 have the partial class defined
Update: Yep.. It's not compile...
Every object I return from a WebMethod of a ScriptService, is wrapped into a d JSON object. That's ok. But I don't want the additional __type property to be served to the client, since I do manual processing with jQuery.
Is it possible?
...
I have just noticed recently that my page title will reset to the standard "Untitled Page" after I perform an asyncpostback from inside my UpdatePanel in the main page. The title will not be lost during a postback from inside the master page (such as when I click on the search box button inside the master page).
I assumed that by using ...
What is the best way to recursively copy a folder's content into another folder using C# and ASP.NET?
...
I have created a user control with web controls defined in the aspx file and made it's codebehind class abstract. I extend this class with another user control, but the the controls in the initial markup file don't get generated. How do i generate them for every user control extending the abstract class and how do i make them accessible?...
Its been a long time since I had to do anything but minor fixes with ASP.NET and I've never deployed a ASP.NET 2.0/3.5 application so probably I'm just missing something simple but I definitely need help.
Basically, we have a poorly written .NET 1.1 web application and we had some contractors come in and break some of our third-party d...
I have a "cookie" handler / utility class that works quite well for me. It abstracts away a lot of the issues that I drive me crazy when dealing with cookies such as how to handle a response (write) operation followed by a request (read) operation on the same postback, how to handle encryption, etc.
The one thing that eludes me is how t...
I'm in the process of deploying an ASP.NET MVC app to IIS 6, but am running into an issue with the root path.
In Global.asax, I have the root path mapped:
routes.MapRoute("Root", "",
new { controller = "Dashboard", action = "Index", id = "" });
When I navigate to http://servername:70/test2/, the app displays the right page, but ...