asp.net

dropdown list in edit and read-only mode

Hello i have a dropdown list in edit mode and read only mode. If users upload pictures, i want them to chose a category for the uploaded pics and display it in a gridview as below.(See Picture below). When i include "SelectedValue='<%# Bind("CategoryID")" in edit and item template mode, i get this error "'PictureReadOnlyCategories' has a...

ASP.NET: Question about the column-line-wrapping feature in gridviews

I have a ASP.NET gridview (embedded in a DIV) with several columns. For some columns line wraps are definied and for some not(with ItemStyle.Wrap = true/false). For all columns ItemStyle.Width is set to a specific value. Now I am wondering, that there is a line wrap in a column, where ItemStyle.Wrap = false. What could be the reason for ...

Repeater does not fire ItemCommand event

I searched the web on this topic and got plenty of suggestions from every one (including other stackoverflow threads). Finally, I thought implement as shown exactly here. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.onitemcommand(VS.71).aspx Still frustrated. My repeater is available in a user control an...

jQuery AutoComplete missing?

I was building something using jQuery's AutoComplete plugin last week, but today I found that it's not working. After some debugging, it seems that the external scripts I've been loading no longer exist: http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.bgiframe.min.js http://dev.jquery.com/view/trunk/plugins/autocomple...

Virtual folders work differently in VS 2008 between Windows XP & Windows 7

Easier to demonstrate this with two screenshots, the first Windows XP, the second Windows 7: http://www.picpaste.com/Virtual_folders1-4tCBM9lK.PNG http://www.picpaste.com/Virtual_folders2-pboFc6vf.PNG In Windows XP, VS 2008 spots the virtual directories and doesn't display or even look at the contents of the virtual directories in the ...

Ninject.Web (webforms extension), injecting outside of a webform page?

I've been using the Ninject.Web extension to inject business objects, repositories, Entity Framework context etc into my application. This works very well using the [Inject] attribute which can be applied within a webform that inherits from PageBase. I am now running into a snag as I am trying to write a custom membership provider that...

SQL Server timeout caused by w3wp.exe crashing

Hello, I have a ongoing issue with my website, where it appears the W3wp.exe crashes and in turn anyone attempting to connect to the site will receive a SQL server timeout error. The error is this... System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is no...

How do I stop a databound dropdown list from htmlencoding?

ddlCats.DataSource = listOfCats; ddlCats.DataBind(); If an item contains say, &, it will appear in the ddl as &amp; How can I stop this? I am using asp.net ...

How do I need to show the Selected Account in the Dropdownlist box using Asp.net mvc

Hello Friends, I have this code in my View.. <tr><td>Account:</td><td><%=Html.DropDownList("drdAccounts",Model.AccountsListHeader),Model.selectedAccount,"Select Account", new { onchange = "JavaScript:AccountChanged()" })%><span class="requiredAsterisk">*</span></td></tr> But I am getting Error Description: An error occurred during t...

Linq-to-SQL: Use a shared transaction between LinqDataSource and DataContext?

Hello all, I have a page where I use two ASP DetailsView controls to render data from two different, but related, LinqDataSource objects. My primary table is represented in the first DetailsView/LinqDataSource set, and I use the LinqDataSource's built-in update functionality to persist changes when the DetailsView is in edit mode. The p...

customer web site admin tool

How do you create your web site data admin for your customers. Do you do them programatically or do you use any specific tool? I have been using AspMaker and is not a bad option but I'm sure there are a few more options out there. I've seen that MS has a Web Data Administrator but for me it looks more than an sql server web admin tool r...

Error in HTTPS for a self signed certificate.

Hello all, This is in VS 2005. And IIS is 6.0. I am trying to use Self signed certificate for HTTPS. In the code i am redirecting from http to https for few pages. It is nt working fine. And in the IIS manager, for each page that i want HTTPs, i have changed its setting by checking "Require Secure Channel(SSL)" and "Require 128 bit encr...

asp.net ajax client side framework

Hi, I am completely new to AJAX for ASP.NET. How do I check if AJAX client side framework is installed on my server? I am using Visual Studio 2010 and ASP.NET target framework is 3.5. If it is not installed then is it free to download and install for ASP.NET 2.0? Detailed help would be much appreciated. I am facing the following probl...

Error 500 even with customErrors = off

Hi, I've just uploaded an asp.net web project to a Fasthosts shared server (yes, I know!). The site works fine on a different server, and builds successfully. However, when I upload it (or even just the files in the App_Code folder) to the fasthosts server, I just get a flat error 500 message. I've ensured that the web.config file in...

caching in asp.net

Could some body expalin me caching in asp.net? I am just confused on the point that in caching a compiled page is kept on the server of a executed page which is reused on same page request. I read on the internet but theory doesn't clear my doubt regarding how exactly the caching works. So please enlighten me on this. Please provide me ...

How and when to perform ASP.NET server side clean-up operations

I have an ASP.NET website with ASPX pages and ASMX web-services. I want to perform a server side clean-up operation which can be relatively time-consuming (deleting temporary files). For reasons I won’t go into, it is important that no requests (ASPX or ASMX) are processed whilst this operation is in progress. Ideally I’d like to perfo...

LinqDataSource - is default insert parameter with dbnull value possible?

I need to do some simple (or so it seems) databinding and CRUD type operations on an ASP.Net page. I'm using a LinqDataSource connected with a FormView. The table that i'm trying to insert into has default contraints for these fields: [Created] [datetime] NOT NULL [CreatedBy] [nvarchar](50) NOT NULL [Modified] [datetime] NOT NULL [Modif...

How to draw text onto a jpg and resave it using system.drawing in c#

Anyone have good example of how to write text onto a jpg image and resave it using System.Drawing in .NET? ...

asp.net application - configuration implementation.

I am working on a web app that will heavily rely on configuration. The configuration is also will be written by another process or human. I am looking to get response on best practices in .net 3.5 on how to implement this case. I had used the configuration section of an early version of the Enterprise Library Applications Block. I really...

HTTPS with a self signed certificate!

Hello, I am using a Self signed certificate for HTTPS. I have it ready. Could someone please tell me what should be changed in IIS and also what should be changed in the code for https to come into affect. I need https for some pages(not all). Thanks in advance!! ...