Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How should I code this?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01398722
Message ID:
01398741
Vues:
91
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>Sorry, how can I convert this
>
> _dtOrder = biz.Find(this.txtOrderNo.Text, this.dtgStartDate.Value, this.dtgEndDate.Value);
>
>My biz object has this signature Find(int? OrderNo, datetime? StartDate, datetime? EndDate)
>
>I tried to add (int?) and (int) in front of the OrderNo.Text, but it doesn't compile.
>
>Thanks a lot in advance.
>
>UPDATE. This seems to compile
>
>_dtOrder = biz.Find(Convert.ToInt32(this.txtOrderNo.Text), this.dtgStartDate.Value, this.dtgEndDate.Value);
>
>Am I right?

That's what I was going to suggest, Naomi.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform