asp.net

I don't have ListView in toolbox, intellisense, and doens't work in code

I am using ASP.NET v3.5 and Visual Studio 2008. For some reason ListView doesn't appear in my toolbox, it doesn't show up in intellisense when coding, and if I try to include one anyways I can't access it from code behind (will give error saying it isn't declared). What am I missing here.... where is my listview!? Update: I have v3.5 ...

File upload only pictures

I am using the fileupload control in asp.net. I want the browser to only show pictures. I am currently using validation to ensure they only select images but how can I make the browser only search for images? ...

C# LinkButton.PostBackUrl - New window without JS

Hi! Is it possible to use asp:LinkButton without JavaScript to open new windows? Currently i have workable next code, but with JS. <asp:LinkButton ID="lnkPcName" runat="server" OnClientClick="window.document.forms[0].target='_blank';" PostBackUrl='<%# Eval("ComputerId", "ComputerInfo.aspx?ComputerId={0}") %>'><%# Eval("pcName") %></asp...

Find nested User Control

I have a user control within a user control. I want to reference the nested user control from the code-behind of a page using user control #1. And user control#1 has nested usercontrol #1 ...

Best rendering engines for web applications

I am load testing web applications to compare performance of different rendering engines with the goal to rate NDjango view engine (an implementation of the Django Template Language on the .NET platform NDjango ). I compare Django with ASP and ASP.MVC rendering technology. Can you recommend me some other rendering engines that really ...

ASP.NET calendar drawing control

I want to make a simple ASP.NET page that draws a months from a calendar and highlights given dates. (I'm not looking for a date picker.) What I have is a list of DateTime values and I need to display them a a nice way. Given that I'm a total beginner with ASP, simpler really is better. (I'd rather not, I'm willing to hack together some...

DDD or old fashion ?

We are about to design a site for rentacar reservations using asp.net. There is a change that the application will scale up and I was wondering what if using DDD would help in maintenance and performance. I was wondering on what if there are new similar sites designed using datasets and SPs or DDD. So my friends to DDD or go old fashion ...

Dynamically adding combobox in DataList / Listview

I have a web page where I have to let the user dynamically add /remove comboboxes. I have a page I did a year ago where I used a datalist control to hold all the controls. Is a listview control any better? or is there a better approach? ...

ASP.Net Webforms: Can a RequiredFieldValidator be listened to? (Event)

Basically is there a way to hook into when a RequiredFieldValidator does what it does? Like validator.ValidationCompleted ? Normally for script controls, you can create an expose events so that you can listen to them from other controls, and I was asked if this is possible for the build in validation controls in asp.net but couldn't co...

Trouble getting to PayPal Buy Now Buttons to work on a single page in ASP.NET

I confess I am a noob to asp.net and web forms. I'm having an issue incorporating a few PayPal Buy Now buttons on a single page. Basically, the problem is no matter which "Buy Now" button is clicked, the user is taken to paypal to buy the product represented by the last button on the page. The code for my first button is something l...

deserialise json server side

How can I de-serialize a json object sent from javascript (using jquery.ajax) to a .aspx page (not a web service)? e.g. if I have the following json object; var json = {"name" : "michael", "surname" : "brown", "age" : "35"} and I use $.post('process.aspx', json) how do I get to deserialize the json in process.aspx code behind? al...

Umbraco -- controlling access to media by membership

I need to set up access to media files with the following structure: A media folder is designated as belonging to a specific member group. Then, a sub-folder below that needs to be available to a subset of members from the parent's member group. Any thoughts on how this can best be accomplished? I'll render the actual file download links...

Cannot access custom properties on nested user control

Ok, please understand the architecture here first. OurMasterPage.aspx has user control Header.ascx Header.ascx has a user control in it called LandingPageTopNav LandingPageTopNav.ascx has a public property named "LandingPage" that is there to be able to set by the user using this control. And I have a Third.aspx page in which I ne...

My existing webparts won't work in SharePoint

I have a standard ASP.NET 2.0 website. It has a webpage page. I have a webpart in my Company.Web.dll that I display on my webpart page on my website.All is good!!! I would like to use this same webpart in SharePoint 2007. I have a "site definition" project in VS2008 using Extensions for SharePoint 1.2. I have tried various ways to add...

User Login session variable filtered

good day, this is my problem- i have a small website in which i would like to display photo art(.jpg files) for different clients. i am using asp.net vb with sql2005 express-i was unable to find a simple way to upload and download the jpg(which would be associated with the rest of the client info name, description of jpg ect.) so i would...

Alternative to Response.TransmitFile for transfering files via HTTP

Hi Guys, I'm working on a ASP.NET website that allows users to download files. Previously the files were stored on the same server as the website so we could do: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\""); Response.AddHeader("Content-Length", response.ContentLength.ToString...

CSSFriendly Problem just after publish to web server

Hi every one! I created a website and used css frienfly adapters for Menu, TreeView and GridView, all was correct, but after publishing it to my great web server, the menus and treeviews didn't load and there is just some bullets! Please help me, what should I do? you can see my work: http://jds.cot.ir left side I have a menu which d...

Add div above textbox without changing position of textbox

I need to add some HTML content (images, labels, etc.) above a table cell that contains a text box. There are going to be at least 10 rows per page with 8 columns in each row. All 8 columns contain a text box. I've already put together some jQuery that will show and hide this new content area above the table cell, but the CSS is not c...

What Causes "Internal connection fatal errors"

I've got a number of ASP.Net websites (.Net v3.5) running on a server with a SQL 2000 database backend. For several months, I've been receiving seemingly random InvalidOperationExceptions with the message "Internal connection fatal error". Sometimes there's a few days in between, while other times there are multiple errors per day. The ...

Creating reusable UserControl assemblies with VS2008

Is there a recommended process for creating reusable ASP.NET assemblies that contain UserControls that can be shared across projects in separate solutions? We have currently have a set of post-compilation steps that run aspnet_compiler.exe on the project, generate the precompiled assemblies using a given name, followed by aspnet_merge.e...