Nov 2 2006

DropDownList and RequiredFieldValidator

Category:Bil@l @ 12:57

Here is a small example to show you how to validate a DropDownList using RequiredFieldValidator:

<form id="Form1" method="post" runat="server">
   <asp:DropDownList id="DropDownList1" runat="server">
       <asp:ListItem Value="-1">--> Choose  <--<asp:ListItem>
       <asp:ListItem Value="1">Lebanon</asp:ListItem>
       <asp:ListItem Value="2">Kuwait</asp:ListItem>
   </asp:DropDownList>
   <asp:RequiredFieldValidator id="RequiredFieldValidator1"
       runat="server" ErrorMessage="You must select a valid option"
       ControlToValidate="DropDownList1" InitialValue="-1"
       Display="Dynamic" />
<P>
    <asp:Button id="Button1" runat="server" Text="Post Back" />
<P>
<form>

Hope this helps,

Regards

Tags:

Nov 2 2006

the tragedy of my society - Part 2

Category:Bil@l @ 07:51

To be a PERSON with whatever religion you are, with a BE in Computer Engineering with Distinction from a very know univeristy, in my society is "WAW".

To be a PERSON with whatever religion you are, with a BS in Computer Science with Distinction from a very know univeristy, in my society is "WAW".

To be a PERSON with whatever religion you are, with a Minor in Mathematics with Distinction from a very know univeristy, in my society is "WAW".

To be a PERSON with whatever religion you are, with an MVP in ASP/ASP.NET from Microsoft, in my society is "WAW".

To be a PERSON with whatever religion you are, teaching students at a Learning Center with a high reputation, in my society is "WAW".

To be a PERSON with whatever religion you are, with a very tender heart, caring, helpful, lovely, etc .... , in my society is "WAW".

To be a PERSON with whatever religion you are, with a good position in a multinational company with over 60,000 employees world wide, in my society is "WAW".

TO BE A LOVER OR HUSBAND TO A LADY, WITH A DIFFERENT RELIGION THAN THAT PERSON ABOVE (WHOM THE SOCIETY SAID "WAW" ABOUT HIM), IS NO WAY, IMPOSSIBLE, FORGET ABOUT THAT .....

What do you think of such a society? The main question, what do you think of this PERSON? Is a person judged by his religion or by his acts? Is a person judged by his religion or by his merits and personality? Is a person judged by his religion or by what he have achieved in his life?

I know the answer, I wish my soceity knows the answer too!!!

Tags: