Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. You can loop through the array and build a datatable or dataview which can then be bound to the datagrid. There are many examples around here for building datatables and dataviews, I'll try and find one.
  2. I don't get why you're using a Delete statement as well as adding a Command.Parameter. Executing the Delete should surfice.
  3. Is 'temp' your table? What does your code look like preceeding the Fill method? Once the Fill works you can do something like this... dim dv as dataview dv= myDataSet.tables(0).defaultview dv.rowfilter = "someField = " someVar
  4. Have you coded in an object oriented style?
  5. You can put all the data into a dataset/dataview then filter the dataview.
  6. As far as I know you can't do that in a safe manner.
  7. The BoundColumn has a property called DataFormatString, you can set it to something like this ... {0:g} More details here http://ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpcondatetimeformatstrings.htm
  8. You can create a class to handle all the database stuff and then create an instance of that class or inherit it.
  9. try this out from JDT http://www.visualbasicforum.com/showthread.php?threadid=12689&highlight=spellcheck you will need to remove the old html tags in order to see his code.
  10. Is this so you can query the report? If so, then yes you can.
  11. I'm not sure if this will work... surround the Eval with <pre> tags.
  12. Since the dataset is 'disconnected', it cannot requery without going back to the source.
  13. Robby

    Anchors

    Or you can disable SmartNavigation for that page
  14. Robby

    SendKeys.Send

    try... SendKeys.Send ("{BS}") [edit]D'oh, I should refresh my pages once in a while [/edit]
  15. You should make the connection at run-time.
  16. Rightclick the project folder and Add AspNet as a user in the security tab.
  17. Just handle both buttons with the same handler
  18. You can store the dataset in a Session or try this... 'not sure if this will work though. Dim expds as dataset = ctype( grd.datasource,dataset)
  19. Why or what are you trying to do?
  20. You can save it to a Database table or a delimited file (comma or tab). Loop through the array saving one item at a time. Once in in a database you can bind it to a datagrid. If you don't want to save it, you can loop through the items building a datatable to again bind it to a datagrid.
  21. You can try the following, I will prefix the variables so you'll understand the data type which are implied... dim s as string s = "SELECT * FROM " & strTable & " WHERE FieldString1 = '" & strVar1 & "' AND FieldString2 = '" & strVar2 & "' AND FieldNum1 = " & intVar1 & " AND FieldNum2 < " & intVar2 'Notice that string types need to be surrounded by single quotes and numbers do not.
  22. You can use the Context.Handler without resorting to the session objects.
  23. The code to perform the spell check is not very complex, it's getting a dictionary that's near impossible.
  24. Here's a small sample I put together. If you enter anything but 100 into the textbox it will not pass validation. Take notice of the client-side script in the head section, and the parameters of the validator. customvalidator_sample.zip
×
×
  • Create New...