Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tcstom
  • Content: Threads
  • Order by date
  1. tcstom

    Table not appearing in list when creating diagram

    On SQL Server 2000 I've created a few tables directly using the SQL CREATE TABLE syntax but the tables I've created are not appearing in my list of available table names when creating a diagram. What else must I do to make these tables appear...?
  2. tcstom

    Storing cookies in ASP.NET - works in Firefox/Safari but not IE

    I'm using the following code to write a cookie... HttpCookie objCookie = new HttpCookie("TCS_DATA_REQUEST"); objCookie.Expires = DateTime.Now.AddYears(1); objCookie.Values.Add("TCS_DATA_PROVIDED", "yes"); Response.Cookies.Add(objCookie); ...and then as part of a subsequent page load I'm using...
  3. tcstom

    Custom control question

    I'm trying to create a custom control library for the first time and I'm a bit stuck. I need a custom control that contains a button which, when clicked, fires a custom event. If it were a user control this would be easy because I could write a Button control into the ascx file and set its event...
  4. tcstom

    Problem dynamically rendering DropDownList in custom control...

    Part of my Render method in a custom control contains the following code... DropDownListOfStaff.Items.Add(new ListItem("test", "test")); DropDownListOfStaff.RenderControl(writer); ...where DropDownListOfStaff is a DropDownList instantiated programmatically. The rendered HTML has this SELECT...
  5. tcstom

    Strange behaviour with randomising

    I hope someone can get their head round this because it's driving me nuts! I have the following static method in a class called Pie which returns a random hex value: public static string RandomHex() { string strValidChars = "0123456789ABCDEF"; string strRandomHex = String.Empty; Random...
  6. tcstom

    List of reserved HTML characters?

    I have an application that occasionally errors on postback because a user has included reserved HTML characters in one of the many forms. I don't want to set Page.ValidateRequest to false in this case because security of this system is important, so for now I just want to provide users with a...
  7. tcstom

    Make HTML script tag run at server?

    I want to access the 'script' tags in the HTML HEAD section of my page from the server but adding the instruction runat="server" to them seems to cause all sorts of strange behaviour. For example, simply adding runat="server" to a single script tag on the login page for one of my apps gives the...
  8. tcstom

    How to ensure client has latest scripts..?

    I run ASP.NET intranet applications which use a lot of client-side Javascript all located in external .js files. If I make a Javascript change I can't guarantee my users are running the latest script (since these files are cached by the browser) so I'm always sending out a message to ask users...
  9. tcstom

    Query strings and underscores

    Hi, I'm using the System.Web.HttpContext.Current.Request.QueryString collection as part of a method but am getting some odd behaviour if any of the query string names contain an underscore. For example, if the URL is...
  10. tcstom

    How do I run code immediately before session end?

    I want to run some code immediately before a user session ends. I'm holding a user object in that session and when the session times out or is abandoned I want to pick up that user object and use it to clear out locks in the database before it is destroyed from the session. I've tried doing this...
  11. tcstom

    AJAX script causing unnecessary authentication prompt

    I'm running a web application which uses an AJAX script to post data to a form in a separate file but on the same domain. The application is configured to use Windows authentication. When the AJAX script is activated though I receive a network username/password prompt. If I provide my network...
  12. tcstom

    Prompted for network login when posting via AJAX

    I'm running an ASP.NET application on a local intranet. One form has a button than uses AJAX to post a form in the background. I'm finding that when clicking this button for the first time I receive a network login prompt to access the web server. Once a valid network account is provided I'm not...
  13. tcstom

    Potentially dangerous Request.QueryString value

    I'm getting the error "A potentially dangerous Request.QueryString value was detected from the client" relating to the following URL: contact.aspx?id=t63ONOALoPYjbYmGBjmSDg%3d%3d&log=true The id part is an encrypted string that has also been passed to the Server.UrlEncode method to make it...
  14. tcstom

    Export DataGrid to Excel/Word over HTTPS

    I have a web form that employs the following method attached to a button click to export a datagrid to either Excel or Word (by passing the string "xls" or "doc" as the parameter)... private void ExportReport(string extension) { Response.Clear(); Response.AddHeader("content-disposition"...
  15. tcstom

    Need iframe to change onbeforeunload function of parent window

    I have an iframe which, in certain circumstances, needs to nullify the onbeforeunload event of its parent window. I thought I could just use window.parent.onbeforeunload = null; but this doesn't seem to work. Can anyone help? Before anyone gets huffy about the use of frames and IE-only events, I...
  16. tcstom

    Run database procedure in background

    I have a SQL Server stored procedure that takes a long time to execute. I want to allow users of a ASP.NET web form to execute this stored procedure but to have it run in the background rather than have the page wait for it to complete. Is there a way to do this?
  17. tcstom

    Date formatting

    Anyone know if .NET 1.1 has a built-in method to display dates with the appropriate 'th', 'st', 'nd' or 'rd' postfix on the date part?
  18. tcstom

    FormsAuthentication in infinte redirect loop

    I was using Windows authentication in a ASP.NET 1.1 intranet app I'm writing. Now trying to change to FormsAuthentication which I believe I've set up correctly. The problem is that the login creates a user object then calls... FormsAuthentication.RedirectFromLoginPage(thisUser.Name, false); When...
  19. tcstom

    Access to datagrid footer

    Anyone know how to gain access to a datagrid's header and footer rows if you're not inside a datagrid item event handler? e.g. I want to bind a datagrid, then later in the code update a value in the footer...
  20. tcstom

    Hide server name from intranet app URL

    Hi, sorry if I'm not in the correct forum. If I have an intranet application in a directory c:\inetpub\wwwroot\myapp\ on a server called myserver it will be accessible using the URL http://myserver/myapp/. But I want to hide the server name and root directory from users e.g. so the above...

Part and Inventory Search

Back
Top