asp.net

Eventhandler for UserControl with button onClick event

Hello, I've created a user control that contains a button and a few other controls. When declaring my user control in the html markup I'd like to do some sort of : <asp:CustomControl onclick="CustomControl_Click" ID="cc1" runat="server"> Where CustomControl_Click is obviously the action I want to call when my control's button is ...

The ProxyFactoryFactory was not configured

Considering this example as a base example. I created the application but when I execute this application getting the following error. The ProxyFactoryFactory was not configured.Initialize 'proxyfactory.factory_class' property of the session-factory configuration section with one of the available NHibernate.ByteCode providers. Example: ...

Error while adding a dropdown in website

I am getting the following error while i submit a form after i added a dropdown box in my designer System.NullReferenceException: Object reference not set to an instance of an object. at WebApplication1._Default.collectEmailBodyText() in C:\v1.5_production_05June09\Default.aspx.vb:line 219 Below is the extra two lines that i added in ...

Dropdown probem

Below code i have to ammend for adding a dropdown in my asp website. I have already added could you please check what is wrong. Function collectEmailBodyText() Try Dim counterEnd As Integer = subActivated_HowManyControlsInAPanel() Dim counter As Integer = 0 Dim tempPanelLabel As Label ...

Deploying ASP.NET membership to Godaddy

I'm trying to deploy a website using ASP.NET membership and the hosting company is godaddy. Problem is that for some reason an error is being thrown when I log in. I've modified some pages for testing purposes to see if I can pull data from the database and it works fine. So I know it's mapping to the proper source. The error I'm rec...

What is the best ASP.NET PDF solution for converting XHTML markup with CSS support?

I have looked for a good solution for rendering a PDF based on a web page / HTML string, that can also keep the CSS styling. Does anyone know of any good solutions for this? Thanks in advance. ...

Ajax message

Want to display a "confirm" message in my asp.net appl, when the window closes, but when the Cancel button is pressed, the page closes, the event is not Canceled. I tried a different approach: I use; event.returnValue = "Message"; This approach works (when cancel is pressed, page does not close), but I get the "Message" that I specify p...

Refreshing a page continuously crashes IE

I need to poll the server for updated contents. So I added a META REFRESH tag to the page. But it seems that META REFRESH has memory leak issues and it crashes IE. What is the best way to poll data from server continuously? My app is quite old (partly ASP and partly asp.net). I can't invest on technologies like HTTP Push... ...

how to create bar chart and pie chart in asp.net 2.0 using c#?

How to create asp.net 2.0 pie chart and bar chart ...

Problems with serializing a custom type in ASP.NET ViewState

I've got a little struct that I want to serialize in my ViewState. It looks something like this: [Serializable] private struct DayMoney { public readonly DateTime ValidFrom; public readonly string CurrencyCode; public readonly double Amount; } It serializes just fine, but when I perform a postback/callback, I get an except...

How to test asp.net server controls

We have developed a number of ASP.Net server controls and we need to test them. I want to instantiate a control, set some properties, call CreateChildControls and test the control-hierarchy. I run into a number of problems: The controls rely on HttpContext CreateChildControls is private Even adding a single child control to the cont...

Crystal report Dynamic parameter problem.

I set parameter using SetParameterValue() method in code behind page. But the problem is when I click on any of the option e.g. export button, It prompt me Parameter values. It does not reuse parameter values, yet I am not refreshing report. so is there any thing that I'm missing? ...

What method do you use to deploy ASP.Net applications to the wild?

Currently we deploy compiled ASP.Net applications by publishing the web site locally and emailing a zip file to the system administrator with a (usually) lengthy set of instructions for deployment. This is because the first time we deployed an ASP.Net application to a customer the dev and test IIS instance were the same, and we were una...

ASP.NET Panel subclass not appearing correctly in the Designer

I have subclassed the ASP.NET Panel control to customise the rendering of the GroupingText. However, while it appears fine in the final output, it is not appearing correctly in the designer. A sample of what I am doing follows: Is there anything else I need to do to make it appear correctly in the designer? Imports System.Web.UI Pub...

asp.net Garbage Collection Notifications

Hi all, Has anyone implement this new feature in .net 3.5 SP1 in an asp.net environment? The only thing I can find the web is this, which is not an actual implementation. ...

Need help with some web.config settings.

I'm trying to play with my IIS7 compression settings in my web.config file. I'm trying to enable HTTP 1.0 requests to be gzip. MSDN has all the info about it here. Is it possible to have this config info in my own website's web.config file? Or do i need to set it at an application level? Currently, I have that code in my web.config... ...

Silverlight and icollectionview

So I have a datagrid that I need to add custom sorting for and I also need to know the exact order of the sort. I have read in order to do this I need to implement a custom icollectionview and bind it to the datagrid. The problem I am having is that the documentation Microsoft gives on this interface is not that great. Does anyone kno...

Where does ASP.NET get its culture settings from?

In an ASP.NET application I'm setting the culture to lv-LV. All is fine, but the default short date format seems to be "yyyy.mm.dd". The client wants it to be "dd.mm.yyyy" (which is actually the LV standard). Where does ASP.NET get the date/time settings for a specific culture? How can they be changed for a single culture, without affect...

ASP.net gridview sorting with linq result

hey guys I'm in a bit of pickle here. up till now I have a linq query that fills a datagrid perfectly with filterconditions. however, when I try to implement sorting I fail. I have the following code behind. it catches the start of the sort. protected void gvServers_Sorting(object sender, GridViewSortEventArgs e) { if (e.SortDire...

Simulate form submit with VB.NET

I wonder if I can simulate the action of the button in this website by VB.NET code ? http://www2.xonefm.com/hot10/index_in.aspx ...