- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Software designer/developer
42 Posted Topics
Re: 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] | |
Re: Maybe cmd.CommandType needs to be stated as text. | |
Re: 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) … | |
Re: List<MyClass> list = (List<MyClass>)ListView1.DataSource | |
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 … | |
Re: 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 … | |
Re: 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 = … | |
Re: 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. | |
Re: 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 … | |
Re: 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....") … | |
Re: *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] | |
Re: [code]Dim newRow as DataRow = yourDatagrid.newrow() newRow.Item(0) = "yourText" etc. etc. etc. yourDatagrid.rows.add(newRow) [/code] | |
Re: 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 … | |
Re: 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?) | |
Re: 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) … | |
Re: 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..... | |
Re: An excellent resource for you is : [url]http://www.startvbdotnet.com/[/url] | |
Re: [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 … | |
Re: 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 … | |
Re: Have you ever checked the Date options? date.Day, date.Month, date.Year etc etc etc | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: [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] | |
Re: Check the MSDN website....there are too much changes..... | |
Re: The default size of the threadpool is 25 ;) Regards, Richard The Netherlands | |
Re: 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 … | |
Re: Google will be your friend ;) | |
Re: What's the error it's givving you? Did you try the stored procedure in your sqlserver? regards | |
Re: Print? I guess you mean print on the screen? Did you check the HttpContext.Current.Response object? Regards, | |
Re: Any code in a code-behind page which could interrupt with your form? | |
Re: 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? | |
Re: 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 … | |
Re: 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. | |
Re: 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! | |
Re: 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 … | |
Re: 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? | |
Re: [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 ;) | |
Re: 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 … | |
Re: 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 … |
The End.