Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

LeeOvEngland

@LeeOvEngland
About
Posts
14
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The underlying connection was closed: The remote name could not be resolved.
    L LeeOvEngland

    I have developed a windows client app that connects to a web service and a centralised database. The application works fine apart from on one of the PC's. The error: 'The underlying connection was closed: The remote name could not be resolved.' only appears on that particular machine. I have searched for a solution and have found articles suggesting to change the web proxy settings, but they must be correct if all the other client machines are working fine. Please can someone help. Thank You Lee

    Visual Basic help database

  • Session Timeout
    L LeeOvEngland

    I am encountering a session timeout problem with my ISP. I need to get a few facts clarified. Is it possible to keep a Session alive by using a child pop-under window with a refresh rate say every 5 secs to stop the session timing out. I believe Sessions are being dropped because of server memory resources and and to confirm this I am trying to stop the Session timing out by using the technique above. If the session then is dropped it has to be a resource issue. Thanks Lee

    ASP.NET help sysadmin performance learning

  • Design decisions
    L LeeOvEngland

    Is the SQL server a remote server or local?

    ASP.NET database javascript sql-server design sysadmin

  • parent page
    L LeeOvEngland

    I remember spending a long time looking at this. Because the code behind is run on the server you would have to post the child back to the server and setting maybe a session variable. To then get that value to the parent would mean setting up something like a HTTP handler to do a background update to the parent. It would mean a lot of coding for a simple task. It's a lot faster to use good old javascript.

    ASP.NET tutorial question

  • location.href javascript in asp.net
    L LeeOvEngland

    Are you using a javascript confirm? function askQuestion(){ var answer = confirm("Question?"); if (answer== true) // they pressed ok { window.location = "http://yoursite/thepage.htm"; } }

    ASP.NET csharp javascript asp-net tutorial question

  • Detect Missing Image
    L LeeOvEngland

    Hi, Have you tried wrapping it in a Try - Catch statement. If it fails to load then the code will just carry on and you can use a default missing image or code in the catch part to do something else.

    ASP.NET help question csharp asp-net sysadmin

  • parent page
    L LeeOvEngland

    Yes. you need to use the following javascript: window.opener.document.form1.txtPrice.value = YOURVALUE; You can change 'txtPrice' for the ID of the form object you want to update. NB: The form on the parent page must have its ID value set to 'form1' or whatever you wish to call it. Lee

    ASP.NET tutorial question

  • System.IO.IOException (Picturebox)
    L LeeOvEngland

    I have an winforms application that lets a user click on a listbox which holds a list of images. When the user clicks on a list item the corresponding image is loaded into the picturebox using the picturebox.image.fromfile(CStr(lstBox.SelectedItem)) syntax. The user is able to click a delete button which should delete the currently viewable picturebox image. Before doing the delete I am calling the following methods: picturebox.Image.Dispose() picturebox.Image = Nothing picturebox.Image.fromFile("temp.gif") so that the image i want to delete is freed from system resources. I keep getting the following error "The process cannot access the file "image.jpg" because it is being used by another process" I have tried numerous things to get round this error. My code does not load any images anywhere else apart from the picturebox. Please can anyone help!

    Visual Basic help csharp winforms

  • Disappearing Currency Text - £
    L LeeOvEngland

    I have a small web application that allows a user to enter a description into a textbox. The description looks something like this: 'The car is blue and costs £5,000. What a bargain.' When the user presses submit the value entered into the textbox is assigned to a string. Once the page has reloaded the '£' symbol has disappeared. I have tried it with other currency symbols and they work fine. Please can somebody tell me why the '£' symbol does not assign to the string and if there is a work around. Thank You

    Web Development

  • Convert from C#
    L LeeOvEngland

    I have a function that I need to convert from C# to VB. C# public byte[] ConvertStreamToByteBuffer(System.IO.Stream theStream) { int b1; System.IO.MemoryStream tempStream = new System.IO.MemoryStream(); while((b1=theStream.ReadByte())!=-1) { tempStream.WriteByte(((byte)b1)); } return tempStream.ToArray(); } My VB So far... Public Function ConvertStreamToByteBuffer(ByVal theStream As System.IO.Stream) As Byte() Dim b1 As Integer Dim tempStream As New System.IO.MemoryStream While ((b1 = theStream.ReadByte()) <> -1) tempStream.WriteByte(((byte)b1)) End While Return tempStream.ToArray() End Function i keep getting an error of: 'Byte' is a type, and so is not a valid expression. referring to the code in the while statement. Please can someone help me to convert the function Thank You

    Visual Basic help csharp

  • Persisting Custom Business Objects
    L LeeOvEngland

    I have a number of custom business objects that have private variables, properties and methods coded into class files and compiled into a dll. When I create an instance of one of these objects on a page(.aspx) I can use the properties to modify the attributes of the object. If I then make a postback to the page by clicking a button the object re-initializes itself during Page_Load() and the data is lost. When I use objects in windows forms applications once they are created they persist no matter what events occur within the windows form until you destroy the object. I want to be able to keep the object live so I can use it on this page or any other page I may navigate to. I have used Session to store the objects and this seems to work but it involves checking for an instance of the object in Session on Page_Load() event and I understand that it is not the correct way to do this. All in all, how can I keep an object live on the webserver that can be initialized / created on any page within the web application without using Session. I would appreciate any help with this matter Thank You

    ASP.NET winforms business help question

  • BC30451: Name 'IsDBNull' is not declared.
    L LeeOvEngland

    Thankyou Marcie

    ASP.NET help

  • BC30451: Name 'IsDBNull' is not declared.
    L LeeOvEngland

    Hi, I am using a code behind and am trying to test for a null value using the code below: If Not IsDBNull(objDataReader("PrimaryContactTitle")) Then txtTitle.Text = objDataReader("PrimaryContactTitle") End If If I use the code directly on the aspx page it works fine. When I use it from the code behind it throws up the error: BC30451: Name 'IsDBNull' is not declared. I have imported all what I presume are the relevant namespaces System.Data System.Data.SqlClient I would appreciate any help with this problem Thanks Lee

    ASP.NET help

  • Parser Error
    L LeeOvEngland

    :confused::confused:I am developing a web-based data entry application. I am receiving a parser error 'cant find tag' when trying to view the aspx file on the server. There is quite a lot of error checking code and the page length is 320 lines long. When I remove any white line space between functions / subs or any notes i have in the code then the page loads fine but the code becomes cluttered. I would be grateful if someone could tell me why this is? Is it that the server can not compile the code as it is too long and its timeing out?

    ASP.NET sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups