asp.net

How to get Visual Studio to run a web app from the output directory?

Hopefully a simple question. I have an asp.net web app project with source code that is physically on a shared drive. I know I could move the whole project off the shared drive, but that causes me other problems, so let's focus on this one. ;) The issue at hand is that while I have changed the Output folder to be a local location, s...

configure ObjectDataSource from Code Behind in C#

Hi All, I have an ObjectDataSource and I want to configure it from code behind , I want to set the InsertMethod , Selectmethod from Code Behind and set it to my Business Layer files Please help me as soon as you can Thanks in Advance ...

Acess controls on ContentPages via Javascript by MasterPage

I need my MasterPage to be able to get ControlIDs of Controls on ContentPages, but I cannot use <%= xxx.CLIENTID%> as it would return an error as the control(s) might not be loaded by the contentplaceholder. Some controls have a so called BehaviourID, which is exactly what I would need as they can be directly accessed with the ID: [Asp....

Hiding/Showing custom verbs in web parts ?

Hi all I'm developing custom verbs for ASP.NET web parts. I created two verbs for maximizing/minimizing the web parts. I want to hide the minimize verb when the maximize one is clicked and vice versa. I use the following code: public void OnMaximize(object sender, WebPartEventArgs e) { if (isMaximize)//Maximize {...

Same ASP.NET website on multiple subdomains but different databases ?

Consider that I want to create 10 websites in IIS, each of them pointing to the same website on local hard drive, each one running the same code, but on different subdomain. subdomain1.domain.com, subdomain2.domain.com, ..., subdomain10.domain.com How can I add multiple connection strings in my web.config file and bind each connection ...

Isolation in a Multi-tenant ASP .NET Application

I'm building a multi-tenant ASP .NET application. Given that each tenant can configure their application dynamically (which may involve dynamic custom assemblies being loaded into memory), I need a means of isolating each tenant. I'd prefer not to create a new Web Application per tenant for maintenance reasons. I've was considering us...

.nrt 4.0 c# code database backup

I want to create database backup file and want to save it on database serve. but .net 4.0 don't support SMO. Is there some alternate so that i can create .bak file of database? ...

Why does setting the y axis in a ms chart break the appearance of my stacked columns?

I'm trying to get the y axis values displayed as in image 1, but have the data display as it does in image two (but reversed to match the axis values). Here's the code I've been working with: private void BindChart() { int intSectionCount = 4; int day = DateTime.Now.Day; int month = DateTime.Now.Mon...

all validators executed when page is loaded

Can i run all validators when page is loaded. I need to show * in all input text fields that are necessary. I have require field validators for that fields, can i run it by default when page is loaded? ...

What's a feasible method of implementing a "tasks" application that runs alongside an ASP.NET MVC site in Medium Trust?

I'm writing an ASP.NET MVC site where I need to have a "Tasks" application that runs alongside the website. Such a "Tasks" application would collect data at set intervals and insert it into the database. Of course, I could write a simple Console Application and use the Windows Task Scheduler to run it, but my site is being hosted by GoD...

Add/Remove items from one ListBox control to another ListBox control in ASP.NET from the client-side

I'm moving itmes from one ASP.NET ListBox control to another ListBox control from client-side. It works on the client-side but when I tried to count items in destination ListBox on the server-side, it's always nothing. Below, is the jQuery code used to add/remove items from ListBox control. <script type="text/javascript"> $(document...

Dynamically add <asp:content to page, Nested masterpages

hi all, I am currently using nested masterpages in my latest asp.net 4.0 project and i want to change the look and feel dynamically, so the homepage may just be 1 column wide, about us page may be 2 columns etc. I am dynamically loading the masterpage dependant on the record selected in the DB (1column.master, 2column.master) on the pr...

Why do "I get Failed to generate a user instance of SQL Server" with .NET 4 and not .NET 2 ?

I have created on my local machine with targetframework 4 in visual studio a simple website using the default template (the one with css problem solved here http://stackoverflow.com/questions/3897781/google-maps-api-in-asp-net-masterpage-why-it-stays-blank) I uploaded it to my IIS 7 server which was first configured for .NET 2 so in web...

ASPxGridview Custom Sorting?? by Month Name

Hi, I have an aspxgridview which groups first by year and then by month. Basically my query returns Month and year as seperate columns. Now if I return month as "January or February" then ASPxGridview does not know how to sort this. I heard of custom sorting, but even then if I return month column as a number and use dataitem templat...

Why doesn't ASP.NET (3.5) always load an external javascript?

I have an external JavaScript in an asp.net 3.5 project. While writing different functions, sometimes the JavaScript is loaded into FF and sometimes it is not (based on FireBug) and the JavaScript does not run. Even if there is an error in the JS it should still load or be visible to the browser, right? What is the logic behind when i...

Authentication on non-local server with WCF RIA services (Silverlight 4)

I'm building a site using WCF RIA services and Silverlight 4. My user database, the standard ASPNETDB user store, is on my server, which is not on my local development machine. I've created a new project using the Silverlight Business Application template. I'm still becoming familiar with how to develop for WCF RIA so bear with me. I...

comments forum in a web page

Hello i have this forum page on my website. I want when users leave comment, the old comments should be at the bottom and new comments at the top. Please can someone help me with that please? The code for that is below: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStrin...

How to get special parametrs chars from Flash using asp.net

Hi, I'm running a flash game on asp.net frame. The flash is sending parameters to some asp.net page that save those parameters to a database. My problem is that if the parametrs contain special chars (Russian, Arabic...) then those chars are transform to question marks (?) I've tried to urldecode the parameters but without any help. The...

What is the difference between asp and asp.net?

Hi, I'm wondering what is the difference between asp and asp.net? ...

ASP.NET 3.5 Routing kills DefaultDoc in IIS5.1

I've followed the steps to setup ASP.NET routing here: ASP.NET Routing… Goodbye URL rewriting? I'm on IIS5.1 (yeah, i know) so I had to do the "Wildcard Application Mapping". And now my IIS DefaultDoc "default.aspx" is giving a 404. I can see other people with the same problem here and here, but no solutions. David Wang makes it soun...