Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. Connected would be a DataReader, it is forward only and read only, DataSets and the like are all disconnected. First of all; insert,delete & update should be done using Stored Procs. (If your DB permits) If you have many table to select then you can fill a datset with these many dataTables, this way you're only hitting the DB once.
  2. There is a ItemDataBound event (or something similiar) place a routine in there to evaluate the values and conditions.
  3. Hopefuly you're able to get a DataReader going: Loop your dr with something like this... 'option 1 using an html image tag While dr.Read <img src=" & Convert.toString(dr.("myfieldWithImagePath")) & " />" end while 'Option 2 using an ASP Image control While dr.Read dim img as new webcontrols.Image me.controls.add(img) img.ImageUrl = Convert.toString(dr.("myfieldWithImagePath")) end while
  4. Or you could've asked me. :) :)
  5. Also, you can add class names in your CSS file so that not all your A tags have the same look.
  6. good, so does it work?
  7. If anyone wants to help, they will have to do so using Private Messages.
  8. I think that one of the args in the SaveAs() is to 'not prompt for save"
  9. I have to say, a treeView is the exception to my rule of not using frames, sorry I can't help though.
  10. You would an easier time not using frames and using user controls for the menus or even templating for the entire app.
  11. Are these typos or this is the way your code looks, if the latter I'm surprised it even compiles... it should be (and by the way, you don't need to prefix with the table name when there's only a single table in your query) Also, 'key' is a keyword in SQL server, I'm not sure about Access Dim strSQL as as string ="SELECT KeyPersonel AS myKey, (LastName & ', ' & FirstName) AS Contact FROM tblPersonel "
  12. dr bieng your dataReader.... Dim arr As New ArrayList While dr.Read() arr.Add(Convert.ToInt32(dr("myIntColumn"))) End While
  13. Another thing, instead of always checking on which laguage to display anything simply change the entire thread to follow the desired culture... Thread.CurrentThread.CurrentCulture = New CultureInfo(YourCultureString)
  14. I would use a helper function such as the following... PublicFunction GetLangString(ByVal name AsString) AsString Dim info As CultureInfo = New CultureInfo(culture_string) Return rm.GetString(name, info) EndFunction Call the mthod with something like this.... homeTextbox.Text = GetLangString("myHomeMessage") and set the 'culture_string' when you instantiate the class or with the value of your Session("Language") variable ("en-US)
  15. It starts with having to inherit the WebControl, you could always design it in a webForm they simulate it in the web control.
  16. For the ASP part do the following. VS menu item Options | HTML/XML | General| Enable virtual spaces = false Tabs | Indenting = None Tabs | Keep Tabs = true Format | When saving document = false Format |When switching design to html = false Format | Apply line breaks = false HTML Specific | Enable HTML validation = false
  17. Robby

    codeprint

    There are a few addiins out there... http://www.google.com/search?hl=en&lr=lang_en&ie=UTF-8&newwindow=1&q=addin+code+print+vs.net
  18. to reiterate what Mutley said, when placing controls at runtime, you need to do this every time not just during not ispostback. You will need to add your objects into the state bag. THere's a good start http://msdn.microsoft.com/msdnmag/issues/03/02/CuttingEdge/
  19. You can use the Update method of the DataAdapter
  20. Do the other pages have "Public sourcepage As Login" and do the sending pages have "Property1"?
  21. I used to be with Interland but I can't find my old code, anyway, they have samples in their knowledge base section, I think you would put smtp.yourDomain.com instead of smtp.registeredsite.com
  22. You probable wanted something like this... Server.MapPath("db4.mdb")
  23. Trace this, what do you get? Server.MapPath(".")+ "/db4.mdb"
  24. I would use an XML file, some user's may not have privililges to use the Registry. Plus the xml is portable.
  25. I recommend against doing this because; any time you call an Access object the end user of your application will require that Access is installed on their machine. If you still want to go this route let me know.
×
×
  • Create New...