Asp.Net Mvc highlighting current page link technique?
Hello all. I need to highlight active link in the menu. My menu is in the master page by the way. I'm looking for the best way to implement this? Any ideas? ...
Hello all. I need to highlight active link in the menu. My menu is in the master page by the way. I'm looking for the best way to implement this? Any ideas? ...
Hi all, I'm trying to use WCF Data Service with Subsonic, but ran into this error when I try to access my "service.svc". I have 2 projects, one is a class library (called "OData") that has Subsonic t4 templates to generate the classes for my table. Another is an ASP.NET MVC2 project that references to the "OData" project. I then create...
I have the following HTML code: <div style="background-image:url(~/Images/MyImage.jpg); width:100%; height:100%"> I'm not too familiar with HTML, but form all the articles I've seen, this should work fine. If I show the image in an asp.net image control then it shows fine. However, I want to put text on top of it. Can anyone tell m...
I have the usual requirement of implementing Authentication and Authorization. I used to implement it using custom code where I have Users, Roles, Role_Pages, User_Pages, and User_Roles. So this way we can give a certain user roles (that group multiple pages) and/or directly define access to certain pages. All that with the ability to sp...
I'm just starting out learning ASP.NET. From what I understand, ASP.NET differs from old school ASP in that the logic code for a page exists in as separate file rather then being embedded in the ASP page. So when a user requests a page like ShoppingCart.aspx the server reads the directive at the top ... <%@ Page Title="" Language="C#" M...
I am trying to build a class like so... public class IoCControllerFactory : DefaultControllerFactory { protected override IController GetControllerInstance(RequestContext request_context, Type controller_type) { // Attempt to resolve controller type. IController resolvedControll...
As mentioned here. http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx Is there another way to do this? By just modifying the application's web.config file? ...
Hello I have a repeater: <asp:Repeater ID="rpt_Items" OnItemCommand="rpt_Items_ItemCommand" runat="server"> <ItemTemplate> <div class="item"> <div class="fr"> <asp:TextBox ID="tb_amount" runat="server">1</asp:TextBox> <p> ...
For some reason none of these DIVs render disabled. Oddly enough, when I set Enabled="False" on the .NET Panel, then it renders the Panel as a DIV with disabled="disabled", which works great. Here's my doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...
I have a ASP.NET MVC 2 app I am building and users are allowed to post data in certain sections. I would like to display the "Posted At" in the same format that Stackoverflow and Facebook do. i.e. On this site when I post this question it will display "asked 3 seconds ago" then "asked 3 mins ago" and after a few day it will display the...
Over the past 6 months I've been developing web sites using asp.net. When I design something such as a contact form, 99% of the time I find myself using a script manager and update panels. Recently I tried out silverlight and expression blend, and I love it. Is there any big cons for me to start building my forms with silverlight instea...
Hi, I have a dropdown inside a webusercontrol which I want to use on 5 pages. I want to save the selected value of the dropdown from the page. I tried to access it using below method, but its not working http://stackoverflow.com/questions/2367957/finding-and-accessing-elements-of-a-webusercontrol on webPage its not don't show the me...
Hi guys, I want to build a high traffic video site, which has many videos and visitors, using ASP.NET. But I have no experience of high traffic sites and video sites. Anyone can give me some stuff to read or some keywords for me to google? In the performance point of view. Many thanks :) UPDATE: I said our site is similar to Youtube...
Did you use or programmed such a web application? There are plenty of job boards in php, but do you know any in asp.net mvc? Thanks. ...
Coding with ASP.NET 3.5 C#, jquery.1.4.2, jquery-ui-1.8.2 My textbox is in fourth asp:View of an asp:MultiView which is not active on PageLoad. My Page is also a content page with a master page. The textbox is created like <asp:TextBox ID="txtStartDate" runat="server" CssClass="datePicker" MaxLength="20" Re...
It's easy to bind a data source to something like a gridview or repeater, but how would I do it with a label? Heres the sql connection that I want to modify. By the way, I don't need 2 way binding. public void Sql_Connection(string queryString) { SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.Connec...
UPDATE: Probably should model my database to my objects correctly first! Found this tutorial http://www.codeproject.com/KB/linq/linqtutorial.aspx so should probably ignore this question! Hi All, Apologies if this already has a thread but I cant seem to find the answer I am looking for. I have an object Communication Type: [Table(Name ...
I have the following TR in HTML and i using JQuery <tr class="RowDiv" id="tempTR" runat="server" visible="false"> <td> <div class="LabelDiv"> <div class="dfltTxtBld"> ID<span class="reqChar" runat="server" id="Span1" visible="false"> ...
Hi, I have a Table with a foreign key FK. FK takes its values from another table that is already filled. What I want to do is to show a DataGridViw that has already the values of FK filled-in so the user can just type in the remaining values and commit to the database. So for example if FK takes the values 1, 2, 3 and 4. The DataGridVi...
i want to create asp.net webforms, contain single multiple choice question on a form using formview que. and ans. from sql server table(sqldatasource). please give me a basic idea thanks ...