This is my scenario.
I have many validation controls in my Web Site (created using VS2005) and I want to give the validation expression as a Constant value which is declared in another project.
I'm trying this way, but it doesn't work. Any idea..?
In BLL Project
namespace BLL
{
public partial class RegExDemo
{
public const string Constant = @"\d{10}";
}
}
In Web Site
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegExDemo.aspx.cs" Inherits="TestWeb.RegExDemo" %>
<%@ Import Namespace="BLL"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat ...
Go to the complete details ...