asp.net

What is the proper way to deal with this ASP.NET validation?

I have conditional validation that I need to perform. The logic is supposed to work like this: If radio button 1 is selected, textbox1 is required. If radio button 2 is selected, dropdownlist1 is required. What is the best way to accomplish this? ...

Experiences with Kentico CMS

I'm wondering if anyone has experience using Kentico CMS to manage content for a public facing website. I downloaded the trial version and at first look it seems pretty full featured and well designed. I'm interested in things like: Quality of product and support Community (I looked at their forums but didn't seem like there was a lo...

How can I make a custom validator fire even if a textbox is empty?

I set a custom validator on a textbox. It only validates if there is some text in the textbox, I need it to fire all the time when someone clicks on the submit button. How can I do this? ...

Why are my errors showing up beside my control and in the validation control summary?

Why are my errors showing up beside my control and in the validation control summary? ...

C# Web Server: Implementing a Dynamic Language

I've just finished writing a web server in C#. Its pretty basic and only serves static content like html, xml, and images at the moment. I would like to implement a dynamic language, however. I'm trying to choose between one of the following: ASP.NET PHP Python I'd prefer to implement PHP or Python because I am much more familiar wit...

Setting Palette on ASP.net/GDI+ Generated PNG Image

I just built an application in ASP.net that returns a PNG image. The resulting image is entirely black on a transparent background. Is there a way to index the image to reduce the file size? I can not index the new image as it is created because I am using the graphics object which will not allow it. Thank you very much for the help -...

How to display labels in each point in ZedGraph?

How can I display labels for each point plotted in a ZedGraph chart? ...

Authentication ticket ( Forms authentication )

Hello, Q1 - Forms authentication module encrypts its authentication information ( ticket ) before placing it in a cookie. Now, little I know of encryption algorithms is that they usually use some randomly generated value to encrypt and decrypt a piece of data. Thus if same algorithm uses value A to encrypt some data, then it will als...

Enforcing SSL connection

Hello, A) Can you, at the server side, enforce SSL connection ( via selecting Require Secure Channel option ) only per web application, or can you also enforce it per virtual directory or even only per web page? B) How exactly does enforcing SSL connection work? That if users specify http instead of https protocol ( in requested U...

asp.net custom error page and file without extension

How can i get IIS 7 to return my custom error pages for file without extension? I got it working for file with extension, but when the extension is not specified, i get the generic page. ...

Calling global variables in the AppSettings from a Javascript function

In my javascript function I am trying to call my global variable that is currently defined in the webconfig file of my Asp.net project. What is the syntax for this? I've looked around and nothing seems to work so far. I've tried the following but I am not getting anything from it: web.config: <appSettings> <add key="var1" value="1...

Playing Audio Files on Asp.Net in Sequence(one after one)

Hello, I have a reqiurement, I need to play multiple audio songson ASP.Net page.Can anyone suggest the best way to implement this. I have page. There I will display the list of the songs in grid view. The gridview contains checkboxes and songs name. User should able to select the multiple check boxes and click play. When ever user cl...

How can I prevent all Firefox browser instances from using the same authentication cookie?

I implemented Forms authentication by creating Default.aspx and custom login page named login.aspx. If unauthenticated users brows to Default.aspx, they are redirected to login.aspx, and only if match is found for the supplied credentials, is user redirected to default.aspx. But when using Firefox, it appears all browser instances use ...

Encrypt a Session Object

First off: I'm working on an e-commerce site that will accept credit cards. In order to get from the "Enter your information" page to the "Confirm your information" page, I need to store the credit card information somewhere that it can be retrieved before it ultimately gets sent to the payment gateway. I'm currently leaning towards st...

Digg Style Ajax Voting Button

Hi all, Wondering if anyone has an idea of how I could make a digg style ajax voting buttong with ASP.NET AJAX. Thanks ...

asp.net how to add TemplateField programmatically for about 10 dropdownlist...

This is my third time asking this question. I am not getting good answers regarding this. I wish I could get some help but I will keep asking this question because its a good question and SO experts should not ignore this... So I have about 10 dropdownlist controls that I add manually in the DetailsView control manually like follows. I ...

Printing ASP.NET 3.5 Chart Control

Hey Everyone, Any info out there on how to print the generated charts in say PDF format? They look fabulous on screen but the end users want to print them and file as needed. ...

ZedGraph labels

In ZedGraph how to show text labels for each point and in the XAxis all together? EDIT: If I do myPane.XAxis.Type = AxisType.Text; myPane.XAxis.Scale.TextLabels = array_of_string; I get labels on the XAxis like this And if I do for (int i = 0; i < myCurve.Points.Count; i++) { PointPair pt = myCurve.Points[i]; // Create ...

CopyLocal in a Visual Studio 2005 ASP.NET Web Site?

Hi guys, Is there something like the Reference property CopyLocal in a Visual Studio 2005 ASP.NET Web Site? A VS05 Web Application has a References folder in the Solution Explorer where you can select a reference and view its properties, such as CopyLocal, in the Properties window. But a VS05 Web Site only has a References folder in...

How to dynamically assign datasource to listview

Hi everyone, I am having a problem with dynamically assigning datasource to listview. For example I have list of receivedBonuses(Bonus), receivedLeaves(Leave) and I want listview to display those list items depending on what link button user clicked. Researching internet and stackoverflow.com i found 3 solutions: Using repeater insi...