943,749 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 5278
  • ASP.NET RSS
Jul 16th, 2007
0

how to write in C#

Expand Post »
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 .
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 16th, 2007
0

Re: how to write in C#

Have you even tried? It looks like all your posts are just asking us to do work for you. Show some effort please.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 17th, 2007
0

Re: how to write in C#

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
Reputation Points: 21
Solved Threads: 7
Junior Poster in Training
ProgrammersTalk is offline Offline
83 posts
since Jun 2007
Jul 17th, 2007
0

Re: how to write in C#

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
Reputation Points: 10
Solved Threads: 1
Light Poster
aravindkishore is offline Offline
29 posts
since Feb 2007
Jul 23rd, 2007
0

Re: how to write in C#

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abdul4484 is offline Offline
3 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: how to store and retrieve data from cookies
Next Thread in ASP.NET Forum Timeline: Need Information Regarding Microsoft Certification Technology Specialist





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC