asp.net

Expand drop down area of asp:DropDownList

VS 2008 - Visual Basic .NET (C# example is fine, as I can read that as well) I have an asp:DropDownList that is 100px wide, however some of my list items are much wider than that. How can I expand the drop down area of the list so it shows all of the text of the list items? The control itself must stay at 100px - only the drop down are...

Alternating Item Style

I would actually love to have an AlternatingItemTemplate on a GridView, but all it offers is an AlternatingItemStyle. In my grid, each two column row (in a table layout), has an image in the first column, and a description in the second column. I would like to have the positioning of the image and description alternate on alternate row...

What are good references for .Net development with Office Communications Server?

Is is possible to intergrate VOIP capabilities, particularly phone dialing, with Office Communications Server 2007 and .Net? If so, are there any good references for this? I would be especially interested if this could be hosted within an ASP.Net or Silverlight application. ...

LINQ to SQL concurrency conflict - Looks like a clean attach with proper row versioning

I am trying to get LINQ to SQL to persist changes to an attached object wherein the backing table has a DateTime column that I think should function for row versioning, as described here. The table looks like this: CREATE TABLE [dbo].[client]( [client_id] [int] IDENTITY(1,1) NOT NULL, [client_address1] varchar(100) NULL, /* snip */ [mo...

ASP.Net Providers from web server in DMZ

Hello all, We have an intranet asp.net web application which uses the OOTB ASP.net membership and role providers. Now we are planning to expose the application to internet, by moving the web server to the DMZ as represented in the following (crappy) text diagram External Internal internet --- Fi...

ASP.NET custom control rendering before <%= %> code executes to populate property

I have a custom control that exposes a property. When I set it using a fixed value, everything works correctly. But if I try to set its value using the <%= %> tags, it goes a little whacky: <cc:CustomControl ID="CustomControl" runat="server" Property1='<%= MyProperty %>' /> <%= MyProperty %> When this gets rendered, the <%= MyProper...

HTML anchor with name attribute in ASP.NET

I'd like to make anchors to every post in my asp.net forum. Every forum's post is rendered using repeater control. How can I render <a name="anchor_name"></a> in asp.net? ...

Ad Management Software for ASP.NET

Can anyone recommend any Ad Management components for .NET? I have a customer who would like to sell his own advertising through his own site. This rules out using packaged ad providers such as Google Ads. I've googled several packages, but I'd like to see if anyone has any first hand experience with a particular package. Or should I...

Master Pages fail to recognize new controls

So, from my experience, masterpages sometimes can lag when you do updates. This is not a new occurance, you make a change, you build, you go to test and the MasterPage is still looking for the old control. Anyone have any tips/tricks they use when this happens? Usually it goes away after a while, but I don't have a while. I am using ...

Best Server Control for surrounding blocks

I am wondering what server control people generally use for surrounding and separating blocks of related controls and content in a Web Forms scenario. Often times I need to surround a block of HTML and related Server controls with a 'panel' that I can show or hide based upon some UI logic in the code behind. I am usually faced with eit...

Casting a UserControl as a specific type of user control

Is there a way to cast a user control as a specific user control so I have access to it's public properties? Basicly I'm foreaching through a placeholder's controls collection and I'm trying to access the user control's public properties. foreach(UserControl uc in plhMediaBuys.Controls) { uc.PulblicPropertyIWant...

Using aspx Rendering Engine to Generate Non-HTML

Is it possible to use the asp templating engine (With the partial code-behind class, dynamic <% ... %> blocks and such) to generate non HTML? I want to have a clean and maintainable way to generate code dynamically. (Specifically, I want to generate LaTeX code populated with values from a database.) Currently my LaTeX templates are res...

How do I make a link in a master page, which includes dynamic information from the current page?

I have a master page, with a help link in the top menu. This link should contain the a dynamic bookmark from the current page, so that the user scrolls to the help for the page he is currently seeing. <a href="help.aspx#[NameOfCurentPage]">Help</a> How would you implement this? ...

Reading RAW image files as GDI+ bitmaps

Is there a good way to read RAW image files (especially Canon CR2 and Adobe DNG files) as GDI+ bitmaps that is reasonably fast? I found an example running under WPF that would read an image using any installed image codec and then display it in an image control. And I modified this example to create a GDI+ bitmap by writing the WPF imag...

Reacting to click on ListItems in CheckboxList

I would like to apply some logic to a page containing a CheckBoxList control when the user checks or unchecks individual checkbox items. Say, for instance to dynamically show or hide a related control. I came up with a way using ASP.Net 2.0 callback mechanism (AJAX) with a combination of client-side Javascript and server-side logic in t...

Should I dynamically recreate a PDF, rather than store it in either the database or the filesystem?

I need customers to be able to download PDFs of letters that have been sent to them. I have read the threads about database vs filesystem storage of documents or images, and it does sound like the consensus is that, for anything more than just a few images, filesystem is the way to go. What I want to know: would a reasonable alternativ...

Compressing Memory Cache

Does anyone have any experience in using compression on their cached data? I understand that stackoverflow is internally using this method. What are the pros and cons? And are there any gotchyas? ...

Fields people capture when logging - log4net

Hi guys I interested in knowing what fields people actual capture and use when logging within their applications when using loggers like log4net. This can range from debugging to testing to production and can be for thick client apps but I am thinking more about semantics of web apps (i.e. asp.net). Also, in the context of web (and ...

Fluffy Cloud Configurations For .NET

Very simple question, is there any cloud server enviroments avaliable these days for us .NET guys that rivals Amazons ec2? EDIT: PDC 2008 looks like there are some very interesting info, and only 4 days 2 hours to wait :-). Looks like I need to get saving fast for the conference fee though. ...

Applications that use .NET

What are your favorite applications, products, or any applications that you know of that use .NET or Asp.NET as their underlying platform? What popular companies do you know of as a .NET shop? This question is related to a few others that I have seen. So I've just made this one as a community wiki to see what kind of a response there is...