Given a stylesheet with a fully qualified reference to an image resource on another server, is there a good way to handle promotions through different environments that require a different base URL?
background-image: url
(evironmentSpecificURL/resourceName.foo);
The environmentSpecificURL will vary from environment to environment...
I have a button on my webform. Clicking this button will do an HttpWebRequest during the onclick event handler. After the request we copy the response from the request into HttpContext.Current.Response and send that to the client.
This web request can take a while (up to 5 seconds, since it's generating a report). During this time the u...
We run a .NET 1.1 application on W2k3 server. The app pool is configured to recycle at 512MB. However, a week ago it started to recycle every 2 minutes. Since we run a web farm, the anonymous user we run IIS with is a domain account.
About a week ago, that user account expired, and we have to re-enable it. Could that have caused any prob...
In ASP.Net, I have an XML file (within my project) that I would like to deserialize. FileStream objects do not allow you to open a file via URL.
What is the easiest way to open the file so I can deserialize it?
...
Imagine in the Global.asax.cs file I had an instance class as a private field, lets say like this:
private MyClass _myClass = new MyClass();
and I had on Global a static method called GetMyClass() that gets the current HttpApplication and returns that instance.
public static MyClass GetMyClass()
{
return ((Global)HttpContext.Curr...
I run into similar codes like this all the time in aspx pages:
<asp:CheckBox Runat="server" ID="myid" Checked='<%# DataBinder.Eval(Container.DataItem, "column").Equals(1) %>'>
I was wondering what other objects I have access to inside of that <%# %> tag. How come DataBinder.Eval() and Container.DataItem are not visible anywhere inside...
I am having a doubt in page_init, page preinit, load.
I need to know when we use this also where we need to call our objects in different stages of our life cycle.
Please let me know how they will process for each events raised
...
I'm trying to create a user control that allows users to make something like the following:
<uc1:MyControl id="controlThing" runat="server">
<uc1:BoundColumn id="column1" Column="Name" runat="server" />
<uc1:CheckBoxBoundColumn id="column2" Column="Selector" runat="server" />
<uc1:BoundColumn id="column3" Column="Descript...
I'm working with caching and persistence for the first time.
I have a user object that handles all my user data. Persisting this from page to page I'm planning on using a cookie with a token that then returns the user-object from the cache.
What's the best way to implement this. The two ideas/solutions that appear to me are:
1) Cache...
Anyone know how parse the DOM and determine what row is selected in an ASP.NET ListView? I'm able to interact with the DOM via the HtmlElement in Silverlight, but I've not been able to locate a property indicating the row is selected.
For reference, this managed method works fine for an ASP.NET ListBox
var elm = HtmlPage.Document.GetE...
I'm looking to add localization to a web site (asp.net /c# if that makes a difference) with a minimum of effort. I've looked at tools like wiztom multilizer and but I am curious as to others experience with them.
Have you used tools like these successfully and if so, what would you do differently?
Thanks!
K
...
Can I create a Controller that simply returns an image asset?
I would like to route this logic through a controller, whenever a url such as the following is requested:
www.mywebsite.com/resource/image/topbanner
The controller will look up "topbanner.png" and send that image directly back to the client.
I've seen examples of this wher...
I am using Windows 2003. I have mapped a web application into a virtual directory. This is built on framework 1.1 When i try to browse to the default page i get a error as
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and mod...
I can't find any information about this on either www.episerver.com or world.episerver.com, anyone knows?
...
Is there an event like onLoad....just at closing the Site (onClose)?
...
I have a HTML select list with quite a few (1000+) names. I have a javascript in place which will select the first matching name if someone starts typing. This matching looks at the start of the item:
var optionsLength = dropdownlist.options.length;
for (var n=0; n < optionsLength; n++)
{
var optionText = dropdownlist.options[n...
Hi, I have some problems on a site with the concurrent access to a list. This list keeps a cart of items, and multiple deletes are crashing the site.
Which is the best method to sync them?
Is a lock enough?
The lock option seems to be ugly because the code is spread all over the place and is pretty messy.
Update:
This is a list impleme...
I am actually loading a page as a modal dialog box as window.showModalDialog("url.aspx"). The first time the modal dialog is poped up the page load event gets called. When i close it and call the same again, the Control does not come to the PageLoad. Instead the page pops up with the previous values in all its controls.
I actually want...
When I disable ViewState for the page. It does not allow any other control to use ViewState .. even if I set EnableViewState="true" for that particular control ..
is it possible to enable ViewState for a control when ViewState is disabled for the page itself?
if not how can disable viewstate for controls on page except for few without ...
Hi guys, I am in the middle of implementing an application using ASP.NET MVC and would love to cache the data passed to user controls or the output rendering on some user controls that I render using the Html.RenderPartial, that way I don't have to query the DB with every request I do to the controller for a new view.
Thanks.
...