convert VB to c# - web dev

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

Hello,

Anyone know how to do the following in c# - using inline codeblocks?

<% If Request.Form("Name") = "Gary" Then %>

<asp:RequiredFieldValidator ID="GarysValidation" ErrorMessage="Gary, you
have chosen the wrong option<BR>" ControlToValidate="Name" Display="Dynamic"
runat="server"></asp:RequiredFieldValidator>

<% End If %>

Thanks for any help,

Regards,

Gary.
 
Gary,

C# code is done in the newsgroup

microsoft.public.dotnet.language.c#

For those who are searching this newsgroup it is not only my idea that it is
cleaner not to have VB6 or C# code in it.

Cor
 
Back
Top