| | |
how to write in C#
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2007
Posts: 29
Reputation:
Solved Threads: 1
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 .
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 .
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
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
Hang out place of novice and intermediate programmers
•
•
Join Date: Feb 2007
Posts: 29
Reputation:
Solved Threads: 1
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
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
•
•
Join Date: Jul 2007
Posts: 3
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Write to hex, is it possible? (C)
- Read/write to same file > once, Help (C++)
- write into and read from JTextField (Java)
- How do you write a code which compiles in c but not in c++? (C++)
- Read and write to an ASCII Text file (Java)
- AGP fast write (Monitors, Displays and Video Cards)
- Medion DVD RW will not write DVD's (Storage)
Other Threads in the ASP.NET Forum
- Previous Thread: how to store and retrieve data from cookies
- Next Thread: Need Information Regarding Microsoft Certification Technology Specialist
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dropdownlist dropdownmenu dynamic edit embeddingactivexcontrol expose findcontrol flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list login menu microsoft mono mssql multistepregistration nameisnotdeclared numerical objects order panelmasterpagebuttoncontrols problem ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sqlserver2005 ssl suse textbox tracking unauthorized validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment webservice wizard xml youareanotmemberofthedebuggerusers






