Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. you will need to pass an instance of the current form to the check function, rather than declaring a new one within the module. http://www.xtremedotnettalk.com/showthread.php?t=83092 may be worth having a look at as it covers how to use forms under .Net.
  2. If you are using Forms authentication then you could simply use a single DDB to store all authentication information and access it from all 6 hosted projects. When you configure Forms authentication in the web.config you can also use the same name and any cookies generated will be usable across all the projects.
  3. Are the validation controls displaying their error messages or just causing the post backs to be prevented? If the second case then have you got different versions of software on the dev machine to the hosting server? If not it may be worth re-installing the framework on the hosting server.
  4. Make sure the webserver has the .Net framework installed correctly. If you browse to this page and do a view source do you see HTML or lots of tags begining with
  5. You are probably better off asking VB6 related questions over at our sister-site http://www.xtremevbtalk.com/
  6. You may want to consider using the .Net Random class rather than the legacy VB6 Rnd function. (Just out of interest is this a port from VB6 as there is a lot of legacy constructs in there).
  7. Once intArray points to the new array as long as no other variable referes to the old array then the GC will be able to collect the memory. Note that it will not be immediatly collected though, just whenever the GC kicks in next.
  8. Curious sense of logic you have there - you do not know what objects to use therefore .Net is at fault. Also could you try to keep the language toned down - especially in the thread's title. I'm guessing that the start should be Dim dtRow As DataRow Dim dtCol As DataColumn but that is based on the variable names and nothing else. It will also fail to compile because the property is Columns not Cols. I'm also assuming that dtTableOld and dtTableNew are DataTables - curious as to which of them dtTable is supposed to be though.
  9. Does it give any particular errors when it fails or does the update just not occur? Any chance you could post the relevant code to give us a chance to look for problems.
  10. PictureBox1.Image.Save("Path", System.Drawing.Imaging.ImageFormat.Jpeg)
  11. If you want a replacement for IE you could try http://www.mozilla.org - my current browser of choice.
  12. the html would look like </pre><table> </tabl and the code behind would be Literal1.Text = " moreDynamicData" However if you just want a simple link you may be better of with a HyperLink control </pre><table> HyperLink </tabl with a code behind like HyperLink1.Text = "moreDynamicData" HyperLink1.NavigateUrl = "http://www.b3ta.com" 'or wherever
  13. Rather than using the response object you will probably be better of placing a literal control where you require the HTML to be and then assign the result of the string builder to that. Out of curiosity what does this html string contain as there may be built in controls that require less effort than building your own html.
  14. how about something like Public Function GetRandomString(ByVal numberOfCharacters As Integer) As String Dim r As New Random Dim b(numberOfCharacters) As Byte For x As Integer = 0 To numberOfCharacters - 1 b(x) = r.Next(32, 126) Next Return System.Text.ASCIIEncoding.ASCII.GetString(b) End Function
  15. You could add a ForeColor attribute to the tag like or you may want to look at CSS as an alternative and more managable method.
  16. If you store the DataSet in a session variable rather than a global in the page does that make a difference?
  17. What kind of code would you be putting in your Dispose method? Would you not be able to put this code in either the FormClosed or FormClosing events as these will be called when the form is being destroyed.
  18. Could the other program not prompt for the login details and pass them to the other application?
  19. clicky should do the trick
  20. If you open a command prompt and type netstat -n -b does it list anything as listening on port 3325?
  21. what port are you trying to listen on? The error generally indicates something else is already using that port.
  22. probably because there aren't 130 days in june, or only 12 months in a year - the 130 is probably wrong
  23. What was the data type in the database before? The problem is in your SQL query you are treating the userid as a string, it is in the query you need to treat it as a integer - either by removing the ' from around the number or using the correct data type for the parameter.
  24. Sorry - didn't read far enough back. If you are using the original method and concatenating strings (not recomended) then you do not need the ' around the user id - these tell SQL to treat the data as a string. If you are using parameters (prefered way) then you should set the datatype to be an integer.
  25. Although sessions can be used with web services these can seriously impact scalability. If you need to provide authentication you may better off looking at using either something like x509 certifactes or possibly WS-Security which can be obtained as part of WSE 2 from MS. Plus a related article or two on the subject can be found here
×
×
  • Create New...