I am creating a new Panel..
public class LicensingPanel : Panel
{
private LinkButton licenseButton;
...
}
I am then in the code adding my controls to the Controls property, one of which is a LinkButton.
What I want to be able to do on my Page code behind is the following..
protected override void CreateChildControls()
{
...
I am trying to find away to determine a pages url from the page object. It seems you can only get the path of the current context.
...
I am using ASP.NET with C# 2.0 and Visual Studio 2005. I am using a Master page and content pages. I have a treeview menu in the master page and when a user selects any menu item I redirect to that content page.
My problem is that after a user navigates to the content page all the treenodes refresh and the structure is collapsed. I wan...
I'm using an ObjectDataSource with a GridView with an OnObjectCreated handler on the code-behind. If I programmatically change a child control value on the GridView, the entire control gets databound a second time in the same request (as shown by the OnObjectCreated handler), which I don't want. This happens on the initial page GET reque...
Hi Guys,
I have created an Entity Model from a DB, and getting an error "member names cannot be the same as their enclosing type". Which means there is a Property the same name as the Class.
So the error is here
/// <summary>
/// There are no comments for Employee in the schema.
/// </summary>
[global::System.Component...
I am using the Membership API in ASP .NET and I have encountered the following problem on my staging server. The application works fine on my local machine. The data tables are stored on a SQL Server. Both my local and staging server point to the same DB server. When I deploy to my staging server I get the following error:
Parser E...
I´m working with visual studio 2005 and ajaxtoolkit 2.0 .
I´m using ajaxtoolkit Tabpanel control in a webpage. I have one Tab for adding data, and i built dymanically other Tabs for loading data (DB) and update.
The Tab of adding data, does not give me any problem, since the controls are put in the page from the beginning. But the cont...
Hi in .NET on my local machine I have a reference to a DLL on my local assembly folder. I was wondering how I can "package" this dll with the deployment of my website? When I deploy on the staging serer it is complaining that it does not have that dll. (It is not in the GAC of the staging server). Thank you.
...
I have an application built upon ASP.NET 3.5 and PostgreSQL 8.3. My database has 3 users, a data owner (xxx-owner), a data editor (xxx-editor), and a data viewer (xxx-viewer). Each user has their own schema called xxx-schema, xxx-editor-schema and xxx-viewer-schema. All the data is stored in xxx-schema.
This requires that I specify t...
I am developing an ASP.net web application for my company. Some users use this site in internal network and some will use internet site. I am usin Windows Authentication mode.
I no need to prompt windows authentication mode for intranet user and prompt windows authentication mode for internet user.
How can I do this.
...
Let me see if I can re-word this better and maybe get some more relavent answers or ideas. This has happened a few times now as reported by users. I cannot reproduce on my local server. I am checking each of the IIS settings now to make sure they match.
But on our production server here are the details:
Single Server
No Authentica...
Hi,
I have an ASP.NET web application, and I wanted to know how I could display an error message box when an exception is thrown.
For example,
try
{
do something
}
catch
{
messagebox.write("error");
//[This isn't the correct syntax, just what I want to ach...
I have an entry in my Web.Config file that indicates which environment I am in for connection strings and junk:
<add key="AppEnv" value ="2" /> <!--(0 = Dev, 1 = test, 2 = prod)-->
I am looking for a way to alert the developer, at the time of publishing, to make sure they have checked this key/value so that they don't publish the 'tes...
When you're making a page that is visually broken down into specific regions, do you break those regions down into controls, or do you put everything on the page and in one code-behind?
If regions are separated into controls, how do you facilitate communication among the controls? By communication I mean simply exchanging data on the s...
I have a website which google blocked because it had badware i removed the viruses from the server and its completely clean now, the problem that this virus changed in the html, js asp files in the site and added hidden iframes and strange scripts, i removed all what i found in the diles, but the website is toooo big, so any one have any...
Hi, I have an ASP.NET web application, and I wanted to know how I could display an error message box when an exception is thrown.
For example,
try
{
do something
}
catch
{
messagebox.write("error");
//[This isn't the correct syntax, just what I want to achieve]
}
[The message box sh...
According to the msdn.microsoft.com site, .NET 3.5 Routing should work under IIS6 and II7 in classic mode. I've made the mods to the web.config file and tested under IIS7 integrated mode and it's working great.
I'd love to keep IIS7 Integrated, but my webhost is still just IIS6 (with .net 3.5).
So... has anyone gotten this to work?
I...
Hi I have setup Access Rules on my local server and they work fine. However when I deploy them on to my staging server the rules are not in effect. Where are the rules stored? Both my local and staging server point to the same DB server. Thank you for any insight.
I set the Access Rules in the ASP.Net Web Application Administration
...
I have the following table:
<table class="grid">
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<tr>
</thead>
<tbody>
<tr>
<td>Project 1</td>
<td>Closed</td>
<tr>
<tr>
<td>Project 2</td>
<td>Open</td>
<tr>
<tr>
<td>Project 3</td>
<td>Closed</td>
...
I'm looking at a fresh asp.net site in 3.5 that has absolutely no error handling or logging. What are some good options for logging and handling errors? I've used Log4Net on the 1.1 framework but hear there are potentially better options in 3.5.
...