asp.net

What is the best way to handle ObjectDataSource exceptions?

Hello gurus, I have an ObjectDataSource in an ASPX page calling CRUD operations from a business logic class. When exceptions occur during those operations, I'd like to inform the users of the errors as well as logging them. But I want a clear separation between my business logic and presentation layer. I know that Selected, Inserted,...

GridView in ASP.NET 2.0

How can I populate an editable Grid with data from different tables from MSSQL Server'05 writing a code behind function??? I have used: Dim conn As New SqlConnection(conn_web) Dim objCmd As New SqlDataAdapter(sql, conn) Dim oDS As New DataSet objCmd.Fill(oDS, "TAB") Dim dt As DataTable = oDS.Tables(0) Dim rowC...

IIS simultaneous requests limit

IIS 7 on Vista has a limit for concurrent requests (up to 10). I have a Virtual PC on my Vista with Windows Server 2008 installed on it. IIS 7 on the virtual PC still limits simultaneous requests. When I run the same application on ASP.NET Development Server, it's ok - there are no limits. Is the problem in host OS? How can I tune IIS t...

dont understand this exception

im using linq to sql i have a Mission entity, which holds a collection of assignments. lets say i went to query the total duration of all the assignments per mission. and i've written the following query: return db.Missions.Select(m => new MissionNameDays() { Name = m.MissionName, Days = m.Assignments.Sum(a => a.Du...

set long timeout for selected session variable

Hi I am using asp.net 2.0 and I want admin session variable timeout for 1 hour. Is it possible? and How? I am using windows authentication. ...

How can I use JQuery to indicate that the user waits until the db updates

I'm new to JQuery, but as a follow on from my previous question regarding duplicated entries to the database, on a forum type application, the question is: Is JQuery a good solution to show to the user, transaction progress, state of submit etc And what is the best solution, if using JQuery Else what other solution is right. With a vie...

error in Gridview

hello what is this error ? "An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. " Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding...

What alternatives are there in OS projects for c# similar to Joomla/Mambo/Drupal?

I'm beginning a project with a client to build a web application and I'm a little stuck on which solution to go with. I've used Joomla for many clients in the past, but this client has specific requests that I KNOW I'm going to have to build myself. The problem I'm facing is that I work full time under the .NET spectrum and while I a...

How to fill RSS feeds in datagrid ?

Hello Friends, I am using .net c# and i want to fill datagrid with rss feed. Problem is When i return rss feed in to dataset then i got multiple table wich storing diffrent data. Means i want to fill grid with "Title" and "Picture" here is my code example protected void Button1_Click(object sender, System.EventArgs e) { XmlTextR...

ASP.NET ,equivalent to PHP Print_r Function?

PHP Print_r is useful to print out array and dictionary collection. is asp.net build in this function?? ...

How to access data from html controls in asp.net

How do I access data from html in asp.net in the .cs (code behind) file? in .aspx page I have <tr> <td>Username:</td><td><input id="username" type="text" /></td> </tr> <tr> <td>Password:</td><td><input id="password" type="password" /></td> </tr> ...

Building a Datetime Object for SQL database insert

I'm working on a small web form that requires the user to input (among other things), the scheduled backup time of whatever server they're adding to the system. The problem is, I'm struggling to find out the best way to take the user input and build a DateTime object (which is what the database requires). I only really care about the Da...

How to use absolute url in aspx page on development machine?

I find myself using the ResolveUrl function a lot in my aspx pages but the resolved path is always relative. i would like to be able to have the rendered path start with the regular "http://localhost/myproject/" How can i achieve that without breaking any code in case i change the hierarchy of my files? Would it be inefficient to write ...

Datalist paging with linq

Hi, I'm creating a page that uses Linqfor data access and I'm using DataList to display data. How can I use Linq to do data paging ? Please read simple code below : I normally use a PagedDatasource but this only seems to work with a DataTable. Here's my Linq to return Datatable which is bound with Datalist : Public Shared Function ...

How does FormView EditTemplate update values in ObjectDataSource UpdateParameters under the hood?

Hello gurus, I have a FormView bound to an ObjectDataSource. * ObjectDataSource definition (omitted portion of it for simplicity)* <asp:ObjectDataSource ID="odsHousehold" runat="server" TypeName="BLL.Households" ConflictDetection="OverwriteChanges" UpdateMethod="UpdateHousehold" > <UpdateParameters> ...

How to make sure my href's take prescedence over any other layers including flash?

Hello, I have built a media gallery for my site. The media gallery contains media items from sites such as YouTube and Vimeo. In the system that I'm using, no thumnail is generated for media items that I link to. So what I've done is just display a small "view" of the media in my media gallery. This means I'm just showing a small versi...

How is semantic web relevant to ASP.NET MVC Web Development?

Are there any specific libraries for asp.net that are promising? ...

Inserting and Updating using Linq-2-SQL

L2SQL seems great as long as I stick to read-only operations. As soon as I need to start changing fields, things get a bit hairy. In particular, I'm running in to two distinct problems. First, I'm attempting to populate a table with an arbitrary number of rows. The schema is mostly irrelevant, but it does have a 'BIGINT' primary key ...

Create ASP.net website with silverlight controls in Visual Studio 2005

I am having only Visual Studio 2005. Is it possible to create asp.net website with silverlight controls in Visual Studio 2005. If yes what are the things I need to install and provide the samples. ...

crazy string in url problem

Hi, I am working on asp.net 2.0. Currently I started project that has been 80% developed by other. when it comes to my hand there was no problem. But suddenly I saw a problem in URL, e.g. http://localhost:1281/MyProject/(S(tvrt5hnlt5tlwemdyjwrobjw))/Admin/WelcomeAdmin.aspx so there is a crazy string between project Folder & subfold...