asp.net

Same C# code slower in ASP.Net application versus Winforms App on same machine

We have a function in C# that uses the ICSharpCode SharpZipLib BZip2 decompression method to uncompress some XML we get from a database. We have noticed an issue on two of our webservers (Win 2K and Win 2003 Svr) that this code takes a really long time to execute and causes the CPU utilization to max out on these servers. We have isolate...

How to set ASP dropdownlist to read only with css or javascript?

I have to set dropdownlost to read only. I can set enabled =false. But I cannot set font color to regular dropdown text. It will show like blur. The samething I did textbox.readonly=false. There we can see font same as regular text, no change. The same way I want read only for dropdownlist. Is there any way we can do with CSS or javasc...

‘Null or empty full-text predicate’ when executing a store procedure from a bound control.

I’ve got a page in my ASP.Net application that is used to search a database via a store procedure. One of the parameters passed to the stored produced is bound to a text box via a ControlParameter binding. <asp:ControlParameter Name="EventDescription" Type="String" ControlID="ucTestLogSearch" PropertyName="EventDescription" /> The te...

Asp.net Textbox for Integer input with Multiple Validators

I have a textbox that I want the user to enter an integer in. 1) I have created a required field validator, to ensure it is not left blank. 2) A compare validator, to ensure the value entered is an integer using datatypecheck. 3) A range validator to limit the range of the entered integer. If a letter is entered, instead of an integer,...

ASP.NET ExecuteReader: CommandText property has not been initialized

I keep getting the error ExecuteReader: CommandText property has not been initialized and i'm not sure why it points to this line in my code dd1.DataSource = LogData.StermQ2(datelistquery).Tables(0).DefaultView dd1.DataBind() dd1.Items.Insert(0, new listitem("Any location", "%")) The top line is the one with the error Any ...

Can .NET controls be added to a detailsview that is in Readonly mode (during databound event?)

Hello all. I am currently working on a website, created using visual studio, .NET and the C# language. I am using a detailsview as a data entry interface. In the detailsview "edit" and "insert" modes, I am dynamically adding checkbox controls which represent the boolean field values set for the current record displayed in the detailsv...

Add connection points dynamically to ASP.NET web part

To setup connection points for web part connections in ASP.NET you use the [ConnectionProvder] or [ConnectionConsumer] attributes. E.g. from http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?ID=37 [ConnectionProvider("Region")] public ITransformableFilterValues SetConnection() { return this; } (This example happens to be for ...

ASP.NET textbox issue

Hi I have a textbox. I set its maximum limit to say 15000 characters. No problem here. When I enter more than 4000 characters in it, they do not get rendered meaning they just appear as blank spaces. It still goes upto the limit though. Any ideas? Thanks. ...

Confusing could not load type error

I have looked at the other questions on here and I dont see an answer for what is happening to my web app. My situation is this: The main web application has numerous sub_folders for events. Each of these sub_folders has a default.aspx page. Whenever I try to debug any of the default.aspx pages I keep receiving the "Could not load type...

Setting HTTPHandler isreusable property.

Hi all, I am using a HTTP handler to raise a file download.Basically code in the 'ProcessRequest' retrieves data from the database,creates a temporary copy of the existing template spreadsheet with a GUID as its name and writes data retrieved from the DB into it cell by cell using COM,raises a file download and deletes the temporary spr...

ASP.NET what is the meaning of AutoEventWireup and Inherits?

Hello all, Given the following statement, <%@ Page Language="C#" AutoEventWireup="true" CodeFile="XXX.aspx.cs" Inherits="XXX %> Q1> What is the meaning of AutoEventWireup? Q2> What if the value of AutoEventWireup is equal to false Q3> What is the meaning of XXX in the Inherits attribute? Q3> I cannot find the definition of XXX in the ...

"Padding is invalid and cannot be removed." error with a twist...

I'm getting the following error in our QA environment but only through the IIS7 reverse proxy. If I hit the application server directly it works fine. In our DEV environment it works fine through the proxy or directly. I'm not really sure where to go with this, any ideas? Server Error in '/' Application. Padding is invalid and cannot...

ASP.NET How to access a deeply nested user control on the parent page

I have a login control and at is nested 2 deep in a header control i.e Page --> Header Control --> Login Control. I cannot get a reference to the control on the page using FindControl. I want to be able to set the visible property of the control like if (_loginControl != null) _loginControl.Visible = false; I ended up u...

how to create a helper that is going to render a partial view with a model ?

I'll give a very simple example: at the moment I have to write like this: <% Html.RenderPartial("hello", new HelloInput { Name = "Jimmy" } ); %> I would like to be able to like this: <%=Html.Hello("Jimmy") %> So I would like to know how create this helper: public static string Hello(this HtmlHelper helper, string name) { retu...

finding control an a page with master page

Hi everyone, I have to find a Control(a Table) in an aspx page with master page : the Master page have this : <asp:ContentPlaceHolder ID="MainContent" runat="server"/> and int the child page : <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server"> </asp:Content> <asp:Content ID="Content2" Conte...

Cannot add an entity with a key that is already in use.

I'm having a bit of trouble trying to add an object to the database using LINQ to SQL. I have three tables in my database: -------------------------------------------- tblShows -------------------------------------------- ShowID | Name -------------------------------------------- -------------------------------------------- tblShow...

Web Interface Using Microsoft HealthVault

Hi, I am a ASP.NET web developper. I have got a new assignment that needs to be developped on the Microsooft HealthVault platform. I am new to this platform and I don't have much time to spend on the documentation. I would appreciate some help so that I can get the right information. Below follows what is needed: work flow: the docto...

How to convert from asp.net forms authentication to windows authentication

I've been asked to convert an asp.net application from forms authentication with roles using the aspnetdb database to use windows authentication instead. what is required to do this? can I still use the roles defined in the app and stored in aspnetdb? ...

How serious is this new ASP.NET security vulnerability and how can I workaround it?

Hi guys, I've just read on the net about a newly discovered security vulnerability in ASP.NET. You can read the details here. The problem lies in the way that ASP.NET implements the AES encryption algorithm to protect the integrity of the cookies these applications generate to store information during user sessions. This...

Silverlight 4 : Uploading file to server

Hi Guys, Here is an easy one: I need a stable simple file uploader with a progress bar, I have found lots of fancy ones from the search. However, I need the community opinion on which ones to go with? Tutorial links would be appreciated. BOUNTY: I have a FileStream which I would like to upload to a server, below is a sample server se...