I'm taking values from that application configuration file, with the command -
system.Configur ation.Configura tionSettings.Ap pSettings.Get(" name")
-- similarly,, i want to update that config file...
There is a function like this..
system.Configur ation.Configura tionSettings.Ap pSettings.Set(" name",str)
-- but when i'm using this, error is coming up.. like this cannot be editted..
User Profile
Collapse
-
How to write Into a Config file through VB.Net?
-
To get the current path in VB.Net... give Application.Sta rtupPath
or..
Enviroment.Curr entDirectory
Try these -
Dim RatingSum As Integer = Ds.Tables(0).Ro ws(0)("RatingSu m").ToString ()
Dim columncount As Integer = Ds.Tables(1).Ro ws(0)("columnco unt").ToString( )
Dim Rating As Integer = RatingSum / columncount
Return Rating
-------
Change the datatype of "Rating" from Integer to "Double"...
Dim Rating as Double =RatingSum/ColumncountLeave a comment:
-
The CInt function might help you.
CInt("1")
and many more conversions are available starting with C... (CDlb -- to convert to double, etc)Leave a comment:
-
Active Directory Searching thru vb.net
How can i search and get ALL the email ids from active directory? I have list of 1350 users.. from which i'm able to retrieve only 1000 users...
No activity results to display
Show More
Leave a comment: