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 Mike Lewis 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: *

  1. MarkZK

    Global Static Variable

    Hey Jason, Thanks for the reply, This is the page that I read http://weblogs.asp.net/plip/archive/2003/12/01/40526.aspx (the part about performance increase). I figured it'd be best to just use the Application, but that page made me think that they had in some way made it obsolete or...
  2. MarkZK

    Global Static Variable

    Hi All, I read somewhere that the "Application Object" was only added to ASP.NET to help users coming in from a Classic ASP background. If that is true, how do you create a dynamically named variable that is globally accessible to all users ? For example with Application it could be...
  3. MarkZK

    Application Object

    O.k... Hi All, I don't hold much hope for this, but I have nothing to lose in asking, so here goes.... I'm running this code at my first host which is a windows iis6 host. <% 'used to set a value to the application (one off using test.asp?set=123) If Len(Request.QueryString("set")) > 0 Then...
  4. MarkZK

    @@identity for update.

    I'm surprised about that single line, although I always feel like I should be adding "End If", so it does make perfect sense to use the "begin"'s "end"'s, I'm convinced ! :). I can't currently test your version of the proc, but I have no doubt at all that yours is right. Thanks for your help...
  5. MarkZK

    @@identity for update.

    Hi, I'm just creating a stored procedure (in note pad - I still don't know SQL very well) and I was wondering if the @@identity will still return the RowID (primary key) during an update, or is another select needed ?. Here is what I have in notepad so far (not tested at all - I don't have SQL...
  6. MarkZK

    Image Resized Thumbnail

    I'll answer my own question :-) .... it shoud have been.. thumbnail.Save(Server.MapPath(AppPath & "/Images/Thumbs/" & imgName & "_thumb.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg) I guess it wasn't compressing the image to a jpg file, I also missed some cleaning up (.Dispose())
  7. MarkZK

    Image Resized Thumbnail

    Hi all, I used "NoCoolHandle"'s code from this thread ... http://tek-tips.com/viewthread.cfm?qid=1155023 which does work, but can anyone tell me why the thumbnails being made are around five time bigger (in file size) than the original, it's VERY odd!. test.jpg 640x480 - 38KB test_thumb.jpg...
  8. MarkZK

    Joining Tables With Table Name As Column

    And there I was looking around for something similar to DB_NAME() only for a table :p. That code worked perfectly though, as always. Thanks George!.
  9. MarkZK

    Joining Tables With Table Name As Column

    Hi All, I'm trying to join data from three tables into one, but also create a column to hold the name (or in my case set As Path) of the table that the data came from. Maybe an example will help explain this better.... tbl_one 1.jpg | 2010-06-08 2.jpg | 2010-06-06 tbl_two 1.jpg | 2010-06-06...
  10. MarkZK

    The Painful Transition

    Hi George, Thanks for the link I'll have a look now.
  11. MarkZK

    The Painful Transition

    Hi All, I'm not completely sure that this is a SQL question in terms of actually executing the transition, or whether a SQL command could even achieve this, so my apologies before I even start. Before I had access to a host with MS SQL databasing I made this application that dynamically and...
  12. MarkZK

    Server side validation

    Hi, >> 1. i don't want to use javascript - what happens if the javascript is disabled? People with javascript disabled are used to re-entering information on forms, but you should be using javascript validation too. (before it even submits) >> 2. query string - i don't want to show the...
  13. MarkZK

    The Pains Of Directory.Delete

    Ahh, I know what you mean, I'm currently doing something to that affect to create thumbnails, thanks for clearing that up and thanks for the help, much appreciated :).
  14. MarkZK

    The Pains Of Directory.Delete

    Thanks for the tips, I'll definitely lookup on that info, I'm all for an easier life, I was just looking at MS MVC actually, considering I use EditPad Pro it seems to be quite a step up :D, I don't have visual studio :(. When you say name them with a GUID, obviously I could call SQL like...
  15. MarkZK

    The Pains Of Directory.Delete

    I was just looking into the mode="SQLServer" option, which seemed like a perfect answer to the problem, until I received an error back from MS SQL : "SQLServerAgent is not currently running so it cannot be notified of this action.". The server in one way or another just keeps failing me. Yeah...
  16. MarkZK

    The Pains Of Directory.Delete

    Hi JMeckley, Thanks for the reply and the code, I'm only allowing them to delete the folders that they create and as far as security goes, it is only the "myfiles" (using ca8msm's example) folder that has modify permissions set, so at the very worst only that folder could be "messed with"...
  17. MarkZK

    The Pains Of Directory.Delete

    Hi all, I'm having issues deleting folders with ASP.NET VB, whenever I delete a folder using "Directory.Delete", it clears all of my sessions, as stated here ... http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=102228 FOUR! years ago. I did a search at tektips...
  18. MarkZK

    DateTime ASP.NET Vs Classic ASP

    Hi Taree, That code returns the same as "=Now()", Thanks Hi J Meckley, Thanks for the settings advice, after a little google on that I found ... <%@ Page UICulture="en" Culture="en-us" %> adding that gives me the same as classic asp, must be a UK thing :) Thanks all.
  19. MarkZK

    DateTime ASP.NET Vs Classic ASP

    Hi all, In classic asp and asp.net using the following code ... <%=Now()%> returns two different outputs, in classic asp 7/14/2009 6:01:20 PM and in asp.net 14/07/2009 18:01:24 because of the different placement of the day/mouth (and maybe because of the 24 hours time ?) the asp.net...
  20. MarkZK

    Google Maps

    map.openInfoWindowHtml(.....

Part and Inventory Search

Back
Top