asp.net

Has anyone else expierenced markup not being saved in Visual Studio 2008 in the ASP.NET designer?

Ok, I have a custom ASP.NET control that acts as a MenuBar. This control has a collection property called MenuBarItems. This collection contains essentially a collection of buttons that will be displayed on the MenuBar. Each MenuBarItem has a collection of cascading menu items. The idea is to create a recursive markup hierarchy that ...

subdomain with rewriteModule

hi i'm using this rule for rewriting subdomain and i'm corrected host file to 127.0.0.1 domain.net when user typed news.domain.net/default.aspx it must return domain.net/news/default.aspx but browser showed Address not found. how do i? please help thanks all ...

Access Controls which are written by Response.WriteFile("Sample.htm")

My aim is to stream a .htm file via Response.WriteFile("Sample.htm"); and then access a specific html element (ex. <a runat="server" id="myAnchor" /> ) from the Response which happened in the Page_PreInit Event. I tried it already with ((HtmlGenericControl)myAnchor) but it doesn't work. It only works, if the anchor tag is inside the .as...

Architecture advice for a website.

I'm looking for a bit of advice with regards to the structure of an application I'm tasked with. I need to have a series of webforms to store some data, most of the data is the same but each form would have some differeing data depending on the form used. Would a base class then a series of classes inheriting from this for the specific...

ASP.Net - TableAdapter is returning phantom results

Hi, I have a TableAdapter that is fetching rows from an Stored Procedure. For some reason, when there are no results, the TableAdapter returns an INT with value 0 instead of NULL. The SP has NOCOUNT ON. The problem with this is that I have a ListView in the frontend with an EmptyDataTemplate, which is not being shown. When I ran the qu...

Using Eval inside a IF statement and Repeater

I am trying to use Eval inside a IF Statement and Repeater. I want to do something like this: <asp:Repeater runat="server" ID="rpRepeater"> <ItemTemplate> <% if ((bool)Eval("A_Boolean")) { %> blah... <% } %> </ItemTemplate> </asp:Repeater> This code gives me the follow...

Push Notifications in ASP.NET

First hi and thanks in advance in ASP.NET : assume that i have a web site, and there are many users. i want to inform a specific user about some thing happened by other one ,or generally any thing like an incoming message from other one . all that should be happen while this user (who i want to inform) has opened his web page , (let's ...

Testing Membership provider without ASP.NET

I have a ASP.NET MVC site using Membership Provider. I have trouble testing some functionalities including register a new user. The ASP.NET website doesn't have a way to delete/remove a registered user, so in my testing project (WatiN with NUnit), I am trying to delete a testing user account by calling Membership.DeleteUser(). Then I r...

ASP.NET + C# -- Exporting Crystal Report to PDF -- Error + Upgrade Needed?

I'm maintaining a multi-project solution in ASP.NET + C#. We've decided to upgrade to .NET Framework 3.5 and ASP.NET 2.0. One of the last issues with the upgrade is with Crystal Reports. I'm getting the following error: Method 'ISCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.Editab...

How do I use ASP.NET to display video from bytes in SQL database?

I am in ASP.NET 2.0. I have uploaded a QuickTime movie to the database. It now resides as a byte array in sql server 2005. I am trying to determine how to read the bytes back out, maybe convert them to a stream and display the movie in the browser or some sort of device. I know this is broad, but can anyone even give me pointers on where...

Page loads more than once in FireFox when using Telerik RadEditor

Page_Load Calls more than once (4 times in my case) in FireFox but in IE only once. I am using Telerik, JQuery and DHTMLXCombos and asp.net controls on page. There are lot of images on page too. I am using I had also got this problem in past and that time I was assigning wrong path to Image but this time this is not the case. Any thou...

How do you manage the order of firing events in asp.net?

The question seems to be trivial, but i didn't found an answer with google. If I have multiple independent controls in a web-form, e.g. DropDownLists and grid, and I need to use postback information from one eventhandler in another eventhandler, therefore i need to make it fire properly one after aonther. I see a lot of indirect ways ...

MySQL stored procedure call from ASP.NET 2 throws Use Procedure bodies exception

Hi I have the following scenario. I am calling stored procedures to MySQL 5.x from my .NET 2 application. All stored procedures have parameters and they work fine with the exception of two which throw the following exception (only when deployed to production): "When calling stored procedure and 'Use Procedure bodies' is false, all param...

How to send info from one postback handler to another?

I have a third-party CustomControl which requires some info for databinding or anything else what it happen in a postback event handler. Trying to send this info via, say, dropDownList i face that this dropdownlist postback event handler isn't firing before CustomControlEventHandler, as it happens in ASP.Net. What is usual workaround? ...

How to implement DataList (asp.net) kind of functionality in PHP?

I want to display data in two columns as below Entry 1 Entry 2 entry 1 description entry 2 description Entry 3 Entry 4 entry 3 description entry 4 description Entry 5 entry 5 description Now In asp...

Read client page data asp.net and c#

Hi anybody know how to select and read client page data using c# and asp.net? Here I'm tring to load a page using iframe in my application. Now i want to select some specific text and want to store it in my local database. Is it possible? I'm going through snagit tool but it is capturing the selected area but unable to read the conte...

How to speed up Visual Studio Webserver (Cassini)?

Hi, for my webapp the integrated Visual Studio Server (Cassini) ist much slower than IIS. How can I speed up Cassini so that i dont have to wait for 3s for every small page? ...

How to configure Nhibernate in ASP.Net

Hi there! I am a beginner in ASP.Net. I am starting a new project using ASP.Net and Nhibernate. I figured out that the hibernate.cfg.xml would not do the trick for the configuration of Nhibernate. I googled for on how to configure NHibernate in ASP.Net and this is simplest that I got but I can't get it to work. I also downloaded some pro...

Building a templated ASP.NET control

Hi. I'm playing around with a composite control that uses the ASP.NET templating system. I want to be able to define a HeaderTemplate and a FooterTemplate in my markup, and programmatically add a usercontrol between the two. The markup I'm aiming for is something like this: <asp:DropZone runat="server" ID="LeftZone"> <HeaderTempla...

ASP.NET user control in jQuery UI dialog on button click

Hi Using ASP.NET 3.5 and jQuery UI. When a user clicks the "Search" button, a User Control, containing a search form, should be displayed in a jQuery UI Dialog (popup). How can this be done? Thanks in advance ...