Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
75% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
0 Endorsements
Ranked #1K
~19.6K People Reached
About Me

Software designer/developer

Favorite Tags

42 Posted Topics

Member Avatar for brainne

Take a look at these : [url]http://aspalliance.com/622[/url] [url]http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx?ArticleID=0488bf0b-7cf6-4e31-a9b5-38aa4ae8cd47[/url] [url]http://msdn.microsoft.com/en-us/library/wx3b589t(VS.80).aspx[/url]

Member Avatar for jacobsonsanjay
0
288
Member Avatar for kodingkarthik
Member Avatar for apachex

you can use the sqlcommand.parameters.addwithvalue("@yourParameterName", yourValue) which should be efficiënt enough to update the values... for example: [code] string sql = "UPDATE aspnet_Membership SET Password = @NewPassword WHERE UserId=@UserId AND ApplicationId=@ApplicationId" oCom.CommandText=sql; oCom.Parameters.AddWithValue("@UserId", yourUserIdValue); oCom.Parameters.AddWithValue("@ApplicationId", "yourApplicationId"); object retVal = null; retVal = oCom.ExecuteScalar(); if(retVal != null & retVal > -1) …

Member Avatar for blackdragon1027
0
150
Member Avatar for krokodajl
Member Avatar for 4advanced

Dear reader, I'm using an IHttpHandler to show content of a PDF saved in a SQL Server 2005 database. I can't figure out why it keeps showing me [B]"File does not begin with %PDF-"[/B] When I directly write out the bytes to the response it all works fine.... Let me …

0
50
Member Avatar for fiaolle

use this funtion to find the control [CODE] Private Shared Function FindControlRecursive(ByVal Root As Control, ByVal Id As String) As Control If Root.ID = Id Then Return Root End If For Each Ctl As Control In Root.Controls Dim FoundCtl As Control = FindControlRecursive(Ctl, Id) If FoundCtl IsNot Nothing Then Return …

Member Avatar for 4advanced
1
2K
Member Avatar for TriceD

This example code explains maybe :=) [code] Dim _DT As DataTable = Nothing Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load _DT = New DataTable _DT.BeginLoadData() For i As Integer = 0 To 5 Dim _Col As DataColumn = New DataColumn("", System.Type.GetType("System.String")) _DT.Columns.Add(_Col) _Col.Dispose() _Col = …

Member Avatar for TriceD
0
2K
Member Avatar for arunasingh

If you don't want the blank row to be shown you have to set the 'enable adding' property in the designtime to be false.

Member Avatar for arunasingh
0
100
Member Avatar for arunasingh

Try this [code] Private Sub DataGridView1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyUp If Keys.Enter Then Dim _Dt As DataTable = Me.DataGridView1.DataSource If _Dt IsNot Nothing Then Dim _NewRow As System.Data.DataRow = _Dt.NewRow _Dt.Rows.Add(_NewRow) Me.DataGridView1.DataSource = _Dt _NewRow = Nothing _Dt.Dispose() _Dt = Nothing End If End If …

Member Avatar for 4advanced
0
115
Member Avatar for Ossehaas

Ossehaas, Check the StreamingContext class for additional info.... I think it will help ya out.... According MSDN: [code] Imports System Imports System.Text Imports System.Runtime.Serialization.Formatters.Binary Imports System.Runtime.Serialization Imports System.IO Imports System.Security.Permissions Class Program Shared Sub Main(ByVal args() As String) Try SerializeAndDeserialize() Catch exc As System.Exception Console.WriteLine(exc.Message) Finally Console.WriteLine("Press <Enter> to exit....") …

Member Avatar for Ossehaas
0
269
Member Avatar for bajanpoet

*only for your attention* I guess you should also check the TextFieldParser object :=) [code] Using MyParser As Microsoft.VisualBasic.FileIO.TextFieldParser = My.Computer.FileSystem.OpenTextFieldParser(filename, delimiter) End Using [/code]

Member Avatar for 4advanced
0
2K
Member Avatar for farooq82

[code]Dim newRow as DataRow = yourDatagrid.newrow() newRow.Item(0) = "yourText" etc. etc. etc. yourDatagrid.rows.add(newRow) [/code]

Member Avatar for 4advanced
0
155
Member Avatar for sierrasoft

There are a few options but one of the simplest is to detach the database from the server, copy the phisical files to the new dataserver's datapath and attach it to the new dataserver. For those actions you have to import [i]Microsoft.SqlServer.Management.Smo.SmoApplication[/i] and use the [i]EnumAvailableSqlServers()[/i] to find the available …

Member Avatar for samir_ibrahim
0
212
Member Avatar for lerkei

Can you tell us what happens before we have to puzzle? (think about getting your car back to the shop & ask the technician if he can tell you what's wrong with your car?)

Member Avatar for Comatose
0
120
Member Avatar for asif786

Why not storing them in a [i]List(Of String)[/i]? [code] Dim listOfNames As New List(Of String) Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim newName As String = "" newName = InputBox("Enter the candidates name:", _ "candidatename", "", 500, 500) If Not String.IsNullOrEmpty(newName) Then listOfNames.Add(newName) …

Member Avatar for samir_ibrahim
0
3K
Member Avatar for kerek2

I really don't understand a thing about your question! If you are asking for some help you really need to explain everything into details. We can't guess about what your goals are.....

Member Avatar for Teme64
0
237
Member Avatar for taanand

An excellent resource for you is : [url]http://www.startvbdotnet.com/[/url]

Member Avatar for 4advanced
0
95
Member Avatar for samir_ibrahim

[QUOTE=samir_ibrahim;793832]Thank you Ramy for your reply I know API are still supported, but my question was Is "ALL" API calls are included? I guess most of them. [/QUOTE] Does it matter if 'all' or 'most' are supported? What are you trying to point out with that.....? (the same on your …

Member Avatar for samir_ibrahim
0
152
Member Avatar for ireneotom

First, try it in the same sub/function. If it works you can export the functionality to some global functions/subs try this: [code] Try strCon = "provider=SQLOLEDB;User id=" & U & ";Password=" & P & ";Server=" & S & ";database=" & D Con = New System.Data.OleDb.OleDbConnection(strCon) Con.Open() 'EXECUTE YOUR COMMAND HERE …

Member Avatar for 4advanced
0
821
Member Avatar for manoj_582033

Have you ever checked the Date options? date.Day, date.Month, date.Year etc etc etc

Member Avatar for Comatose
0
97
Member Avatar for bajanpoet

Something like this? It will expand the last column in the datagridview. You can edit it to your needs :=) [code] Private Sub DataGridView1_DataBindingComplete(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewBindingCompleteEventArgs) Handles DataGridView1.DataBindingComplete Dim _DGV As DataGridView = DirectCast(sender, DataGridView) _DGV.Columns(_DGV.ColumnCount - 1).AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill End Sub [/code]

Member Avatar for bajanpoet
0
166
Member Avatar for farooq82

You must have 2 parameters declared in your Stored Procedure, called @DR and @CR, both of the type Decimal. While looping through your rows in your LoadCashBookDataSet.Tables(0) you have to execute the command based on the stored procedure & active connection. So, each time you have passed a row, you …

Member Avatar for farooq82
0
185
Member Avatar for bajanpoet

Databind() is a function which needs to be called when binding data to a datagrid in ASP.NET ! Only use datasource when binding in Windows.Forms solutions! [I]yourGrid.DataSource = yourDataSource[/I] If you had checked the posts on the first page you would have found out the solution....it has been mentioned a …

Member Avatar for bajanpoet
0
524
Member Avatar for jhonnyboy

My.User.Name Environment.UserName.ToString() You can checkout the [I]My[/I] or [I]Environment[/I] objects to find more interesting things. The My.Computer.Clock object provides properties to find the current local time for the computer and the UTC time. It also exposes the millisecond count from the computer's system timer.

Member Avatar for 4advanced
0
600
Member Avatar for sierrasoft

[QUOTE=sierrasoft;794599]How to change screen resolution programmatically in vb.net 2.0 ?[/QUOTE] Check this : [url]http://dotnet.mvps.org/dotnet/faqs/?id=setscreenresolution&lang=en[/url]

Member Avatar for 4advanced
0
107
Member Avatar for Ninad16
Member Avatar for neetigulati
Member Avatar for -mk-

Create a templatefield, insert the checkbox and afterwards, check with FindControl() wether the checkbox has been checked. The mastercheckbox needs to be inserted in the headerrow of the control. Also there can be checked with FindControl(). If it's checked, reload the page. Be aware that the controls need to have …

Member Avatar for binoj_daniel
0
481
Member Avatar for lucier
Member Avatar for chirutha12345

What's the error it's givving you? Did you try the stored procedure in your sqlserver? regards

Member Avatar for 4advanced
0
129
Member Avatar for sancti

Print? I guess you mean print on the screen? Did you check the HttpContext.Current.Response object? Regards,

Member Avatar for 4advanced
0
890
Member Avatar for squarkman
Member Avatar for Kusno
0
71
Member Avatar for audigy642

In which routine this error occures? Can you show us some code? I had such errors before but it always had to do something with IO operations. Are you trying to read or create an application-settings-file?

Member Avatar for PirateTUX
0
148
Member Avatar for squarkman
Member Avatar for Traicey

You might want to put the datasource of datagridview2 into a viewstate and read it back after Page.IsPostBack. That aint hard to manage.... [code] ' general declarations dtMemory as datatable=new datatable("YouNameIt") ' In the PageLoad_Event() : if page.ispostback then dtMemory = ctype(Viewstate("TEST"), datatable) else dtMemory = tblAdapter.Fill(blablabla) ViewState("TEST") = dtMemory …

Member Avatar for 4advanced
0
82
Member Avatar for Sheryl99

Try to find the Table, TableRow, TableCells OR Fields with yourPage.FindControl("") If the control will be found the value can be added to it. As jbennet says, the code didn't change thát much.... so it's strange it worked in 2005 and not in 2008.

Member Avatar for 4advanced
0
152
Member Avatar for exploreSPUL

Did you manage to try it yourself? I guess the reason nobody answered lies in the fact that you didn't showed us your exact coding problem. Instead you're asking us to write your code which, in my opinion, will not happen!

Member Avatar for sierrainfo
0
89
Member Avatar for sam1

I'm sorry but I don't understand your problem. Lets assume you have the below stated example, it adds a few items to the listbox and after a selection is done, it responds the selected value to the page..... Is thát what you achieved? [code] Partial Class _Default Inherits System.Web.UI.Page Protected …

Member Avatar for paslanmaz
0
132
Member Avatar for isaackhazi

hmmm..... Shouldn't thé approach be : only insert a warranty-card-number into the database after a check if the card-number already exists? You could write a stored procedure for example in which you use a 'transaction' which will be roled back if the cardnumber exists?

Member Avatar for isaackhazi
-1
342
Member Avatar for tuse

[code] SmtpMail.SmtpServer = "mysmtpserver" [/code] mysmtpserver, did you stated this value for testingpurposes? It should be a real smtpserver like mail.yourcompany.com..... Regards, Richard The Netherlands [edit] Be aware that most smtp servers don't respond on RELAY. Systemadministrators block relaying their smtp server ;)

Member Avatar for tuse
0
184
Member Avatar for Tekito

Sure you can, see the implementation below. This example is a copy/paste code from my project in which I added a class "ValidationInstance" which holds a collection of items which should be checked (or préfilled before the handler IsValid will be raisen). [code] Dim iPropertyCount As Integer = 0 For …

Member Avatar for Tekito
-1
371
Member Avatar for bpacheco1227

The way I should implement is : using the LostFocus event for the textboxes. After the lostfocus you can warn a user corresponding the maximum or minimum values needed. Second is creating yourself a class in which you calculate the FV. code below: [code] Public Class Class1 Private _FutureValue As …

Member Avatar for bpacheco1227
0
121

The End.