asp.net

LINQ to SQL Where Clause Optional Criteria

I am working with a LINQ to SQL query and have run into an issue where I have 4 optional fields to filter the data result on. By optional, I mean has the choice to enter a value or not. Specifically, a few text boxes that could have a value or have an empty string and a few drop down lists that could have had a value selected or maybe ...

Currency conversion

Hi, Does anyone know of a web service(pay or free) that will convert one currency to another based on current market value? Thanks in advance ADDITION I am not looking for a screen scrapeing solution. I am looking for something that I can setup and walk away from not something that I will have to rebuild if someone changes the UI. ...

Even if GridView.DataKeyNames is set, Gridview.DataKeys[] is still empty

hi GridView.DataKeynames stores the names of the primary key fields for the items displayed in a GridView control. 1) Even though I’ve set DataKeyNames, GridView still doesn’t store record’s primary key value(s) in DataKey object: protected void SqlDataSource1_Selected(object sender, SqlDataSourceStatusEventArgs e) { ...

Deleting a record ( using GridView )

hi 1) Why can we update data records ( via data source control ) without setting GridView.DataKeyNames property, but when deleting ( and if ConflictDetection property is set to the OverwriteChanges ), DataKeyNames must be set, else GridView will not pass parameters to data source control? Thank you ...

Usercontrol access javascript from a Content's Page's Master Page

Hello all I have a problem. I have a masterpage that all of my Content pages inherit from. Within this masterpage I have a script tag pointing to the javascript file folder "~/Scripts/validation.js" On my content pages I use different usercontrols that require the use of many of the functions within the validation.js file however if I d...

browser timeouts while asp.net application keeps running

I'm encountering a situation where it takes a long time for ASP.NET to generate reply with the web page (more than 2 hours). It due to the codebehind running for a while (very long, slow loop). Browser (both IE & Firefox) stops waiting for the reply (after about an hour) and gives generic cannot display webpage error (similar to what yo...

Wildcard in query for ASP.NET GridView

I am using GridView in ASP.NET 2.0. I am want to show the details from 3 tables (SQL2005) in the GridView per my search crieteria (Name of Visitor,Passport Number,Name of Company). It is working, but I want to use a wildcard for searching by first letter of "Name of Visitor". I have my code in the QueryBuilder in GridView (using Configur...

ASP.NET server side tags vs. JavaScript-based UI and REST

Hi, I've been developing "traditional" ASP.NET applications with server side ASP.NET controls and code behind files, etc. Now I'm exploring several JavaScript libraries like: jQuery, YUI, Ext Js, Prototype. (also it's hard to pick one, but it's another post). All these libraries make client to server communication a lot easier, but they...

Programatically prevent ASP .NET AJAX scripts from rendering

Does anyone know of a way that I can stop all the .NET AJAX scripts from rendering, even if a ScriptManager exists on the page? The ScriptManager's Visible property has been overridden and disabled so that you receive a NotImplementedException if you try to set the Visible property. The reason I would like to do this is that I don't wa...

How to correctly format JSON responses (for jQuery) from ASP.NET AJAX?

Guys, I can't seem to get the object serialization working correctly clientside for my app? When I used the getJSON() method inside jQuery with a response mime type of text/json (serialized using JSON.Net library), it was working fine, but as soon as I moved it across to an ajax() request (so I could post my code in webmethods on my page...

How do I migrate VBA to asp.net

I have an MS-Access 2003 front end (backend SQL2000) that I want to move to asp.net. The system is too hungry bandwidth wise to run across the web/vpn. I have started manually building the aspx and ascx's, which is becoming a bit of a nightmare, and will start on the code shortly. Has anyone successfully migrated MS-Access/vba to asp.n...

IDE Suggestion required.Envionment : ASP.NET-VB-JAVASCRIPT

I am working on a ASP.Net project creating a Outlook like calendar scheduler app. I need to implement javascript on the webpages, but VS 2005 that I am using now is not very helpful, like intellisense or debugging,etc.. in case of javascript. I am planning to use jQuery in the app too. Questions : Is there some feature of VS 2005 th...

Why do I sometimes get "Could not load file or assembly AjaxControlToolkit version 3.0"?

We recently published a new version of an asp.net website where we changed from AjaxControlToolkit version 3.0 to 3.5. I checked the web site and found that it was running alright. The following day I recieved the following two similar exception reports, that seems to relate to the change in version: Could not load file or assembly...

How to skin an ASP.NET GridView column?

The idea is simple - I want all Command columns in my GridViews to have a specific button image for, say, the "Delete" button. Sounds like a job for skins, but I cannot find the right syntax for that... ...

DateTime in Calendar Extender

Hi guys, I am using calendarextender control in asp.net.It displays only date ,not time.But while inserting to database ,time is inserted automatically.But while retrieving the data from database using date in where condition ,no correponding records displays.What modification in storedprocedure i can do to resolve this problem. ...

Excluding Page from Release Build in ASP.NET Project

I am using an "Inspector.aspx" to do some tests in my Debug build. In a Release build (and more importantly when creating an installer), I manually exclude the page (and it's related C# files) from the project. Is there a way to automatically exclude files in a selected solution configuration in an ASP.NET project? C++ projects giv...

Calendar extender

Hi guys, I am using calendarextender control in asp.net.It displays only date ,not time.But while inserting to database ,time is inserted automatically.But while retrieving the data from database using date in where condition ,no correponding records displays.What modification in storedprocedure i can do to resolve this problem. I used ...

ASP.NET/UserControls: How do I sepparate the "controller" from the "view"?

Is it possible to sepparate the ascx ("view") and the ascx.cs ("controller") pars of a user control. Id like to move the controller part to App_Code to be resued while the view part is changed between projects? ...

Linq returning list of anonymous types

Caan somone advise the best approach to what i'm trying to acheive (linq to sql, returning list of data to show in a grid/list etc etc)... Its complaining about anonymous type conversion, and from what i'm reading, thats not elegant way of doing it. Public Function GetHistory(ByVal historyId As Integer) As List(Of ?????????) Using...

SQL Server FTS Timeout Error in ASP.Net, after application is idle for some time

Hi, We have a page calling a Search stored procedure which internally uses SQL Server 2005 FTS. If the application remains idle for 10-15 mins, the first consequent call to the stored procedure times out. All subsequent calls work. Is there any way to prevent this from happening? We don't want the first user getting a timeout and we al...