Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. do you have a handler... Sub ddDetails_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles ddDetails.SelectedIndexChanged getIt() End Sub
  2. What are you doing that causes the timeout? :)
  3. Robby

    IIf

    Bucky had already told you how to do it in his first post. ControlChars
  4. Oh, I should've looked closer at the results of that search, I thought they only had .NET samples. Oh well.
  5. If the resx file was missing, it is re-created when you run the app. Maybe you're missing the original. Is this an asp application using C#?
  6. VB and CS files are only single files, do you mean aspx and vb or cs files? Because you do need both.
  7. check out the first one in the Re-Bar section ...http://www.codeproject.com/docking/
  8. If you decide to go with RegEx, Wyrd has a tutorial on it here, http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49579 I would try and use SubString to start.
  9. It is possible. You will need to parse the entire string looking for any operator and all the numbers which surround them. Perhaps place them into an array from a Regular Expression (split)
  10. Well the first thing is to create a test page and name it index.htm. If that works, we can then tackle the rest.
  11. I've heard of it but I don't know what it is. Does it have anything to do with .NET?
  12. just type it into the Body section of the aspx page... <Input type=hidden.... Or at run-time, send it to a Label of however you send html tags.
  13. Oh, I forgot to mention, you can't use Code-behind with Web Matrix. :(
  14. And with Web Matrix you don't need IIS, it ships with its' own server. Maybe we should start recommending it to the members having IIS troubles. *As Robby thinks out-loud*
  15. I'm sure it's possible and maybe even easy, but I can't think of any way to do it. Sorry.
  16. Divil, very nice sample (HTML Events)
  17. Well, it does add some code such as default params for the controls, but I really don't see anything wrong with that. For me to use Notepad to code ASP.NET would be like stepping back in time to JAVA or PERL or even classic ASP. Ugh to all. :( BTW wyrd, were you refering to Web MAtrix ?
  18. Yeah, for classic asp and html, I use mostly notepad, but for .net I use the VS IDE, and I do it all in the code-behind. I never use the designer, primarily because that's the way I learned and that's the way I like it. :) BTW, I haven't notice any additional code generated by the ide. ?
  19. I've installed .net more than 10 times, a couple of PCs at home and a few at work. The more times you do it, the better you get at the order of things. :) Sorry we couldn't solve it for you.
  20. hmmm, I re-read your original post, do you want the user to save the Web-Form as a Word Doc... with all the textboxes and formatting? Or save a doc from the server disk?
  21. What method are you using to stream the Doc?
  22. Silly question... Is IIS running?
  23. Oh, I thought you were using VB, I think I have something in C#, I'll check...
  24. try this.. Private Function GetTableValue() As Integer Dim drSqlReader As OleDbDataReader Dim SqlCMD As OleDbCommand Dim SqlCN As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c\test.mdb;User ID=;Password=;") Dim strSql As String, intTemp As Integer Try If SqlCN.State = ConnectionState.Closed Then SqlCN.Open() strSql = "SELECT PRIMARY_KEY FROM MyTable WHERE NAME = '" & txtName.text & "' AND ADDRESS = '" & txtaddress.text & "'" SqlCMD = New OleDbCommand(strSql, SqlCN) drSqlReader = SqlCMD.ExecuteReader() If drSqlReader.Read Then intTemp = DirectCast(drSqlReader.Item("PRIMARY_KEY"), Integer) End If Catch intTemp = -1 Finally If Not SqlCN.State = ConnectionState.Closed Then SqlCN.Close() If Not drSqlReader.IsClosed Then drSqlReader.Close() If Not SqlCMD Is Nothing Then SqlCMD.Dispose() End Try Return intTemp End Function
  25. If all you really want is the value of field PRIMARY_KEY then you don't need a Dataset or a CommandBuilder. With your code, what happens if there is more than one row containing that Name and Address?
×
×
  • Create New...