asp.net

How do you manage hundreds of "shapes" with a LINQ-based model

Hi All, I have a relatively modest dataset (probably 20 main tables) but it's queried a lot of different ways. Sometimes we show a product. Sometimes a product with it's picture. Sometimes a product with it's picture and comments. Sometimes a product with it's picture and all of the users that have the product and their pictures. ...

asp:CheckBoxField in GridView - VS 2008

I have a gridview control bound to an object data source. in addition to the columns that i want to display i want to display this <Columns> <asp:CheckBoxField DataField="Locked" Visible="true" AccessibleHeaderText="On Hold" ReadOnly="false"/> </Columns> Couple of questions here: 1. If I do the above said, my page loads and...

PageMethod Not Updating - Requires Project Rebuild to be Updated

I am using the AJAX Toolkit: <ajaxToolkit:CascadingDropDown ID="CategoryDDL_C" runat="server" TargetControlID="CategoryDDL" Category="Main" PromptText="Please select a category" LoadingText="[Loading...]" ServiceMethod="MainDDL" /> And for the Service Method: [WebMethod] [System.Web.Script.Services.ScriptMet...

How to not show BaseValidator.Text when using a ValidationSummary in ASP.NET

I'm using a bunch of different asp.net validation controls on a web form. Some of these have their Text property set to things like "* Error" or "You missed these fields". However, a few of the CustomValidator controls have blank Text properties. I left them blank on purpose because I'm adding the ErrorMessage dynamically depending ...

Restaurant back-end systems and .Net

How would I programmatically connect to an existing back-end system of a restaurant using say Micros POS, with a web app built with .Net and C#. Thanks. Update: Sorry for the ambiguity but I'd like to set up an online ordering system that takes users' orders and forward to a restaurant's back-end system to be processed and printed in th...

Free Time Tracking Web Application

Are you aware of any good time tracking web application (hosted, download) that is free or open source? I am looking for something to track the time I spend on projects and bug fixes. I am already looking at ASP .NET 2.0 Time Tracker Starter Kit but wanted to see if there is anything else out there or should I write my own application....

Talk on ASP.NET

A friend of mine's company is considering using either Java or ASP.NET for web development. Currently they do all development in Delphi. As they have no experience in .NET they have asked me to come down and give a 1 hour overview of .NET (mainly ASP.NET). What topics should I cover? ...

How do I send a binary blob to a client browser?

Hi, Pardon the dumb newbie question here; web programming isn't my forte... (blush) I have an aspx page running on a web server. I have a blob (byte array) containing any kind of binary file, plus a file name. I would like to push this file to be downloaded through the browser onto the client, and opened using whatever application is...

How to tell to Search Engines that 2 domain names are the same website?

If I have 2 domains names that points to same website. By example: microsoft.com and microsoft.net both points to microsoft.com. How search engines can distinguish that these 2 websites are the same websites and not a duplicate content? My question is because I know that Google, by example, have an duplicate content filter, and I want...

project publishing to windows web server 2008

I am working with a Visual Studio 2008 (C#) project on Windows XP Pro. I am trying to publish that application using "Publish Web" wizard to a remote server which is Windows Web Server 2008 OS. But the publishing fails every time with following error: Connecting to http://XX.XXX.XXX.XX/... Unable to create the Web site 'http://XX.X...

Saving CheckBox control values

Hello everyone, I am using asp.net and I am trying to save checkbox values into a database. Multiple checkboxes may be entered into the same field in the database. So for instance I have two checkboxes with names "Comma" and "Hyphen" and if the user checks both of these then the database will store the values ',','-'. How do you do this...

How to assign Profile values?

I don't know what I am missing, but I added Profile properties in the Web.config file but cannot access Profile.Item in the code or create a new profile. ...

Beginners guide to learn how to use Subversion with Visual Studio

What's the best way for me to learn how to use Subversion as a source code control for my Asp.Net Web Projects? I haven't had much contact with source control before; however I have a very basic understanding of its features, so I'm looking for a way to learn the best practices. Any tip will be very appreciated. ...

How do I control the format MembershipUser.ResetPassword()

Is it possible to control the format of the password that is automatically generated by a call to MembershipUser.ResetPassword()? I want to be able to allow or not allow certain special characters in the generated password. I am using the SqlMembershipProvider with a password format of Hashed. Thanks. ...

Can you set the value for the selecteddatakey of a gridview from codebehind?

Currently I am highlighting the rows on my gridview through code behind. The problem is when I inserted a new data through formview, I put the highlight on the new data but if you click edit or delete if would go for either the first data on the grid if you have not selected anything yet or the last data you have selected. Thanks. ...

How to set the Principal in an ASP.Net app

I am writing a web app for a client. Users will have a one-time key that they will use to initially identify themselves to the app. Once the app verifies that the key is valid it will take them to a page where they can create a normal account to use for all subsequent logins. The create-account page should only be accessible after enteri...

Are functional languages and programming models like MVC just the next big fad?

Of late, I've been hearing many good things about functional programming languages such as F#. Additionally [and unrelated], I'm also noticing MVC is starting to get a lot of exposure - perhaps since the introduction of Silverlight/WPF. I've never been one for jumping on a bandwagon without first doing my research - in fact it took me ...

Binding ASP.Net Menu Control to a Collection

hi everyone, i am trying to use this code to bind my asp.net menu control to a collection.. but its giving me an error that my collection is now IHierarchyEnumerable.. which I understand why too.. StringCollection sc = pos.getAllmembers(); Menu1.DataSource = pos.getAllmembers().GetEnumerator(); is there a way around this.....

Passing a string as an argument to a controller

I know this is probably really obvious, but I cannot figure out why I cannot pass a string argument to a controller like one would an int. e.g. //controller/action/2 public ActionResult Action(int someInt) { //somenumber != null } but when i pass a string in like this... //controller/Action/x9294kskw public ActionResult Action(strin...

Proper Variable Declaration in C#

I noticed some people declare a private variable and then a public variable with the get and set statements: private string myvariable = string.Empty; public string MyVariable { get { return myvariable; } set { myvariable = value ?? string.Empty; } } and then some people just do the following: public string MyVariable { g...