Results 1 to 2 of 2

Thread: Problem in <Img> tag in Netscape & FireFox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2005
    Posts
    17

    Problem in <Img> tag in Netscape & FireFox

    Hi,

    I am facing the following problem for a week.
    It is a very difficult problem.
    I have 5 image tag and a "Change Picture" button in my .ASP page.
    When i click "Change Picture" button my application will go to the ASP.Net page. In that page i am using the following code

    ASP page coding
    ----------------
    <img name="img1" src ="C:\windows\1.gif">

    ASP.Net page coding
    ----------------------
    window.opener.document.forms[1].elements['img1'].src = "c:\Windows\a.gif"

    This code is working in IE but not in Firefox and Netscape.
    But i can access the textbox, select option, etc.,(other tags ) in ASP.Net page. Is there any other specific method to access the image tag in in .Net page. Plz help me.,

    Thanks in advance.,

    SK

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Problem in <Img> tag in Netscape & FireFox

    Code:
    <IMG id="Image1" src="c:\woof.gif" runat="server">
    Then in the VB code behind you can do:
    VB Code:
    1. Image1.Scr = "C:\growlingFish.jpg"

    Hope that helps.

    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width