asp.net

ASP.NET Menu Parent Menu Item Highlighting on Hover when Flyouts are enabled.

Hi, I have a ASP.Net Menu Control with three levels and flyouts enabled. I want to highlight the parent items (right upto the top level parent) whenever a user hovers over the menu items. I do not want to use a client side solution as described here: http://www.codeproject.com/KB/webforms/AspMenuParentHighlighting.aspx Is there an ele...

How to store an ASP.NET master page in a common library?

We would like to have several internal web applications which use the same master page. Is there a way to store a master page in a common library referenced by all projects? ...

Page View Counter like on StackOverFlow

What is the best way to implement the page view counter like the ones they have here on the site where each question has a "Views" counter? Factoring in Performance and Scalability issues. ...

How do I get 'footer' content on a master page to push down when main content requires it?

Been a while since I've dealt with ASP.NET and this is the first time I've had to deal with master pages. Been following tutorials everything is fine except a problem I'm having with the footer. The master page has divs for topContent, mainContent and footerContent. In mainContent I have a ContentPlaceHolder. The default content page...

Get javascript version from browser !=IE in asp.net

In my current logging class I log the browser, browser version and javascript version. The Javascript version I get through HttpContext.Request.Browser.JScriptVersion This works fine for IE, but not for any other browser. Is there another way (not javascript based) to detect the installed javascript version? ...

Should I build my next web app in ASP.NET MVC?

My team is considering building our next web app using the ASP.NET MVC framework. I am slightly hesitant, as are some others, because it is still only in beta. I really want to dive in because it seems to be a great way of providing clear separation of concerns and improving testability. Should I take the plunge now, while MVC is st...

Load multiple external websites into one webpage via re-using ONE IFrame + Ajax

I am trying to embed multiple external websites into one web page. Using an IFRAME works ok, but once you get past 10 embedded iframes, the memory fottprint starts to get too big. So I was thinking, is it possible via ajax/javascript, to re-use the same iframe to load the collection of websites one after enother, and display the result...

ASP.NET : Binding textbox maxlength to Class constant in HTML

I am attempting to allow my web designers to use the metadata we have about database fields in the asp.net pages they are creating. The most obvious one is as follows: <asp:TextBox runat="server" id="txTextBox" MaxLength="<Value From Metadata here>" ... /> All the required metadata is stored in our class objects and is accessible due ...

How to force NHibernate to recognize db changes not made through NHibernate

I am implementing NHibernate into an existing web application. However, we have some other processes that do bulk inserting and updating on the database. How can I make NHibernate aware that changes are occurring on the backend db that were not initiated through NHibernate? Most of the info that I have read around NHibernate use in asp....

ASP.Net Validator Default Style

I'm using several variants of the Validator controls (RequiredFieldValidator, CompareValidator, etc) and am using the CssClass property of the validator. I can see (via Firebug) that the class is being applied, but the validator control itself is adding a style element to it, namely color: red. But I don't want that. I want the contro...

ASP.NET Forms Authentication - Logging off

How exactly can one implement a Log off function when using ASP.NET Forms Authentication on an intranet application? How will this work if I am an administrator and want to log in "as someone else" into the application? Please share your ideas ...

Alternative UI control for large data lists instead of DropDownList

I am using C# and ASP.NET with version 2.0 of the .NET Framework library on this particular project. We are also using the AjaxControlToolkit. The AjaxControlToolkit should have the controls available to make a descent User Interface solution to the problem I'm facing. I have run into this in a few projects in the last year, and used...

How to specify the namespace when referencing a table in a dataset

I'm loading data into a DataSet from an XML file using the ReadXml method. This results in two tables with the same name. One of the tables has a namespace and the other doesn't. I'm trying to reference the table with the namespace. Can anyone tell me how to do this? Dim reader As XmlTextReader = New XmlTextReader(strURL) Dim...

using MVC view page + $(document).ready

Hi, I've editing this original question as I think I've narrowed down the problem... I have one view in my site that will not let me put $document.ready within a masterpage contentplaceholder. I've stripped this page to the bare bones and the only thing that is special about it is it has a custom route in global.asax routes.MapRoute(...

ASP.NET aspx page code runs impersonated though impersonation is disabled

I have a blank test app created in VS 2005 as ASP.NET application. MSDN says that By default, ASP.NET does not use impersonation, and your code runs using the ASP.NET application's process identity. And I have the following web.config <configuration> <appSettings/> <connectionStrings/> <system.web> <!-- ...

Running Command line from an ASPX page, and returning output to page

I'm trying to access the command line and execute a command, and then return the output to my aspx page. A good example would be running dir on page load of an aspx page and returning the output via Response.Write(). I have tried using the code below. When I try debugging this it runs but never finishes loading and no output is rendered....

Can a gridview bound to a custom object (CSV file) be sorted?

Hi, I have a Datagrid which is getting its data from CSV. No file is sorted in any order, but I want to order the gridview by Username (a field). How could this be done? My XML/gridview code looks like the following: Streamwriter for writing to csv and populating gridview: string filename = @"D:\www\isolated\LocalUser\cc-suppressi...

How do you graph with Silverlight inside a ASP.NET v3.5 application?

I have the need to do some graphing (bar, chart, pie, trend) and instead of using Infragistics or manually drawing the graphs I want to use Silverlight. My current ASP.NET application was upgraded to 3.5 and I have added a Silverlight Application project. Consuming the output inside of the existing master.page layout or inside of user ...

In DotNetNuke, how can I get a ModuleInfo object if I just have a ModuleId (and not a TabId)

The only method provided by the DNN framework to get a module by ID also required a tab ID. What can I do if I don't have a tab ID? ...

Binding DataList Containing Checkboxes to a Dictionary

Hi. I have a DataList like so: <asp:DataList ID="dlMyList" runat="server" RepeatColumns="5" RepeatDirection="Horizontal" CellSpacing="5" > <ItemTemplate> <asp:CheckBox ID="cbMyBox" Runat="server" Text='<%# Container.DataItem%>' ToolTip=''></asp:CheckBox> </ItemTemplate> </asp:DataList> I'm binding this to a D...