asp.net

VS2008 Load Testing - Page Response Time

Hi. I am running a load test from VS 2008 on my asp.net web application. The thing I notice is that for some of my pages Average Page Time is around 20. Does this mean it takes 20 seconds for the server to render the page before it sends the request? Or is it simply 20 seconds until the whole page is fully loaded on the client's browser...

Is there a list of asp.net server controls that are IE-specific?

Are there any asp.net server controls that only work with Internet Explorer. I am looking for a list so that I can know what to avoid putting into my webforms application. I am looking for something like a list of controls and those that downlevel firefox and safari for example. I understand that the client side validation javascript is...

CA1305: int.Parse(String)

I am getting a CA1305 Warning. Microsoft.Globalization : Because the behavior of 'int.Parse(string)' could vary based on the current user's locale settings, replace this call in '_Default.CalculateImageButton_Click(object, ImageClickEventArgs)' with a call to 'int.Parse(string, IFormatProvider)'. If the result of 'int...

Theme Image URL Rebasing asp.net

I am implementing themes to enable an existing website to be rebranded (logos, colors, images etc.) depending on the requesting URL. I understand how to do that and have got the skins working fine except for some exceptions related to the URLs of images. Specifically I have a control property that it is not feasible to skin. Prior t...

previouspage.findcontrol getting variable from previous page

i am trying to retain the value of a variable from a previous page. i believe this is the C# way to do this, but i would like the vb.net way can someone please help: TextBox myTxt = (TextBox)Page.PreviousPage.FindControl("previousPageTextBox"); currentPageTextBox.text = myTxt.Text; i would like to know how to code this in vb.net i tri...

loading xml file in dropdownlist?

i am trying to load this xml file into the dropdownlist: http://sites.google.com/site/shadchanproject/Home/lots1.xml i want to only load the a7190, a7193 etc... (there are only three of them i believe) please help! i am doing this in asp.net ...

Stack Overflow error on Color Changer Function

i have two color "red" also "Salmon". i need create dynamiclly panel also panel background color. These colors must be between two color(red public Color x, y; protected void Page_Load(object sender, EventArgs e) { BackGroundColorArranger(Color.Red, Color.Salmon); } void BackGroundColorArrang...

Add ASP.NET control to Sharepoint Web Part

Hi. I'd like to dynamically add an ASP.NET LinkButton to my SharePoint web part. I'm hooking the LinkButton up with an event-handler, but when I execute the code it seems the event is never fired. Where in the life-cycle (which event) should I add such a control and how? Thanks. ...

Simultaneous requests to a HTTP Handler not working

I have a Generic HTTP Handler (*.ashx) in my ASP.Net application which performs some basic but time consuming computations printing progress statements to the output as it goes to keep the user informed. Performing these computations involves reading some data files which are locked by the handler while using them, so it's important tha...

ASP.NET catching controls from html generated from the database

I have a set of websites that basically do the exact same thing in terms of functionality, the only thing that varies is the css and how the html is laid out. Is there a way to generate the html from a database (ie retreiving the html from a table) and then catching the controls (like buttons, textboxes etc) from the code behind? UPDA...

Trace Listeners in ASP.NET

I have a library assembly that outputs trace information, and a client winforms application that adds a trace listener via app.config. If I were to use the library in ASP.NET, not configured for System.Diagnostics tracing, how could I 'catch' the trace output? Bonus question: Can I do something with Elmah to catch and log this info? O...

Feeding .NET MVC Views the jQuery UI way

I've seen a few blog posts and tutorials overviewing mixing in jQuery and the UI elements for Views in a .NET MVC web app. But usually targeted at developers with a comprehensive grasp of the full dev cycle and variations of back/middle tier technologies. As the front end developer I'm pitching a jQuery-only UI to the back-end dev - he ...

Download file without popup in ASP.NET

I am downloading a file using the code btnDownloadTemplate.Attributes.Add( "onClick", "window.open('StudyReport/WordReportTemplate.doc', 'OpenTemplate', 'resizable=no,scrollbars=no,toolbar=no,directories=no,status=no,menubar=no,copyhistory=no');return false;" ); This will show a popup and the download dialog is shown. How can I avoid ...

Checkin Related Checkbox In The Nested Datagrid

I have a nested datagrid seen below. When I click lnkSec, I want checkboxes of dgrIslem datagrid to be checked. How can I do it with javascript or Jquery? <asp:datagrid id="dgrMenu" runat="server" Width="100%" GridLines="Horizontal" ShowHeader="False" Height="8px" BorderWidth="1px" BorderColor="Gainsboro" CellPadding="0" AutoGenerateC...

LINQ :: Use static DataContext to prevent Concurrency Problem

Hi i am facing some problems in my project. when i try to update entity it gives me different type of errors. i read from net. these errors are because 1 - I am getting Object of entity class from method which creates DataContext locally and in update method id does not update because here another DataContext is created locally. (eve...

Should I trust ASP.NET DataTypeCheck validation?

I'm using ASP.NET CompareValidator controls to do data type checks. Should I trust these controls enough to directly parse their values or should I use TryParse? Example: <asp:TextBox ID="uxVolume" runat="server" /> <asp:CompareValidator ID="uxVolumeDataTypeValidator" runat="server" ControlToValidate="uxVolume" ErrorMessage="Volum...

How to do that Gradient Color Generator?

How can i generate 16 color. my starter color is "Red" and my terminal color "khaki". i have to insert 14 color. But it looks like gradient flow. Forexample color.Black does not come from red. Violent should come red from red. ...

iis installation on vista home basic

hi i am a beginner at asp, i have made a website using asp.net and C#, now i want it to run it on intranet, my laptop being server. But i can't even run the default page that is present after iis installation. I have vista home basic operating system installed on my laptop with iis 7.0. The error i get is HTTP 404.4 page not found. T...

Do you really need a Text attribute in an ASP.NET Label?

What is the difference between the following? <asp:Label runat="server">Hello World</asp:Label> <asp:Label runat="server" Text="Hello World"></asp:Label> UPDATED: If they are exactly the same then why does <asp:Label ID="Label1" runat="server"> There were <%#transactionCount%> transactions today </asp:Label> bind correctly ...

Dynamically add link button

I have a master page and content placeholder. In contentplaceholder there is a place holder for that place holder I insert a dynamic linkbutton. When i run a page link button does not show up on the page. for (int i = 0; i < UserCredentialsDT.Rows.Count; i++) { switch (Convert.ToInt32(UserCredentialsDT.Rows[i]["RoleId"])) { ...