asp.net

asp.net mvc+subsonic

hi all i am making an application using asp.net mvc+subsonic on northwind data base i have created view (edit ,delete,create) every time i try to edit any record from employee table it gives me an error it said "(item that i had edited)+syntax near employees" i debug my code and i c that it doesnt return any result so it always go to ...

Developer tool for configuring IIS6

edit: IIS6; I'm not sure IIS7 is an option in the immediate future... From a developer angle, I am constantly changing my IIS settings, or need to merge settings from other teams into different VMs. The "Save Configuration to Disk" has never really worked well for me. Because we are making lots of small changes, web installation projec...

Can I have a Switch Statement with more than one Case Criteria?

Can I have a switch statement like this: ... switch (temp) { case "NW" or "New": temp = "new stuff" break; } ... ...

Inheriting DropDownList and adding custom values using its DataSourceObject

I'm inheriting a DropDownList to add two custom ListItems. The first item is "Select one..." and the second item gets added at the end, it's value is "Custom". I override DataBind and use the following code: Dim data As List(Of ListItem) = CType(DataSource, List(Of ListItem)) data.Insert(0, New ListItem("Select one...", SelectO...

Hiding master page preview in design view?

Is there an option in VS2008, to hide master page preview in design view? ...

Accessing Events And Members In The Master Page

I have an event in the Master page that I want to access in the pages that use that master page but it doesn't seem to be working. In the Master public delegate void NotifyRequest(object sender, EventArgs e); public class MyMaster { public event NotifyRequest NewRequest; protected void uiBtnNewTask_Click(object sender, EventArgs...

ASP.NET - Dynamic ModalPopupExtender

Hello, I have an ASP.NET page that has dynamically created LinkButton elements. Please note that these LinkButton elements are not added to a DataGrid, GridView, or Repeater. When a user clicks on one of these LinkButton elements, I want to display a dialog box. To accomplish this, I was attempting to use a ModalPopupExtender and set i...

How should I ask for fee charge of developing one ASP.NET website?

I have a customer who wants me to develop him a website which is related to health. The website will provide only the information about health only. The main structure of the site will be similar to MSDN library which user can search the menu on the left side and break into subcategory which can be update in the database, and at the righ...

How Do I filter Generic List<> with Object of same Class

I have scoured the internet for this answer and asked several developers and have come up short. I have a Class called StaffingPositionsDataContract that I am loading mock data (for now) into a List<> and returning to a page. This is working great, but now I need to filter the list based on another list of values that are inputted on t...

Is there a way to have a Calendar Extender Restriction?

I have a calendar extendar issue that I seems tough for myself. I am trying to restrict my nifty feature to display the current month and the month prior ONLY. Is there anyone who can help with that? if possible ...

How do I Dynamically Load Assemblies Not on Disk into an ASP .Net Web Application?

I'm writing a prototype to prove the feasibility of something I'm working on. Basically, it requires loading assemblies not on disk into an application domain. On the surface, it sounds easy. In fact, it's child's play in the WinForms world where a process is a process. For the ASP.Net Web Applications, it's a bit squirrelly. I've g...

can an asp.net page send an email to the user

My aspx page is hosted by Discountasp.net. I can use System.Net.Mail.MailMessage to send an email but it seems it must be TO my Discountasp.net acct. (They let you set email accts for your site.) I want a form that does a calc and sends the info directly to the user who has typed in their email addr. ...

PasswordRecovery using email instead of UserName

Hello, Rather than forcing users to remember a UserName, I would rather have them enter their email address and have the password reset and sent to them. I am using ASP .Net PasswordRecovery control under the membership provider. Right now the system works fine, it resets the password and sends to the user. However, I find that many ...

Is there a way to use a Dictionary-like collection as an Application Settings object?

I'd like to store a set of key/value pairs in the application settings of my ASP.NET web app, but I'm not finding a straightforward way to do that. For example, these two questions tell me that StringDictionary etc. won't serialize to XML and suggest that I'll have to roll my own implementation. But it seems like this should be easier ...

Adding empty string to RadComboBox

Guys, I have a webpage that has a Telerik RadComboBox on the page. One of the properties of this ComboBox is EmptyMessage, which fills the combobox with a message when an item is not selected. I am binding my combobox to a datasource at runtime and for some reason, it wipes this EmptyMessage away. Is there a way to keep my data items in...

Gridview RowUpdating event not firing

I have a Gridview with AutoGenerateColumns="False". I am using a TemplateField to display my Edit, Update and Cancel 'buttons' in the first column of the GridView within respective ItemTemplate and EditItemTemplate fields. Within the ItemTemplate I have an ImageButtong with a CommandName of "Edit". This works as expected and I can put a...

By default, does ASP.NET Login Control use the ReturnURL to redirect?

If I drop a System.Web.UI.WebControls.Login onto a page, should it redirect to the ReturnURL by default? Or do I have to set some config settings or write some code to make this work? ...

Prevent AspxGridView from populating on loading page

I have AspxGridView on my page. I want users to be able to set up some data on the web form, and after they press one button, the data from screen is being read, validated and bussines object is being created. This object has a GetData() function, and returns an array of objects representing rows in a grid. I want ASPXGrid not to popul...

Master pages -- Getting calling page name

Can someone tell me how to get the name of the child page being called in a Master page scenario. For example, if I have the following masterpage: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans...

Jquery user control

I have a problem with jquery not loaded in an asp user control. I want simply to add the click event when a checkbox is clicked. Here is my javascript file $(document).ready(function() { var arr = jQuery(":checkbox[id*='drpAccountType']"); for (i = 0; i < arr.length; i += 1) { $("#" + arr[i].id).click(function() { ale...