I'm considering the use of the 'globalization' web.config section in our ASP .NET application to provide a default culture to be applied to all requests. In some cases, we'll be overriding this value programmaticly during the 'AcquireRequestState' event, but I'd like to know at what stage in the request life cycle the 'culture' and 'uiCu...
Hello. Is it some difference in ASP.NET Page Life Cycle comparing NET 3.5 and NET 4?
...
I'm creating a small image upload validator for this printing company, they need to make sure that an uploaded image has a color space of either CMYK or PMS.
This is what I'm using right now:
Image img = Image.FromStream(fupFile.PostedFile.InputStream);
ImageFlags flags = (ImageFlags)Enum.Parse(typeof(ImageFlags), img.Flags.ToString())...
Hi Everyone, I need to extract some text from a HTML table
I tried using
tblGridHeader.Rows[0].InnerText.ToString()
But I'm getting the error of
"HTMLTableRow" does not support
InnerText property.
I also tried InnerHTML, and still no go.
I did try using the cells property, but I'm getting an error of
Specified argumen...
I was wondering if I could add a user control to a page with a parameter and then access that parameter in the code behiind for initiallization.
For example on my aspx page i would have somethign like.
<%@ Register TagPrefix="uc1" TagName="myMap" Src="~/Map.ascx" %>
blah
blah
blah
<uc1:myMap ID="myMap1" runat="server" DefaultCountry=...
I have 2 app pools one for asp.net 2.0 one for asp.net 4.0
does doing an iisreset recycle these pools? or do I have to recycle them by hand?
...
So I want to put the files up on my local server, for reference purposes and aside from my regular DVCS because this will turn into training material later. But I want to be able to pretty format the SQL file. (Would be nice if it extended to C# code as well.)
I'm not sure what libraries do this already, and I'm willing to bet there's a...
Hi, I plan on allowing a user to open a modalpopupextender containing a gridview witha Filter text box. I want it so when the user types in a filter, the filter is applied to the gridview and the contents of the gridview is then updated to reflect the applied filter - all without posting back. Also ideally the gridview will be filtered a...
Hi, I have a usercontrol which is used for searching. There is a textbox and a search button. When the button is clicked the search method is called. I want the search also to occur when the cursor is inside the textbox and the enter key is pressed.
My first thought on how to do this was maybe to add the event to submit action of the fo...
All, I would like to create a gridview list with the same behavior as SharePoint's lists. I want to be able to group items togather and have groups collapesd.
I want to use keep it simple.
I wouldnt mind using the Accordion that comes with jQuery: http://docs.jquery.com/UI/Accordion
Bill.
...
Hey all..
I am using MS Test to test one of my controller's actions. This method uses the ConfigurationManger to read appSettigns from the web.config. For some reason ConfigurationMangager is not able to find the appsettings. In NUNIT I would just make sure to add a copy of the webconfig file to the test project so that it is available ...
I know I'm doing something fundamentally wrong, but I can't quite figure it out...
I have 2 resource files in my App_GlobalResources folder: Global.resx and Global.fr-CA.resx.
I have the following label on my webform:
<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Global, Test %>" />
When I run the form, it displays the v...
OK, I'm sorry if the tile of the question was unclear, and if you understand what I mean, please don't hesitate to help me think of a better one.
Anyway, I have a <input type="submit"> element for my form, and I want it to return the same URL as the URL of the page the element is on.
Currently, if I click the button, it takes me from /...
I was stepping through some code and hit a method I wanted to see the code for. I clicked on 'go to definition' and it would usually take me to the method definition, but now it takes me to what appears to be an auto generated [from metadata] class. I've never experienced this before. What's going on and how do I get the old functionalit...
I have a sitemap file in my project. None of the links on this file are contained on our server. They all are located on another project. We need this sitemap to mimic the navigation of the original site.
Right now the url is setup like this:
url-"~/folder a/file.aspx"
What I would like to do is dynamically change the server loc...
So I have an ASP.NET web site (not web application) I'm making in VS2010 with C#. It runs fine on my machine, but when I upload it to the site it's hosted on, it won't compile, giving: "CS0246: The type or namespace name 'DataAccess' could not be found (are you missing a using directive or an assembly reference?)"
I've been using the co...
I have the following code for use in my asp.net website:
CalendarService service = new CalendarService("mycalendar");
EventQuery query = new EventQuery();
query.Uri = new Uri(group.GroupEventsURL);
query.SingleEvents = true;
query.SortOrder = CalendarSortOrder.ascending;
query.ExtraParameters = "orderby=starttime";
query.NumberToRetriev...
In order to improve speed of chat application, I am remembering last message id in static variable (actually, Dictionary).
Howeever, it seems that every thread has own copy, because users do not get updated on production (single server environment).
private static Dictionary<long, MemoryChatRoom> _chatRooms = new Dictionary<long, Memor...
I'm working on someone else's code and found something very interesting and hoping someone might know how this is happening.
In the markup file, I place a TextBox control and a DropDownList control, and assigned both of them the CssClass of InputField which changes the background color and other cool stuff.
To avoid any doubts, her...
Using the Microsoft.Samples.ReportingServices.ReportViewer, I am showing multiple instances of the same SRS report on the same aspx page using IFrames (which is what the ReportViewer renders as.) Each instance has different parameters passed to it, so the output looks different on each instance of the report.
My issue is that in Interne...