asp.net

Where to set session timeout?

The application sets session.timeout in Application_AcquireRequestState event handler. Before session expires, there is notification window popping up. It resets session timeout to, say, 3 minutes (normally, it is 30 minutes), through Application_AcquireRequestState. The notification offers user an option to extend session for another ...

Multiple joins to the same table with the Entity Framework

Hi, If I have a table with two foreign key fields to another table, I.E. Table: User Field: FK_PrimaryItem_ID Field: FK_SecondaryItem_ID Table: Item Field: ItemID When I'm using the entity framework, the generated objects become: User.Item and User.Item1 and I can't differentiate between the two of them. I can map back to the n...

Password protecting ATOM feeds

The Twitter ATOM feed requires your login and password (obviously), which is nicely supported by IE7 (apparently IE7 can't handle RSS feeds with login/pw). IE displays a simple login prompt when you register the feed. How do I implement something similar in ASP.NET without access to the server or IIS? ...

Why is Intellisense missing in parts of an ASP.NET MVC view?

Am I doing something wrong is this a known issue with the ASP.NET MVC beta? <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="MyProject.Web.Views.Searching.Index" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <%Html.B...

Error - SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.

I've been using this piece of code I've written and it's working in this most unclear manner. I wish to insert a row into the database which includes two columns of DateTime: myrow.ApprovalDate = DateTime.Now myrow.ProposedDate = DateTime.Now And yet, when I update the database I receive this error: SqlDateTime overflow. Must be b...

Specifying connection string in config file for a class library and re-use/modify in ASP.NET Web Application

How can one specify the connection string in a config file of a class library and later modify this when used in a ASP.NET Web Application? The Class library is a data access layer that has a Dataset connecting to a database based on a connection string specified in a config file (Settings.settings/app.config). This class library is us...

Transforming a one to many sql query into a List of nested classes

What is the best way of taking a query and transforming it into a nested class list without doing a subselect for each row? eg. 1 aaaa 1 bbbb 1 cccc 2 dddd 3 eeee into 1 aaaa bbbb cccc 2 dddd 3 eeee ...

Is it possible to display a panel or div in between gridview rows on RowCommand event

Hi, Currentaly I am using a gridView and on RowCommand event of gridview the details of selected row are displayed below the Gridview. But now I have to display the details just below the row clicked. Means it will be displayed in between the selected row and next row of it. The gridview code is as <asp:GridView ID ="gvUserDataRead...

Search Engine Optimization (SEO) & Friendly URLs using ASP.Net

please tell me best to achieve Search Engine Optimization (SEO) & Friendly URLs using ASP.Net ...

Data authorisation using WCF web services

I am new to web development and WCF. I am reading some basics about it and most of the things seem very interesting. I have read that WCF services can be exposed using SOAP and other protocols. I was wondering whether there is an explicit implementation against data corruption during transmission built-in or it is left to user? For exa...

How can I convert an Acrobat XML Form to a "real" PDF

I am currently using DynamicPDF Merger for .NET to fill out the fields in an XML Form produced by Adobe Designer (PDF version 1.6 Acrobat 7) The XML Form PDF is big (1.5 MB) because each word is a seperate object. We do not want to rebuild the PDF from scratch if possible. If I use "Print to PDF" then the file is turned into a "real" P...

getting selected check box value in Mvc asp.net

I had displayed check box in a list and i want to access that which check box is selected or not and want to call controller action where i select option from dropdown list <div id="pnlSent" style="display: none"> <%= Html.DropDownList("select","msgtype") %> <% foreach (Usp_GetUserMessagesResult w in (List<Usp_Ge...

ASP.AJAX UpdatePanel - probably related to application mapping

I am trying to use the Axinom CMS with ASP Ajax and created a page containing ScriptManager, UpdatePanel and Timer. When publishing the page in the CMS the actual page is created under (1) http://localhost/Site/publish/PageName.aspx but the user is meant to access it under (2) http://localhost/Site/PageName.AxCMS which is e...

Quartz.net implementation

I am new to the concept: quartz.net.How do I implement it in my web application ? ...

best way to convert aspx dynamic pages urls in user friendly urls using asp.net

what is the best way to convert aspx dynamic pages urls in user friendly urls using asp.net 2.0. I want to convert http://www.mydomain.com/product.aspx?Id=4 in to **http://www.mydomain.com/product4.aspx ...

providing dynamic file download in ASP.NET2.0

Hi, I want to provide dynamic download of files. These files can be generated on-the-fly on serverside so they are represented as byte[] and do not exist on disk. I want the user to fill in an ASP.NET form, hit the download button and return the file he/she wanted. Here is how my code behind the ASP.NET form looks like: public partial...

ASP.NET: How to hide ListBox control vertical scrollbar?

I have tried CSS: overflow: auto. It doesn't work. Any way to achieve it? Do I need to create my custom control as I have seen it on ASP.NET forum? ...

should every element with runat=server have an id attribute?

I have inherited an asp.net website to maintain when looking at the aspx page, almost every element with runat=server don't have id attribute defined. should I go through every element and add one? ...

Create an Event Handler whenever a new Node is added in treeview

I want to write a custom class in which whenevr I add a node to treeview it should call an event. so that I can run it recursively. ...

Keeping up to date with the Microsoft Certifications and the rapid pace of technology releases

How can you remain competetive in the market place and also keep your credentials up-to-date? I am considering going for the MCPD, but im afraid that it will soon be out of date! The current exams revlove around .net 2.0, asp.net, c# 2.0 etc. But in the past few years or so we've had (to list a few): Linq Entity Framework ASP.NET Dyn...