asp.net

ASP.NET: Access DataItem from an Event Handler

I have a data-bound, templated control, and inside the templated area I create a control with an event handler, like so: <tnl:DisplayTree ID="DisplayTree1" runat="server" KeyPropertyName="Id" ParentPropertyName="ParentDemographic" DataSourceID="DemographicObjectSource"> <ItemTemplate> <asp:CheckBox ID="DemogSelector" runat="server"...

Search type links in Yahoo - how to implement similar behaviour

When you open the yahoo main page at the top there is a search section that contains links like: Web, Images, Video, More When clicking on the link the chosen section is activated and the text of the search button is being changed. The only part of the page that is updated is the search part at the top and the other parts of the website...

.net Deployment settings in server

Hi, I am a .net web devoloper. I always face problems while deploying applications in the client server on IIS virtual directory settings.Locally everything works fine but in the client server i always faced unexpected errors. Mosty because of windows permissions etc. Only while facing the problems we google it and find the solution ...

javascript conflicts UpdatePanel

I'm using a ReportViewer control which often runs into problems with the javascript associated with UpdatePanels in ASP.NET. I've created a second page which is very simple, no Update Panels. What's the best way to link the two pages? An iframe sounds bad. However, having to run a report, then be returned a link to the results also s...

asp.net ajax calls to user controls

Hi, When calling page methods or web services with either jquery or MSAjax, the Session object appears to be null so Im finding it hard to track users who execute them. Seeing that the session id is sent with the cookie on each request, is it possible to obtain the session object from somewhere? ...

does anyone have a vb.net function that will iterate through master page control hierachy?

Does anyone have a function that will iterate through ever masterpage/sub masterpage that a content form belongs to, and iterate through each control of said masterpage/sub masterpage? The reason why i ask is that i'm building up an increasingly confusing stack of masterpages and am starting to "lose" controls - i.e. not being able to f...

Generating a form from SQL Server database

Hi, Just wondering if anyone knows of a product (free or licensable) that allows you to generate a Web Form from looking into a database table. We have to be able to generate staff surveys - our company is quite big, and occasionally the form fields change. Ultimately this means one of our dev's have to go and modify some ASP.NET webfor...

'nullable types break ToXML() in subsonic 2.2

when i call .ToXML() fail "There was an error reflecting type..." i have a nullable types how i can solve it? ...

What should you be storing with an ASP.NET Profile Provider?

What is the role of the Profile Provider in ASP.NET / MVC? What kind of information should be stored/retrieved using this functionality? How does it fit in with the rest of the family of user providers: Profile Provider Membership Provider Role Provider ? ...

Temporarily override Theme CSS in ASP.NET

I have a MasterPage that is two column layout, left column menu, right column content. The whole page is XHTML/Divs/CSS layout. So the columns are div's with CSS applied to size them. For one page, a grid page, I want only one column (the content column) to be 100% width for maximum viewing area. How can I use the same masterpage and ...

Excel Upload to database table

I'm looking for the best solution to allow our users to upload XLS spreadsheet so that they can be used to populate tables in our data warehouse (DW). Our users are heavy Business Object (BO) users, and BO lets you export to XLS. When they have data in a spreadsheet that needs to be loaded to the DW, they need a process to upload the d...

Override FormView Templates

By default the FormView control creates html like : ID <asp:TextBox ID="IdTextBox" runat="server" Text='<%# Eval("ID") %>' /> <br /> Name <asp:TextBox ID="NameTextBox" runat="server" Text='<%# Eval("Name") /> I prefer: <ol class="form-layout"> <li><asp:Label AssociatedControl="IdTextBox" runat="server">ID:</aspLabel><asp .... </o...

using web site to develop or using web application in ASP.Net?

Hello everyone, I want to learn the pros and cons of using Web Site project type or using ASP.Net Web Application Project type? My web application is using ASP.Net 2.0 or later, and the web application just shows UI, call some other database store procedure and some other WCF Web Services. thanks in advance, George ...

Entity Framework error - "The EntityContainer name must be unique"

We have a solution which consists of two projects - a console application project and a web application project. Each of these has an identical in schema, but differently named .edmx file used to access the same database. The console application runs as a scheduled task on the same server as the web application is hosted. The web applic...

Regular Expression to find src from IMG tag.

Hi, I have a web page. From that i want to find all the IMG tags and get the SRC of those IMG tags. What will be the regular expression to do this. Some explanation: I am scraping a web page. All the data is displayed correctly except the images. To solve this, wow i have an idea, to find the SRC and replace it : e.g /images/header...

ASP.net gridview datasource null when sorting

Here we are again with the next problem in sorting. this is a follow up question to this question I have now made a type to contain the data I need. however, when I try to fetch the data FROM the gridview it returns null, which means I can't sort anything that is not there in the first place... any ideas why this returns null ... IEn...

Tools to convert code in PHP to ASP.NET

I am working on a self project, where I am trying to convert a website written in php to ASP.NET(C#). I came across a php to ASP.net migration assistant, but this comes as an addon for VS 2003. Is there a migration assistant add in for VS 2008. Tips/tricks for going through the migration. Are their any other open source/Commercial tool...

Should I be able to understand this ContentPlaceHolder behavior?

Hi, My goal is to be able to define a class for the element in a child page. On my master page I have the following: <body class="<myown:AttributePlaceHolder runat="server" ID="BodyCssClass"/>"> The AttributePlaceHolder derives from ContentPlaceHolder, and just strips out any linebreaks and extra spaces from its content. The problem...

ASP.NET: Bind a value to a custom user control inside a repeater

I have an ASP.NET control that binds data to a repeater. Inside that repeater, I have another custom user control. I want to pass a value to this second control based on the current binding item. <asp:Repeater runat="server" ID="ProductList"> <ItemTemplate> <p>Product ID: <%# Eval("ProductID") %></p> <myControl:MyCoo...

Updating Label Text while Method is Running

Hey All Developing is more of a hobby at the moment; so apologies if this is a basic question, although after a couple of hours searching the web I can't seem to find an answer. I am currenttly building a support tool for my team which runs a number of SQL queries & BCP processes and returns the results. Some of these actions take quite...