asp.net-3.5

ASP.NET Webapplication unavailable on Live Environment - How to troubleshoot

I have a asp.net 3.5 web application which is deployed on server 2003 and IIS 6. After running fine for a few weeks it goes "Down" and by down I mean that when I try and access it the browser looks like it's loading but never actually serves the page. After an IIS reset it loads quickly again. My question is what are the steps and tool...

Access the ASP.NET3.5 Application through Active Directory Using windows login credentials

Hi, We have ASP.NET3.5 web application hosted in IIS6.0 server. Whenever user try to access the application, we should not display the login screen instead we should check in active directory whether user in available in active directory by using user windows login credentials (internal users i.e., in side the organization) if availab...

Architectural Design DAL Layer

I am working on architecture of mid sized web application & for my DAL layer i am having 3 options 1) Traditional Stored proc Based Architecture (Using NTiers Template of Codesmith) 2) LINQ To SQL (or PLINQO Template of codesmith) 3) LINQ To Entity From above LINQ to Entity is out of reach as we need to start application very quickl...

Prevent new render of CheckBoxList

I have an <asp:CheckBoxList> using RepeatLayout="Flow" in my page I dynamically assign values to. If the page is loaded the first time (!IsPostBack), the rendered version looks similar to this; <span children="Cat"> <input id="ctl00_Menu_Category_0" type="checkbox" name="ctl00$Menu$Category$0"/> <label for="ctl00_Menu_Category_0...

Microsoft JScript runtime error

Hi All, I am getting this error for all the pages. Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.Parameter name: element Regards, Geetha ...

Clear cache after pressing f5

Hi all, i am creating dynamic controls based on the dropdownlist selection and data available in the database. For this i am using static variable. When we refresh the page using (f5,ctrl-f5,ctrl-r) value in the static varable remains. It creating problem. How to clear the cache when the page is refresh. Geetha ...

Dynamically Adding ASP.NET Web Forms Controls Loses State on Page Refresh

I am creating dynamic label and textbox based on the number of values from the database for the selected item of the dropdownlist. Then the dynamic labels will have the names and the text box with the values. To retain the values of these controls im using Page_init event. So im using cache to hold the selectteditem from the dropdownlis...

Sorting in listview with object data source

Hi i am working in asp.net web application for social networking. i have sued VS2008 and sqlserver 2008[.net 3.5] in this website we user 3-tier architecture. so we passed businessobject to UI. My listview is binded with object data source. now i have to implement sorting in listview. please can anyone suggest me best method to do sort...

Using DataObjectTypeName in DataObjectSource

The functionality I am trying to use is: - Create a ObjectDataSource for selection and updating controls on a web page (User Control). - Use the DataObjectTypeName to have an object created that would send the data to an UpdateMethod. - Before the values are populated in the DataObjectTypeName’s object, I would like to pre-populate th...

In Asp.net to manage control in table (tr,td) is right or wrong pls suggest?

In Asp.net to manage control in table (tr,td) is right or wrong pls suggest? If wrong than what is right for programming purpose pls suggest? ...

Relative paths issues for ImageButton / LinkButton

Hi I have recently migrated from .Net 1.1 to 3.5, and none of my ImageButton's or LinkButton's work. Not only do they not show the image, but when pressed, they redirect back to the root of the site; and the 'onClick' EventHandler doesn't fire. E.g. If I click an ImageButton on the page: http...../MyWebsite.ecom/Project1/frontend/...

sorting the grid

Hi, Iam working on sorting the grid remotely. Iam using the folllowing query SELECT value a, ROW_NUMBER() OVER (ORDER BY" + " " + SortExpression + ") As RowNumber FROM XSP_AssetList_V AS a WHERE a.AccountID = GUID'" + AccountID + "'"; is there any linq equivalanet for rownumber() over orderby() but iam getting an error System.Dat...

How to use animation in Microsoft chart control?

Hi all, I need to implement animation in Microsoft chart control like in this link. Is it possible to implement this? If yes then how to implement? Please help. Thanks in advance. ...

Convert clock time to minutes

How to convert the time 11:21:21 into total minutes? ...

display charts using asp.net

Hello, I have developed a GUI using ASP.NET 3.5 and C#.... Now at some places i need to display the data using graphs like pie or bar... I need to know how to start to do this...As in i was going through Crystal Reports, the there was something about MS charts...i need to know where can i read the tutorial and then implement it in my ...

My global resource designer file is empty when I add culture to the file name

I am writing a asp.net web application with multi-language support. I want to add a resource to the App_GlobalResources file called "GlobalStrings". When I name the file GlobalStrings.resx, everything is fine. But when I add a file called GlobalStrings.en-US.resx the designer file behind it is empty (no text at all) an nothing appears in...

ajax not working with masterpage

I am using a master page... Then there is an .aspx that uses this masterpage.. what i want to use is the ajax NumericUpDownExtender but i am getting an error from the start when i put this in my masterpage <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %> <%@ Register Assembly="System.Web.Ex...

How should I approach a listbox of numbers when the range may be too large?

I have a list box control which I am filling from the page's code behind. It works with values from 1 to 100, but what if the range I need gets really large? (For example, 1 to 200000000?) Currently I am using this: <asp:ListBox ID="ListBox1" runat="server" EnableTheming="True" Height="20px" Width="54px"> </asp:ListBox> And in my...

How to tick a Checkbox in ASP.NET GridView without going to Edit mode

Hi, I have a Checkbox template column in a ASP.NET 3.5 GridView. Now the user has to click 'Edit', tick the Checkbox, then click the 'Update' or 'Cancel' button, which raises an event that we use to update database. Is it possible to just check the box without going into Edit mode at all and raise a Checked event so that we can update ...

DropDownList and RequiredFieldValidator control

Hi, I am using dropdownlist control and a RequiredFieldValidator control for that ddl inside the gridview. <asp:DropDownList ID="ddlInsert" runat="server" CssClass="normal" DataSourceID="sqlDataSource" DataTextField="Name" DataValueField="ID" SelectedValue='<%# Bind("ID") %>' AppendDataBoundItems="true"> <asp:ListItem...