Jump to content
Xtreme .Net Talk

Muhad

Avatar/Signature
  • Posts

    40
  • Joined

  • Last visited

Everything posted by Muhad

  1. I have a couple of buttoncolumns in use now. I don't understand how to enable row selection!
  2. What the heck makes this event fire? It's in my code and was inserted by VS. When debugging I can set break points and all is ok except for this bugger. Any ideas would be appreciated.
  3. Thanks guys. I will try out your ideas. Seems like either one will work ok.
  4. Ok, I read in the Sql Server documentation that this is not the proper way to use 'waitfor'. I now use the Sql Server Agent to execute the Job. Works perfectly!!
  5. The following code does work but when the stored procedure is called it takes about 10 seconds for it to load. I am not refering to the 30 minute wait before the name is deleted. Anyone have any ideas why the call would be so slow? SERVICE CODE conPubs = (New SqlConnection("Server=blah blah blah") cmdCommand = New SqlCommand("DeleteName", conPubs) cmdCommand.CommandType = CommandType.StoredProcedure cmdCommand.Parameters.Add("@Name", Name) cmdCommand.Parameters.Item(0).Value = Name conPubs.Open() cmdCommand.ExecuteNonQuery() conPubs.Close() STOREDPROCEDURE CODE Create Procedure[DeleteName] @Name varchar (30) As Begin Set NoCount On WaitFor Delay "00:30:00" Delete From NameTable Where Name = @Name End GO
  6. If found this code sample --> Dim myConnection As New OleDbConnection(myConnectionString) Dim myCommand As New OleDbCommand(mySelectQuery, myConnection) myConnection.Open() Dim myReader As OleDbDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection) While myReader.Read() Console.WriteLine(myReader.GetString(0)) End While myReader.Close() The only difference I see is that the Open() is after dimensioning the Command. Also have you tried removing CommandBehavior.CloseConnection ?
  7. I would like to see the code to learn how to set up the class. It would be a great example.
  8. Any chance you could post the class code file here for us to download?
  9. I just drag the style.css to the form I want it on; all is find then.
  10. That's great news! I hated MS moving my html code structure into uber long lines of code. Really tacky! lol
  11. When IE or Nav close down how can this be trapped? Unload and Disposed events are no good to use because they fire when go to other pages.
  12. Muhad

    set focus

    I needed that real bad. Thanks for posting the code!
  13. I have a control to put on some of my web pages. This control needs to execute a subroutine that is on whatever page it is put on. So I press a button on this control to execute a subroutine on the qiven web page that the control is on. The problem is I can't find any way to execute the subroutine. I can't find a way to dereference the path to the subroutime. I am using VB.net 2003. I tried looking at the Page and Application objects but I see nothing to use. I would appreciate any help!
×
×
  • Create New...