Jump to content
Xtreme .Net Talk

Derek Stone

*Gurus*
  • Posts

    1910
  • Joined

  • Last visited

Everything posted by Derek Stone

  1. The problem with that argument is that ASP.NET does not force one into using a object-oriented approach to programming. It's there, and it's the predominant option, however there's nothing stopping anyone from using render tags, inline code, and many other pre-World War II programming methods.
  2. <html> <head> <title>Test</title> </head> <body> <table style="width: 100%;"> <tr> <td style="width: 100%;"><form><input type="text" style="width: 100%;" /></form></td> </tr> </table> </body> </html>
  3. You need to override the HttpApplication.GetVaryByCustomString() method. public override string GetVaryByCustomString(HttpContext context, string custom) { if (custom == "userid") { return HttpContext.Current.Session.Item["userid"].ToString(); } } Place this in the global.asax file (inside script tags of course).
  4. Each project in Visual Studio .NET must be a single language, however a solution can have multiple projects, and therefore multiple languages. If you choose to develop using two or more languages, you'll likely want to use an n-tier or otherwise modular approach.
  5. While limited, the .NET SDK does offer some decent tables for what is what: http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconRegularExpressionsLanguageElements.asp
  6. Use Visual Studio .NET 2002 to program the applications and compile them from the command line using the .NET 1.1 compilers found in the SDK. The whole process can be automated with a batch (*.bat) file.
  7. Only certain settings in web.config can be defined/redefined in directories under the application's root. If you wish to define these settings in child directories you will need to "turn" the directory into an application through IIS.
  8. Don't forget SourceGear Vault either. A single-user license is free of charge. Plus the system is programmed in .NET and uses Microsoft SQL Server as a data store. Works over firewalls as well, since it's Web services-based.
  9. if (Request.Form("Tipo mensaje") == "Sugerencia")
  10. There's nothing stopping you from using a network share on a remote computer. IIS has it clearly listed as an option. Just make sure you have the NTFS permissions set correctly.
  11. That compiler option requires a resource file (*.res) as input.
  12. Visual Studio .NET automatically creates a Runtime Callable Wrapper (RCW) for each COM object. You'll need to do the same using the Type Library Importer (Tlbimp.exe) installed along with the .NET Framework SDK (and Visual Studio .NET). Once the wrapper is generated you'll reference it instead.
  13. Can we see the HTML document generated by the ASP.NET page?
  14. You would need to pass a reference to the Response object to the thread.
  15. That's not how COM works. GUID's are used instead of paths. If the DLL's the GUID's are looking for are not present the application will not compile. What you need to do is ensure that the required libraries (DLL's) are registered on the machine prior to compilation.
  16. It's most likely a problem with the RegularExpressionValidatorEvaluateIsValid function sent to the client. You can try altering that function, or perform custom validation.
  17. The DataGrid, as I see it, is an undercooked pile of cow manure. I use a home-brewed component that works just as well. It took less than an hour to create, and might be a viable idea for you to look into. ASP.NET also offers the DataList control, numerous HtmlControls, and of course direct rendering using HTML markup.
  18. The first time through the loop the value for iidImportDesc.Name is zero. This should be a good clue towards your problem (incorrect offsets).
  19. Stack trace: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at [b]Microsoft.Win32.Win32Native.CopyMemoryAnsi(StringBuilder pdst, IntPtr psrc, IntPtr sizetcb)[/b] at System.Runtime.InteropServices.Marshal.PtrToStringAnsi(IntPtr ptr) at CS_PE_Get_Imports.clsPERoutines.ListImports(ListBox lstList, Int32 hMod)
  20. Twenty Hail-Mary's, Nerseus... twenty Hail-Mary's...
  21. It doesn't work with Netscape because Netscape doesn't support it. Not the other way around. Mozilla does however, as of the past several versions. Seeing as Netscape is no longer alive and kicking, any user using a Netscape browser has their own problems. :)
  22. Assuming the component inherits from [msdn=System.ComponentModel.Component]Component[/msdn], adding [msdn=System.ComponentModel.Design.ToolboxItemAttribute]ToolboxItem[/msdn] and [msdn=System.ComponentModel.Design.DesignTimeVisibleAttribute]DesignTimeVisible[/msdn] attributes should be more than enough. I'd shut down Visual Studio .NET and start a new project to test if they're working. The IDE is known to cache things that it shouldn't.
  23. That will also scroll the column headers, SumeetK. Not very pretty.
  24. [api]SetForegroundWindow[/api] [api]BringWindowToTop[/api] [api]FindWindow[/api] [api]FindWindowEx[/api]
  25. [msdn]System.Windows.Forms.SendKeys[/msdn]
×
×
  • Create New...