[Mono-bugs] [Bug 488634] New: Response.write unable to print variable value in html body

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 25 06:22:39 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=488634


           Summary: Response.write unable to print variable value in html
                    body
    Classification: Mono
           Product: Mono: Runtime
           Version: 1.2.6
          Platform: All
        OS/Version: RHEL 4
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: sachinpatil10d at yahoo.co.in
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development



sachin patil <sachinpatil10d at yahoo.co.in> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Flag|                            |SHIP_STOPPER?, CCB_Review?


Description of Problem:
Variable value is not printed in text box in html body
i.e. <%=response.write(X)%> or <%=X%>
where X is variable decalred in vb code

this code works fine when written in html body
but gives error when written inside text box decleartion 

Steps to reproduce the problem:
1. 
-----------------------------------------------------------------------------
<%@PAGE LANGUAGE="VB" %>
<SCRIPT RUNAT="SERVER">
    public  X AS INTEGER
    public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
'Handles Me.Load
        Try
        X=10
            Response.Write("SAC<BR>")
            Response.Write(X)
        Catch ex As Exception
            Response.Write(ex.Message)
        End Try
    End Sub

</SCRIPT>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <TABLE WIDTH="100%" STYLE="TABLE-LAYOUT:FIXED;">
        <TR>
            <TD WIDTH="20%" COLSPAN="20" ALIGN="LEFT">
                &nbsp;&nbsp;<LABEL CLASS="CAPTION">Text Box</LABEL>
            </TD>
            <TD WIDTH="80%" COLSPAN="80" ALIGN="LEFT">
                <input type="text" id="TXT" name="TXT" size="10" maxlength="10"
VALUE=" <%response.write(X)%>" >
                <input type="text" id="TXT1" name="TXT1" size="10"
maxlength="10" VALUE=" <%=X%>" >
            </TD>
        </TR>
    </TABLE>
    </form>
</body>
</html> 
-----------------------------------------------------------------------------
Actual Results:
Compilation Error

Description: Error compiling a resource required to service this request.
Review your source file and modify it to fix this error.

Compiler Error Message:
/tmp/apache-temp-aspnet-0/1df4f68f/App_Web_44e91ec3_1.vb(12,18) : warning
VBNC99998: Option Strict Off will probably fail.
/tmp/apache-temp-aspnet-0/1df4f68f/App_Web_44e91ec3_2.vb(12,18) : warning
VBNC99998: Option Strict Off will probably fail.
/tmp/apache-temp-aspnet-0/1df4f68f/App_Web_44e91ec3_0.vb(43,31) : error
VBNC99997: You've encountered something in the compiler which is not
implemented. Please file a bug (see instructions here:
http://mono-project.com/Bugs)

Expected Results:
text box should show the value of variable X

How often does this happen? 
always


Additional Information:
1. works on mozilla firefox 3.0 on windows paltform 
2. doest'n works  on firefox 2.0 on unix platform

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list