Jump to content
Xtreme .Net Talk

Derek Stone

*Gurus*
  • Posts

    1910
  • Joined

  • Last visited

Everything posted by Derek Stone

  1. Perhaps an Adobe PDF file might be a wiser option?
  2. There was a thread awhile ago stating that a new forum for Crystal Reports would probably be added once there was a steady flow of questions on the topic. It's my opinion that the flow is already here, but I won't be holding my breath.
  3. http://msdn.microsoft.com/mappoint/net/
  4. Passing the variable to the receiving page via its query string would make the most sense. Session state really wasn't meant for such a use.
  5. So you want it inside the block of HTML that is rendered by the DataGrid? Forgive me if I'm wrong, but I don't believe you can do that without overriding one of the control's Render methods, which with a DataGrid is quite a bit of work. However you can display a button below the DataGrid using the DataBinding event: Private Sub DataGrid1_DataBinding(ByVal sender As Object, ByVal e As EventArgs) Handles DataGrid1.DataBinding SaveButton.Visible = True End Sub 'DataGrid1_DataBinding
  6. So put the button there... I'm not seeing why it has to be dynamic.
  7. Right click on the file or folder in question and select the "Security" tab in the "Properties" dialog. Add write permissions for the SYSTEM and ASPNET accounts. This assumes you have access to the file system yourself. If you do not, you'll need to ask the host to set the permissions for you.
  8. The permissions... Obviously if the event log is writing to the system you're going to need to have write permissions set.
  9. Creating controls dynamically is not a good idea. If at all possible create the button along with your other controls and set its Visible property to true when it is needed to be displayed.
  10. You cannot guarantee that an item placed in the cache will remain in the cache, even for the time specified by the developer. If the cache service starts allocating too much memory or your ASP.NET application is restarted, which happens more often than one would think, the cache will purge some or all of the items it contains. There is little you can do to prevent this.
  11. Of course that's assuming the unmanaged C++ DLL (as was requested above) is using COM, and can be exposed in that fashion. If it's not using COM you'll have to invoke its methods using platform invoke. I don't understand why you'd bother to do this though, since you can recompile the unmanaged C++ code into managed C++ code without changing a single character using the /clr compiler switch.
  12. So you're going from a list view to a detailed view. I think I'm following you now. What you'd need to do is store the view state of the list page in the user's session, a cookie, or by passing the various options to the detailed view via a form post or the query string.
  13. You'll need to rephrase your question. I'm not sure anyone is following you.
  14. The service itself shouldn't include an interface, but one should definately be available as a separate executable or MMC plugin given the need for configuration.
  15. Pass the data to the second Web form using an appended query string. Response.Redirect("second.aspx?firstname=Foo&lastname=Bar")
  16. You don't have to submit it to "another file". Simply post the page back to itself. ASP.NET view state should keep the filtering and sorting for you.
  17. A Web service would work nicely in a situation such as this, since the database isn't accessible directly.
  18. DataAdapter1.InsertCommand.CommandText = "INSERT INTO Customers (CustomerID, FirstName, LastName, Address, City, State, Zip, Password) VALUES (@CustomerID, @FirstName, @LastName, @Address, @City, @State, @Zip, @Password)" DataAdapter1.InsertCommand.Parameters("@CustomerID").SqlDbType = SqlDbType.Int DataAdapter1.InsertCommand.Parameters("@CustomerID").Value = mCustomerID DataAdapter1.InsertCommand.Parameters("@FirstName").SqlDbType = SqlDbType.NVarChar DataAdapter1.InsertCommand.Parameters("@FirstName").Size = 64 DataAdapter1.InsertCommand.Parameters("@FirstName").Value = mFirstName ' etc...
  19. Working with multiple databases usually means executing the USE directive: USE databasename CREATE TABLE tablename ... Keep in mind that proper security should be in place so one user cannot access another user's database.
  20. Imports System.Text.RegularExpressions Dim invalidBody As String = "<b>Foobar</b>" Dim validBody As String = Regex.Replace(invalidBody, "<[^<>]+>", String.Empty)
  21. You're trying to remove all occurrences of HTML tags?
  22. Yes, it would be more difficult. I fail to see why anyone would need to do this though. Can you explain your particular situation? Additionally, you really shouldn't be using frames with a server-side programming language. I know you'll probably throw a fit at me for saying this, but it needs to be said. Remember, I'm only mentioning this with the best intentions, not to insight a riot as has happened before. :)
  23. Uninstall them using the Add/Remove Windows Components dialog. Control Panel > Add/Remove Programs > Add/Remove Windows Components > Internet Information Services > Details > FrontPage Server Extensions
  24. Extended stored procedures have to be written in a language that supports standard libraries. C/C++ does have that support. .NET does not.
  25. You're fighting a losing battle. Unless your application has some spectacular algorithm implemented within it you shouldn't worry about who's going to be decompiling your application, because frankly no one cares what your source looks like. It's way too easy to reimplement whatever you've programmed in .NET within hours.
×
×
  • Create New...