I know this question is overly popular, but I find nothing that addresses rewriting the host, only rewriting the path.
How could I accomplish redirecting/rewriting "http://myHost.com" to "http://myAlias.com/hidden/default.html"?
ADDED: where myAlias is just an alias of myHost.
...
I am working on a Log4Net configuration that will log all unhandled exceptions. I need certain properties, based on user, to be added to each log entry. I have set this up successfully in the following manner in my Application_Error event. Here is my complete global.asax
Imports log4net
Imports log4net.Config
Public Class Global...
I'm writing a program which has both an ASP.NET configuration system and a Silverlight application. Most users will remain on the Silverlight page and not visit the ASP.NET site except for logging in, etc.
The problem is, I need the session to remain active for authentication purposes, but the session will timeout even if the user is u...
Custom controls can use this for example to render out a span tag:
writer.RenderBeginTag(HtmlTextWriterTag.Span);
writer.Write(Text);
writer.RenderEndTag();
Ok, why can't I just do this:
writer.Write("<span>");
writer.Write(Text);
writer.Write(</span>");
this way I can actually see it rather than reading HtlmlTextWriter tags al...
Hi, i have a small problem, i am creating a edit page in my asp.net application where the user can edit properties in an object. I have two dropdowns (category and group) where the amount of groups is dependent on the category chosen. My goal is to display the right category og the object being edited, then load the list of groups and s...
I have an ASP.NET site that must use Forms Authentication and not Windows Authentication to access a ActiveDirectoryMembershipProvider. The site must use forms because they need a designed input form instead of the browser authentication popup that Windows authentication uses.
The site needs to impersonate the user logged in via Active...
I'm writing a pretty complex web form using ASP.NET Dynamic Data. Several of the controls on this form post back, since there are dependencies between controls. I'm noticing that the viewstate is growing larger with every postback, until after 5 or so there is a long delay between the Render process and the page actually loading in the...
I have an ASP.NET page which has report viewer control to access reports from report manager.
I need to pass report parameter from this ASP.NET page to the report server.
I want to pass region number based on user logged in, which is displayed on a label in ASP.NET page.
Thanks.
...
<LayoutTemplate>
<h3>Address</h3>
<table border="1" width="300">
<tr id="ItemPlaceholder" runat="server">
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<td>
AddressID:#<asp:Label ID="lblAddressID" runat="server" Text='<%# Bind("addressID") %>'/>
<asp:LinkButton ID="LinkButton1" runat="server" >LinkBu...
Hello,
I have an ASP.NET application I am working on. One of the requirements of this application is to not use query string parameters. The reason why is that the client feels it appears dirty and unprofessional. In addition, Session variables cannot be used either. In an effort to overcome these challenges, I decided to use hidden htm...
I have made a basic ascx control which is just a panel with a couple controls.
My question is how can I create custom properties I could set for my custom control?
(I mean such as custom properties like runat, CssClass, etc...)
I would also like to be able to create methods for my ascx that I could call. I tried putting public static met...
I have a pie chart that I'm using to show the top sales per manufacturer. I would like to show the top N manufacturers, and have the remainder show on the chart as "Other". If I do FilterTopN, it displays the chart so Area(manufacturer 1, 2, ..., N) is 100%, rather than showing them as a percent of the total.
So if I have 5 companies:...
We're planning to create a web application where users can build custom "forms," choosing which fields they would like, and how the data in those fields should be represented. Users can then fill out these forms in a DetailsView-like control, thereby creating "documents." The documents can be shown in a DetailsView, or certain fields o...
A radiobutton list and a repeater are in an updatepanel. The repeater is using a jQuery tools plugin - scrollable.
The scrollable plugin works after the initial page load. It does not after I click on a radio button.
I put in an input button to run the script below after a partial postback and the scrollable functionality works a...
var items = from c in contacts
select new ListItem
{
Value = c.ContactId, //Cannot implicitly convert type 'int' (ContactId) to 'string' (Value).
Text = c.Name
};
var items = from c in contacts
select new ListItem
{
Value = c.Conta...
I'm new to writing custom controls. I have MyCustomControl.cs and in my Render method I want to render out about 50 lines of JavaScript. What's the best way to do this, use the writer?
protected override void Render(HtmlTextWriter writer)
{
writer.write(@"<script type....rest of opening tag here");
wri...
When I am debugging within Visual Studio, for some reason when debugging a certain thread, visual studio will just jump around randomly to different threads, I assume this is the default behavior.
How do I change to behavior so it's sits on the same thread?
Why would this behavior be default? It is very annoying.
...
I am losing my mind. It's a simple scenario:
Entity definition (generated)
// this class is obviously generated by the designer, this is just an example
public class SomeEntity {
public int SomeEntityID { get; set; } // primary key
public String Property1 { get; set; }
public String Property2 { get; set;
}
.. in aspx file
<asp...
We are using in our company Telligent Community Server 2007.1 SP2, and we are having a LOT of timeouts from this tool, it is just not satisfying anybody.
Our CS was 2007 SP1, having many timeouts. So a person from Telligent suport suggested an upgrade to the current version, 2007.1 SP2. We did it, actually I think it is worse than befor...
I need to upload a file from the client to an asp.net page. The source page is not able to use the server side controls. Is this possible?
I have seen this question: http://stackoverflow.com/questions/569565, however this is using a standard input file control but a server side button. In my case I can't use a server side button.
Essen...