Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. Can you post your relevant code?
  2. I see most of my code as art.
  3. I don't have an answer for this.
  4. As long as the references and paths are virtual like.. http://localhost/WebFolder1/... it will work. The IIS on the new machine needs to do some configuring as well if they want the wwwroot to be on D. Either way as long as you don't do something like this... C:\inetpub\wwwroot\webfolder1\... in your code.
  5. I haven't used 10.0, I doubt that simple code like this would make any difference. (but I could be wrong)
  6. Was the above code given to you or did you make it up yourself? If the latter then I guess we can change it, or did you just want an expanation as to why it's reacting this way?
  7. send it byVal instead of byRef, it should work
  8. If all you want is to add controls at runtime... For x = 1 To 20 txt = New textbox() With txt AddHandler .GotFocus, AddressOf txtClick .Text = "Textbox " & x.tostring .Location = New Point(0, x * 25) .Size = New Size(200, 60) End With Controls.Add(txt) Next
  9. something like this... Dim dgStyle As New DataGridTableStyle() With dgStyle .AlternatingBackColor = Color.LightGray .BackColor = Color.WhiteSmoke .ForeColor = Color.MidnightBlue .GridLineColor = Color.Honeydew .HeaderBackColor = Color.MidnightBlue .HeaderFont = New Font("Arial", 8.0!, FontStyle.Bold) .HeaderForeColor = Color.White .LinkColor = Color.Teal .MappingName = "Appointments" .SelectionBackColor = Color.Yellow .SelectionForeColor = Color.DarkMagenta End With Dim grd As New DataGridTextBoxColumn() With grd .HeaderText = "Some title" .MappingName = "myFieldName" .Alignment = HorizontalAlignment.Center .Width = 45 End With dgStyle.GridColumnStyles.AddRange(New DataGridColumnStyle() {grd}) DataGrid1.TableStyles.Add(dgStyle)
  10. There are a couple of examples in this download...http://microsoft.com/downloads/details.aspx?FamilyId=87951CB9-5AEB-4F46-9BF0-2B3E3664BE77&displaylang=en
  11. Scenario 1 is good but... I would keep the updates in a Stored Proc and use the sqlCommand and sqlParameter as needed. Scenario 2. What happens if the user decides to add tons of new records before saving/submitting them, it could get hairy if all the users do this.
  12. I'm guessing that you're using Win Forms. I don't think that you can display a partial month in the calendar. However, when the user clicks on a date outside your range then either discard it or alert them.
  13. Why are they all named LabelA1, is your Counter incrementing ?
  14. or even Server.Transfer()
  15. Does it work if you skip this line WriteCSV(reader)?
  16. Follow this thread http://www.xtremedotnettalk.com/showthread.php?s=&threadid=72431&highlight=threading
  17. D'oh, beaten again, well here it is anyways. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_sa2_4k50.asp
  18. There a couple good solutions here ... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskpassingvaluesbetweenwebformspages.asp
  19. Where did you get the System.Data.OracleClient.dll ? You can use System.Data.OleDb instead.
  20. Are you using VB.NET?
  21. I'm closing this this thread because it's a few months old and was never answered to. You can open your own thread and describe your specific problems there.
  22. At the top of your page ... Imports System.Data.SqlClient If that errors out then add the dll as a reference to your project.
  23. USe an SQL statement to retrieve the data.... "Select Lastname From Product Where id = 1"
  24. Check if this helps http://www.xtremedotnettalk.com/showthread.php?s=&threadid=69196&highlight=AppendHeader
×
×
  • Create New...