how to write in C#

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

how to write in C#

 
0
  #1
Jul 16th, 2007
Hi everybody,
Sub Validate_Data (Src As Object, Args As GridviewUpdaeEventArgs )

If Not IsNumeric(Args.NewValues("BookPrice")) Then
Args.Cancel = True
EditMSG.Text = "-- Book Price is not numeric. Record not updated." End If

How to write this if part in C#.

Please give the answer.

Thank you,
Aravind .
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: how to write in C#

 
0
  #2
Jul 16th, 2007
Have you even tried? It looks like all your posts are just asking us to do work for you. Show some effort please.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 83
Reputation: ProgrammersTalk is an unknown quantity at this point 
Solved Threads: 7
ProgrammersTalk's Avatar
ProgrammersTalk ProgrammersTalk is offline Offline
Junior Poster in Training

Re: how to write in C#

 
0
  #3
Jul 17th, 2007
errr... you should at least google it first, and then ask question once you tried it and didn't work XD

but basically you need to learn how to use class in C#, it's similar to Java
The ProgrammersTalk Community | Programming & Marketing | Buying & Selling Script
Hang out place of novice and intermediate programmers
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 29
Reputation: aravindkishore is an unknown quantity at this point 
Solved Threads: 1
aravindkishore aravindkishore is offline Offline
Light Poster

Re: how to write in C#

 
0
  #4
Jul 17th, 2007
Hi guys,
Sorry actually I am beginner in .Net technologies.Thats why I am facing problems.Any how I found the solution .And here is the solution hoping it will be useful for someone.

Please give the alternatives if any
---Updating_Row(object sender, GridViewUpdateEventArgs e)
{
string str = e.NewValues["quantity"].ToString();
double NUM;
bool isNum = double.TryParse(str, out NUM);
if (isNum==false)
{
e.Cancel = true;
EditMsg.Text = "-- Book Quantity is not numeric. Record not updated";

}
}
Thank you,
Aravind
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 3
Reputation: abdul4484 is an unknown quantity at this point 
Solved Threads: 0
abdul4484 abdul4484 is offline Offline
Newbie Poster

Re: how to write in C#

 
0
  #5
Jul 23rd, 2007
hi arvind.

if u want to convert the code vb to c# and wise versa then the following link will definately helpful to you
http://www.developerfusion.co.uk/Uti...sharptovb.aspx
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC