asp.net

How do I set the ASP.NET version for a Virtual Directory using IIS Manager 7.0?

In the old version of IIS Manager, I could just right-click on a VD, hit properties, and then in the ASP.NET tab pick the version of ASP.NET I wanted to run. Does anyone know if that is still possible? I am running a localhost instance of IIS on my Vista box and I am not used to the new UI that IIS 7 comes with. ...

UpdatePanels - Controls outside are re-rendered?

I have rather a complex UI page with several UpdatePanels nested. All of them are set to UpdateMode = "Conditional" I have a listbox outside all the updatepanels. It's strange how there's a flicker on these listboxes when any buttons within the UpdatePanels are clicked. My understanding was if the mode is conditional, this should not b...

Redirection in a Facebook Application

Currently I use the following in the ASP.net C# code behind of my IFrame Facebook application: Response.Redirect("Default.aspx"); Is there a better way to do this? I heard of using <fb:redirect url=\""/> but if this is the correct way, how would I use it to navigate between pages in the root level of my ASP.net project? Please pr...

File paths in ASP.net

I have gotten mixed up in the past with regards to file paths (relative, physical, etc.). With my following project structure: Solution MySolution - MyProject -MiniApp Folder -MiniApp.aspx -Default.aspx -Default2.aspx Please provide examples on redirection (ex. Response.Redirect("~/Default.aspx")) navigation from: Def...

Can you use LINQ extension method operators in an ASP.NET databinding expression?

Is it possible to use a LINQ extension method within an ASP.NET databinding expression? Within a GridView that is bound to a Customer collection which in-turn has a related Phones collection the following Eval expression fails: <%# Eval("Phones.Single(p => p.PhoneTypeId == 2)") %> The error message I receive is: 'First(p => p' is not...

What is the difference between Microsoft AJAX and AJAX Pro?

Hi all. What is the difference between Microsoft AJAx and AJAX Pro? Also, for what should I use AJAX Pro? ...

ASP.net Web Resources vs. Images

Okay, so ASP.net allows one to embed Images into an Assembly and access them using WebResource.axd. I just wonder: What are the Pros/Cons of using Web Resources instead of Images in a folder on the Web Server, like how it's being traditionally done? This article mainly mentions ease of deployment, but that doesn't seem to justify the e...

Change ExtendedTemplate field that is being passed to app in c#

Where do I change this element? It says mmcs: but I need it to say afghan: I'm trying to change it so that it propagates as the EventLabel through the application. I've been trying to change it in the .aspx documents but it must be coming from a control file somewhere as it appears to have to affect when I recompile the application. A...

How to start creating a selection script , "inspect like what firebug do"?

I want to create a small tool on webproject which will let the user select tags on the page and i will save selections in an array for future use, so what i need is something near the functionality of firebug. From where i can start? any good articles or tools can make things easier? ...

Something wrong with my GridView code...

this code never fills the grid view I know that somthing is wrong here the code Imports System.Data Imports ZidduDataSetTableAdapters Partial Class _Default Inherits System.Web.UI.Page Dim filesAdp As New FilesTableAdapter Dim filestable As New ZidduDataSet.FilesDataTable Protected Sub btnfill_Click(ByVal sender As Objec...

using strongly typed datasets with textboxes on web forms

I would like to use a strongly typed dataset with textboxes on a web form. How can i do this? Cheers Mick ...

positioning the output of response.write in asp.net C#

i am trying to postion the output to my aspx page by using response.write for that i am using this code: Response.Write("&lt;<span id='Label1'' style='height:16px;width:120px;Z-INDEX: 102; LEFT: 288px; POSITION: absolute; TOP: 144px'>Its not at the top left corner!</span>"); this prints my message in the middle of the screen but also ...

Adding new row with referenced types in Entity Framework (C#)

Hello, i'm working with Entity Framework only few weeks. It's great, but how should i add corectly new row with referenced sub-items (tables)? i tried this procedure CMS.ShopOrder order = new CMS.ShopOrder(); order.CreatedOn = DateTime.Now; foreach (var item in CMS.CurrentSession.Cart.Items) { order.ShopOrderItems.Add(item);...

linq to xml and ViewList problem

Hello everybody, I seems to run into problem, and not sure how to make it work. I am trying to take data from XML by using linq and the code works, however when i try use this linq data as DataSource for the ListView, i am getting an error. How can I make it work ? How do i convert my var variable to proper variable so ListView with th...

How to get input value or javascript variable in Asp.Net MVC Ajax.ActionLink

I want to pass an input control value (say textbox1.value or a javascript variable) to a controller action method (as a parameter) without a form post (using Ajax.ActionLink). please see the code below is it possible to assign like new {name = textbox1.value} in Ajax.ActionLink. View <input type="text" id="textbox1" /> <% =Ajax.Action...

LINQ - Inserts not working with "junction" table

I have a "junction" table that stores a user's userID (same userID that is in aspnet_membership table) and an ID for a product. I have added this table to a .dbml file. I am trying to do an insert into the table using LINQ and it's failing. Both fields in the junction table are set as primary keys, however, I do not have the aspnet_me...

running visual studio and sites inside VMware inside RAM Disk

hi, i am seeking advise on this one. i have a machine with 24 GB so i was planning to install Vista 64bit and nothing on it but Vmware workstation 6.5 Vista Image, that ill be installed on a RAM Disk i will make on the main Vista. now in this way the whole Vmware Image will be in RAM so i will install VS 2008 in it and put all my sites...

How to handle the Session.End event outside Global.asax

Officially the HttpSession event End is handled only in the Global.asax file, but I was wondering if is it there a way, although not officially (eg. Reflection) to handle the event in a different way. ...

JQuery Modal Popup after window.location

Below is the information required for this problem. default.aspx /test/default.aspx When default.aspx loads the user clicks a button which should then redirect to /test/default.aspx. I have the modal popup working just not with the redirect and ideas? I have tried doing window.location = "/test/default.aspx"; and using a custom settim...

Advice on playing sound files from an ASP.NET MVC app

I'm working on a new ASP.NET MVC / JQuery app which will need to play short sound files in response to user actions. For example, in some cases, when a user clicks on a word, the computer should pronounce that word (there is a small finite list of words). I'd like advice on the following: Which sound file format(s) would you recomme...