Getting error while converting string to double: Input string was not in correct format
Select Case LocalMeasuringUnitText
Case "Currency"
'do the conversion hereDim ConversionRate As Double = GetConversionRate(_LanguageID)
Dim UKValue As Double
'String.Format("{0:c}", SelectedRow(rowloop).Item("TransData").ToString())
Dim varValue As Object = NothingDim Stringvalue As Object = SelectedRow(rowloop).Item("TransData").ToString.Trim
'varValue = Double.TryParse(Stringvalue, varValue)
'CType(Stringvalue, System.Double)
'UKValue = Convert.ToDouble(Stringvalue) / GetConversionRate(ConfigurationManager.AppS...
how to get start with .NET
the net help people installed to my desktop
1-microsoft visual studio .NET enterprise developer 2003
2-microsoft .NET framework 1.1
what else do i need ...??? and how can i try with some simple code in VS.Net and run it to see
wat happen...?????
please help
If you want to develope web applications, then you'll also need IIS on your PC. That'll require XP-Professional or Windows 2000/2003, but XP-Home edition won't allow IIS installation.
As for how to get started, you can search the web for some tutorials or buy a good book on VS. The topic is way too vast to...
Getting Start With .net
hi
i'm intersted to learn asp.net (vb or delphi) .
i programming with delphi6 but i'd like to tp know something about programming in internet specially with .net .
i hear about microsoft.net with delphi 7 that i can programming with delphi in .net .... is it right ?
what 's our opinian about it ? and better to learn Vb.Net or continu with delphi(or delphi.net)
thanks.
Ali Darabian
I think there is some support for Delphi in .Net.
However, you will find much more support from the user community if you choose a more popular language such as VB.Net or C#. Since your al...
Converting classic to .NET 2 code, and .NET gets an error back from ADS?
For future-proofing, our Internal Phone Directory is being moved onto our AD servers, and obviously we're using LDAP for queries.To get the phoneboook queries working, I adapted the current classic ASP code to use LDAP, and that works fine. However, we're wanting to move these pages to .NET, and that's where the problem comes in. Using the same basic logic from the Classic code (90% of its unchanged) to produce an LDAP query, I get the error 155 Unknown error (0x80005000)This is using the same website, and so the same credentials - unless aspx pages run und...
used a c#.net to vb.net converter and am now getting a syntax error.
ok I used a cool utility at http://www.kamalpatel.net/ConvertCSharp2VB.aspx to convert some c#.net to vb.net and it spit out a bunch of code which almost works but I am getting a syntax error on this line
Imports (StreamReader sr =
Shadows Function)() As StreamReader(objResponse.GetResponseStream())
I tried it that way and also like
Imports (StreamReader sr = Shadows Function)() As StreamReader(objResponse.GetResponseStream())
but either way gave the same error
Compiler Error Message: BC30035: Syntax error.
Source Error:
Line 26:
Line ...
Where to start and how did you get started?Hi, I have had a feeling for a long time to jump into the adds market for some time due to my low income (shooting for the stars) and I don't have anything better to do these days. But I find it really difficult not to give up due to lack of guides (what I can find atleast) and all the hard words which only makes me confused. But I won't give up. Never. Not sure if this is the right place to post this, but I deffinitly would be really greatfull for help getting started. How did you get started?
+If there are any teacher that wanna show me the ropes private, I can give payment with ...
System.Net.Mail is giving error CS0029: Cannot implicitly convert type 'string' to 'System.Net.Mail.MailAddress'
I'm getting an error while trying to use the wizard to create a form and than pass it the vaibles to Mail. Any help would be much appreciated.
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
try
{
message.From = txtEmail.Text;
message.To.Add("admin1@yoursite.com");
message.Subject = "Feedback";
message.CC.Add("admin1@yoursite.com");
message.CC.Add("admin2@yoursite.com");
message.IsBodyHtml = false;
message.Body = txtMessage.Text;
smtpClient.Send(message);
lblStatus.Text = "Email successfully sent.";
}
catch (Exception ex)
{
lbl...
Converting String to Float
Can anyone help me with the following please:
I have the following class:
using System;
{
public class Circle
{
float fxCenter, fyCenter, fRadius;
// Constructor
public Circle()
{
// Initialize internal variables
fxCenter = 0;
fyCenter = 0;
fRadius = 0;
}
public float Top
{
get
{
return fxCenter - fRadius;
}
set
{
fxCenter = value + fRadius;
}
}
public float Radius
{
get
{
return fRadius;
}
set
{
...
Getting Started with .net and a few questions
Hello I've done some asp and php programming along with various other languages in the past and slowing getting my head around .net.I have a small project of creating a Holiday Booking system on our Intranet and just trying to get the first part to work properly will hopefully get me sorted for the whole project. The Intranet is running on .net 2 and I prefer to use the VB code rather than C#. This is connecting to an SQL server.My initial page that I am trying to create is just for an admin user to view which dates in a table have been specified as Bank Holidays and be able to add ...
Converting String to Minutes in .net
hi all,
i have a string value(Ex:"915"),i need to convert in to minutes(EX:15:15)
please provide me the code for that.
Hi,
As per my calculations 915 comes to 15:25 that is 15 hr 25 min and not 15:15. If you think I am correct, here is the code:Dim hr As Integer = CInt("915") / 60
Dim min As Integer = CInt("915") Mod 60
Regards...
How to convert float to varchar or string..
I've three columns:
Length Width Height
1.5 2.5 10
2 3.7 19
in Query I want to display L...
Getting all text at start of a string
Hello,I have a string (from a weather feed) that looks like:Monday: Mainly Sunny, 25.5°C Is it possible to get everything before the :So I can just get the day, and not the conditionsThe idea is that the feed looks likeMonday: asdsfasfMonday Night: asdsfasfTuesday: AFASFetc,Thanks
Try this: string s = "Monday: Mainly Sunny, 25.5°C";
string d = s.Split(':')[0];Thanks, EdMicrosoft MVP - ASP/ASP.NET...
Getting started with JScript.NET
I'm a Javascript and Actionscript developer, and the thought of being able to do server-sides in something I know was too good to resist. Does anyone know some good tutorials for developing ASP.NET pages in JScript? I can find lots of console code, but simple things are hard: like I can't even figure out how to print something out to the web page (just a string). What I'm really trying to do is access a database, verify a login, and print JSON out to the response. What should I do to start? Is there a better way to do this? (IE: using some JSON library already?). I'm commun...
How do I convert strings to floating number?Hi there,
I have a simple problem that I'm sure has been asked before (so why not
again ;))
I have a list like this:
1e-100
2e-100
1e-45
5e-10
1
10
20
and want to make correct assignments:
1e-100 SMALL
2e-100 SMALL
1e-45 BIGGER
5e-10 BIGGER
1 BIGGER
10 BIG
20 BIG
But with this code
while (<>) {
chomp;
if ($_ lt 1e-50) {
print "$_\t SMALL\n";
} elsif (($_ gt 1e-50) && $_ lt 5) {
print "$_\t BIGGER\n";
} elsif ($_ gt 5) {
print "$_\t BIGGEST\n";
}
I only get
...