Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. If you remove the Response.RedirectLocation = "http://www.mysite.com/members/members.aspx" from just before the FormsAuthentication.RedirectFromLoginPage(UserN, False) does it work then?
  2. You would need to change the permissions on the folder itself - not just granting them to the application. However this is a really bad idea, the increased security is there for a reason - not allowing normal users to write to the program files folder helps reduce infections from virii, stops users deleting application files etc. by mistake. You may be better off either logging to the users home folder / profile or creating a separate log folder outside of the program files folder and logging there.
  3. Executables may contain virii or trojans and are disallowed by the forum rules which can be found here If you are attaching a zip file you can simply delete the binaries from it before posting.
  4. IIRC you need to check the command line parameters passed in i think control panel passes /c when a user clicks the configure button and /p for the preview - not 100% on the /p though. EDIT :I was correct :) have a look here for a list of all the parameters.
  5. http://windowsforms.net/articles/appupdater.aspx may be worth a look
  6. Does your datasource contain a column called code_desc?
  7. http://www.xtremedotnettalk.com/showthread.php?t=81944&highlight=aspnet_regiis
  8. Any reason why you only want to use the table control? A DataList or DataGrid would be so much easier.
  9. If he want's to move then I would have though System.IO.File.Move would have been a better choice than your suggestion of copy and delete.... Just a thought.....
  10. That wouldn't meet his requirements though - your method wouldn't identify applications that have been idle for minutes - just things that have been running for minutes. Personally I'm not sure how you could go about this but if you did you would also need to make sure you didn't also attempt to kill background services, applications minimized to tray etc.
  11. IIRC System.IO.File.Copy should do the trick
  12. The relevant information will be included in the web service's WSDL. When VS.Net creates the client side proxy wrappers to access the web service it will automatically create the class on the client side - no extra work on your part required.
  13. You could get the webservice to return either a class or structure that contains fields containing the information. The web service itself will convert the data to XML and the framework will convert it back to a class on the client.
  14. You can only mark classes as NotInheritable, not individual functions. If you want to prevent a sub being overriden you can mark it NotOverridable.
  15. Rather than having the start up object being a form make it a sub main, then if no parameters are passed launch the default form. If they do pass any parameters then run the relevant code and exit without displaying a form.
  16. Have you looked here
  17. what is the Do While objStreamReader.ReadLine = "***" With sEmployee eNumber = sEmployee(0) eName = sEmployee(1) eAddress = sEmployee(2) eSSN = sEmployee(3) End With Loop bit supposed to be doing? you really should be reading into a variable otherwise it will just throw away the line it has read. Also you do not appear to be assigning anything to sEmployee either.
  18. 1st parameter to the strlen function - not the 1st parameter to the memcpy.
  19. Public Interface IDatabaseUser Sub LookupPassword() End Interface Public Interface ITestUser Sub LookupPassword() End Interface Public Class User Implements IDatabaseUser, ITestUser Public Sub LookupPassword2() Implements IDatabaseUser.LookupPassword ' End Sub Public Sub LookupPassword() Implements ITestUser.LookupPassword ' End Sub End Class
  20. try Dim ctl As Control For Each ctl In Me.Controls If TypeOf ctl Is TextBox Then ctl.BackColor = Color.White DirectCast(ctl, TextBox).ReadOnly = False End If Next
  21. Arch4ngel - he did mention a form and post this in the windows forms forum - perhaps session isn't going to be the best solution here. This thread in the tutor's corner may be of some help.
  22. Also the standard version of VS.Net doesn't allow you to create classlibrary projects, however have a look at this thread and that should fix your problem
  23. Forgot to ask how sc is declared as well? if it is something like unsigned char* sc; then you will need to cast it to a signed char... memcpy(&buf[2036], sc, strlen((char *)sc)); however this could result in the loss of data, is there a reason why one is declared unsigned and the other signed? Also it may help if you give more detail on what you are trying to do - there may be another reason (although admittedly C++ isn't my strong point)
  24. Any chance you could also post the Stored proc's code?
×
×
  • Create New...