Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. I changed my outlook on the matter, I took on a full-time position last week. :)
  2. Are you adding the controls at Design-time?
  3. try ... Set rs1= cmd.Execute
  4. It checks if the object exists. You can also fet rid of the extra brackets, and shouldn't it be ... If Not Request.Cookies("FirstName") is Nothing Then
  5. Is "WIN2000\ANASQL" indeed your the server name? Try using this instead (if it's on your local machine)... 127.0.0.1
  6. Yeah and all you need is to maintain one file
  7. So other than the Solution, all else remains the same?
  8. Yeah, I noticed that yesterday.
  9. Robby

    Deployment

    I guess you can let them download it from Microsoft, you can direct them to the exact page and give them a small piece of instruction as well. In a year or so, most people will have the Framework already. Also, I wouldn't package it with my app. (my opinion)
  10. Yes, the DG and the DS may not be identical, but since the ID is hidden in the DG and cannot be altered by the user, then they should be (in this case) in sync. Also, there is a DS property HasChanges which you can use to see if in deed there were changes. Then use AcceptChanges to reset the HasChnages once you update the DB.
  11. Make your reference to the Dataset Column 0. (Instead of the Datagrid)
  12. process.start works fine for me on a web page. What does you code look like? Instead of this...<a href=c:\WINNT\notepad.exe myfile.txt> You should do this...<a href='../myFolder/myfile.txt'> (this would be the location of the text file on the server)
  13. There are many sampleshere ... http://samples.gotdotnet.com/quickstart/aspplus/ Select Server-Side Data Access in the left hand menu
  14. There are several good books published by Wrox , you may want to checkout. Select 'Beginning' and enter 'NET' in the Title Containing.
  15. Oops, I made a mess of that one. :(
  16. Be careful though, if you bins the Datagrid to a Dataset. The Dataset will not know about these changes (Dataset1.HasChanges will still be False).
  17. You can use FromArgb and ToArgb.... Me.BackColor = Color.FromArgb(255, 0, 0)'simulate a color change Dim x As Color = Me.BackColor ' get the color value of a control into x MessageBox.Show(x.ToArgb.ToString)' use this to save the value as a string textbox1.BackColor = x 'since x is already of type Color, we can assign it to a control [edit] 'to pu it simply, use this method to save the color value... Me.BackColor.ToArgb.ToString() [end Edit}
  18. You should treat it as an entirely new language. This may help you get started... http://www.xtremedotnettalk.com/showthread.php?s=&threadid=69808
  19. try this... MyConnection = new SqlConnection("server=127.0.0.1;database=PictureShare;Trusted_Connection=yes"); MySQLDataAdapter = new SqlDataAdapter(); SessionCmd String = "INSERT INTO tmPicIndex (UserID, PicName, PicDesc) VALUES ('" & user & "', '" & savename.Value & "', 0)"; MyCommand = new SqlCommand(SessionCmd, MyConnection); MyCommand.Connection.Open(); try { MyCommand.ExecuteNonQuery(); } catch(SQLException Exp) { if (Exp.Number == 2627) { } else { } } MyCommand.Connection.Close();
  20. I'm not sure what you mean... Do you want the user to continue working while downloading?
  21. Can you explain with some detail please.
  22. One way is to use the Leave or Validating event.. Private Sub TextBox2_Leave(ByVal sender As Object, ByVal e As EventArgs) Handles TextBox2.Leave TextBox2.Text = TextBox2.Text.ToUpper End Sub
  23. Yes to the KeyPress....Handled =True
  24. For the right-click you can add a New context menu to the textbox. Ctrl+C can be handled by the Keypress event
  25. You can simply provide the link (path) to the exe on the server in an <a href>. (it can be contained in a Label or Hyperlink control)
×
×
  • Create New...