Jump to content
Xtreme .Net Talk

Diesel

Avatar/Signature
  • Posts

    682
  • Joined

  • Last visited

Everything posted by Diesel

  1. Hahhaahahaha *slurp* hahahhahaa
  2. If you give me your #, I'd like to discuss this topic with your daughter. Or her yahoo/msn/email will suffice.
  3. Why the heck am i not an admin
  4. 6987 is 27015 int.Parse("6987", System.Globalization.NumberStyles.HexNumber);
  5. How about in javascript? May not work with asp.net controls though http://javascript.internet.com/forms/auto-tab.html
  6. What version of the framework are you working with?
  7. Why not use more high level data structures in a more object oriented fashion? Translation: That's some ugly code!
  8. Anyone know why and how to stop Visual Studio from locking a file during runtime. Specifically, Im running a web app, and I want to edit a javascript file in VS, one that is in use in the runtime environment. Visual Studio sometimes locks the file from editing. I've performed the same operation multiple times, and only part of the time is the file locked.
  9. Debug it, what is the value of Me.DataGrid1.DataKeyField Change Me.SqlSelectCommand2.Parameters("@PruID").Value = Me.DataGrid1.DataKeyField to Me.SqlSelectCommand2.Parameters("@PruID").Value = int.Parse(Me.DataGrid1.DataKeyField)
  10. Oh my god. You realize that 6/03/06 is not a string. "6/03/06" is a string. Use DateTime.Parse
  11. Why would you expect the listbox to filter? One way would be to check onselectedIndexChanged for 1st listbox and manually populate the second.
  12. Assuming that the select command are bound to the correct datasets, and the datasets to the correct grids... Make sure Me.DataGrid1.DataKeyField is returning the right value Me.SqlSelectCommand2.Parameters.Add("@PruID", SqlDbType.Variant) set the PruID var to the correct type
  13. The command.ExecuteNonQuery makes each insert individually, the dataAdapter update runs it in a batch, much less initialization data for each insert. Are you using Sql Server? If so, the bulk copy program is probably the fastest way...http://dotnetjunkies.com/WebLog/stefandemetz/archive/2004/08/19/22566.aspx otherwise, how about creating a stored procedure for the insert and assigning that as the insertcommand for the dataAdapter. Also, use a counter variable to add the objects to the dataTable, as using the foreach statement retrieves the enumeration property each time.
  14. check the Resources object before assigning My.Resources.de-DE != null
  15. Brief is the keyword. I actually used to contribute. Anyway, you ask a stupid question... Business classes deal with business operations..ie...anything that doesn't have to do with the internals of the application...calculations and processes that return real world data...Database classes deal with the creation and manipulation of the data. As for the physical locations...why don't you figure out your namespace conventions and create a folder heirarchy similar to the namespace heirarchy.
  16. just blink really fast when you scroll.
  17. You should put the classes aside for a few years and read a book about programming.
  18. Ah, a formal request. Here you are! http://www.xtremedotnettalk.com/showthread.php?t=84465
  19. We use http://ibatis.apache.org/ at my work. and here's some random article http://www.codeproject.com/vb/net/data_access_layer.asp?df=100&forumid=15360&exp=0&select=879501
  20. He was probably too stupid to figure out how to build a common interface between the databases. There are a few ways to build an api to interact with multiple db servers. Looks at the ado.net design. Common interfaces and base classes, and then specific objects when it comes to actually connecting and running queries on the server. Or you can use objects that themselves check for the type of db, such as odbc. Also, there are third party persistence api's that are able to interact with any db's they have drivers for.
  21. Don't know if I got it...You want to preview html code instantly? Why?
  22. I'll pair program with you Mskeel :) Wait...yeh sure why not. I'll program, you can rub my belly.
  23. Umm...How about taking the variable out of the string public string GetMenuReference() { return String.Format("return __showContextMenu({0},{1});", Controls[0].ClientID, numofItems); }
  24. Dude.... How about this... <textarea maxLength="300"> You have your textarea element...and a custom attribute of maxlength... on the server side, just figure out the user's custom setting and set that value <textarea maxLength=<%=textLength%> > ...Server code: protected int textLength; private void Page_Load { if (user is admin) textLength = 1000; else textLength = 100; } Anyway, if you just want to solve your current problem...check for arguments inside the limitText function. You are most likely receiving an undefined error because the function is being ran before one of the params is populated. limitText(...) { if (arguments.length < 5) return; }
  25. namespaces? By the way, I don't think it's good practice to have a variable the same name as a class.
×
×
  • Create New...