asp.net-3.5

Linq2Sql Designer Turns Store Procedure Multiple Result Set to Single

In a linq2sql class, I call a stored procedure that returns multiple result sets and it works. Whenever I add a new procedure in the linq2sql designer and it stealth converts the aforementioned stored procedure from IMultipleResults to ISingleResult in designer.cs. I replaced the code with a previous version and it works, but why do...

Unknown server tag 'asp:EntityDataSource'

I uploaded my files to my remote server having support for ASP.Net 3.5. Website is developed using ASP.Net 3.5 and Entity Framework. Also i copied the dlls to bin folder. But i am getting the following error arser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the fo...

How can I cache a function in asp.net

Hi, I have a function which calculates distance from database records. This function is called at least twice in one asp.net page request. In this time period the result does not change. So what to do to cache result, I need performance in my app. For example: public static int GetKilometers(int VehicleID) { /*some db query and calcula...

Deleteing cache upon submit

I have an asp.net web form (c#, .NET framework 3.5) that returns to itself after the user clicks the submit button. I think that some values of the form are cached (some controls in a "placeholder" are out of position... meaning they have moved slightly up or down on the web form). How can I delete the cache after user clicks submit, an...

Problem with very simple ASP.NET 3.5 app, using C#

My problem is that I can only seem to click the button once, if I click multiple times it's like it's dead. Doesn't do anything. So if I click it once it sets the text to "Works". How come it doesn't keep alternating between values when I click many times? I have the following C# code (I know I am using too many namespaces, but please d...

Retreiving records from a database in C# 2008

Hi, I need syntax help with the following code logic: I have a code block that gets email address from the database. The email addresses need to be assigned to a string variable strEmailAddress with a comma seperation My code is: SqlConnection conn = new SqlConnection(strConn); string sqlEmailAddress = "usp_Get_Email_Address"; SqlComm...

Setting tracemode="protocolonly" attribute in <source> element in Web.config (.Net 3.5) not working

I am using Network Tracing in my ASP.Net 3.5 application. I see the tracing output in the Output window in Visual Studio 2008 when I run my web site, so I've got the basics working. I'm trying to set tracemode="protocolonly" so I see text and not hex codes for the network data displayed by the trace. The section in my Web.config would...

Google like dropdown box when user is searching

I am using asp.net C# 2008, and I need to create a search textbox which will display dropdown values (similar to google search); The values displayed in the dropdown will be values from the SQL 2005 database (example the user is searching on FirstName, the dropwdown will display all firstnames, which get filtered as the user types in mor...

How to use a logged in person's credentials to search Active Directory?

I have a web app (.NET 3.5) which is sending notifications by email to users. In order to do this, I search Active Directory to find each person's email. At the moment, I am hardcoding my own username and password like so in order to search AD: Dim entry As New DirectoryEntry("LDAP://companyad", "myUsername", "myPassword", Authenti...

Deploying Web Applications (Designing Installer)

Hi, We are a small company and I'm ahead of the Web Department (as, it's only me) :) On my Web Applications I tend to use the Visual Studio 2k8 Deploy project and that output in the Web Setup Project. What this does is only create the Virtual Server and put the files there ... Done. I Want More! Create it's own Application Pool Get...

Edit a gridview inside a modalpopup without closing popup

I've got a modal popup (using ModalPopupExtender) working in a kind of master/detail view for a grid. When you click a button on one grid, it displays a popup window containing another grid of information, based on the row clicked in the first grid. This works well... I've enabled editing in the grid that is popped up. When you click ed...

Why doesn't my Entity Framework app work on production server?

I get following error when deploying on test server with II6 and Framework 3.5 SP1 installed. The located assembly's manifest definition does not match the assembly reference My development machine is a 64bit pc with Visual Studio 2008. Any suggestions? ...

ASP.Net textbox onblur event

Hi, I have a textbox, whose values I need to validate (if value of textbox is 50, then display message in lblShowMsg) when the user tabs out of the textbox (onBlur event). I can't seem to get the syntax right. I have this code on my pageload event: protected void Page_Load(object sender, EventArgs e) { txtCategory.Attributes.Add("o...

Sharing session state between 2 ASP.NET applications using SQL Server

Hi I'm working on a site that has a requirement to share session between a cms application and an online store application on the same domain eg. mydomain.com and store.mydomain.com I've made some progress with it and it works on my local build between localhost/cms and localhost/store Basically I have done what is suggested...

Trying to insert a row using stored procedured with a parameter binded to an expression.

Environment: asp.net 3.5 (C# and VB) , Ms-sql server 2005 express Tables Table:tableUser ID (primary key) username Table:userSchedule ID (primary key) thecreator (foreign key = tableUser.ID) other fields I have created a procedure that accepts a parameter username and gets the userid and inserts a row in Table:userSchedule Problem: ...

Converting VS2008 Solution to VS2010 Creates compile errors in ASP.NET 3.5 SP1

I am converting a large solution from Visual Studio 2008 to Visual Studio 2010. The conversion completes without errors. When I go to build the solution one particular section of the application throws error but it didn't when the solution was 2008. Error 1 Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, ...

Transfer data from SQL Server table using query to Excel and vice-versa

I want to transfer data from SQL Server table to Excel sheet using 3 tier architecture in asp.net 3.5. After user has made required changes in the Excel sheet I want Excel sheet to get uploaded and update data in the table with validation for proper data. ...

A few questions about gridviews.

I need to have a grid on one of my webpages that will be used to enter budget information. I was planning on using a gridview, but I am open to other ideas if something else will fit my needs better. I need the following functionality in my grid: All cells are in edit mode as soon as the page loads Need a footer row at the bottom to ...

Can't get edit to work on a ListView

I have the following code which I thought would give me the ability to edit a record in my list view but when i click edit i get a postback but am not able to edit anything. Am i doing something wrong? <asp:ListView ID="lv_Personnel" runat="server" OnItemEditing="lv_Personnel_ItemEditing"> <LayoutTemplate> <...

How to call a webservice programmatically in asp.net

Dear all, How to call webservice programmatically in asp.net without using add web reference? My webservice url keeps on changing. Hence i need to capture the url at runtime and display the results. Please advice. ...