mail-archives/mono-bugs/2009-March/087319.html

195 строки
7.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 488634] New: Response.write unable to print variable value in html body
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20488634%5D%20New%3A%20Response.write%20unable%20to%20print%0A%20variable%20value%20in%20html%20body&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="087318.html">
<LINK REL="Next" HREF="087320.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 488634] New: Response.write unable to print variable value in html body</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20488634%5D%20New%3A%20Response.write%20unable%20to%20print%0A%20variable%20value%20in%20html%20body&In-Reply-To="
TITLE="[Mono-bugs] [Bug 488634] New: Response.write unable to print variable value in html body">bugzilla_noreply at novell.com
</A><BR>
<I>Wed Mar 25 06:22:39 EDT 2009</I>
<P><UL>
<LI>Previous message: <A HREF="087318.html">[Mono-bugs] [Bug 488550] WSDL tool throws &quot;Key duplication&quot; exception when generating soap proxy for messages with duplicated element names
</A></li>
<LI>Next message: <A HREF="087320.html">[Mono-bugs] [Bug 488634] Response.write unable to print variable value in html body
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#87319">[ date ]</a>
<a href="thread.html#87319">[ thread ]</a>
<a href="subject.html#87319">[ subject ]</a>
<a href="author.html#87319">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=488634">https://bugzilla.novell.com/show_bug.cgi?id=488634</A>
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: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lupus at novell.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">sachinpatil10d at yahoo.co.in</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: Development
sachin patil &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">sachinpatil10d at yahoo.co.in</A>&gt; 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. &lt;%=response.write(X)%&gt; or &lt;%=X%&gt;
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.
-----------------------------------------------------------------------------
&lt;%@PAGE LANGUAGE=&quot;VB&quot; %&gt;
&lt;SCRIPT RUNAT=&quot;SERVER&quot;&gt;
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(&quot;SAC&lt;BR&gt;&quot;)
Response.Write(X)
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
&lt;/SCRIPT&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;<A HREF="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</A>&gt;
&lt;html xmlns=&quot;<A HREF="http://www.w3.org/1999/xhtml&quot;">http://www.w3.org/1999/xhtml&quot;</A> &gt;
&lt;head &gt;
&lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
&lt;TABLE WIDTH=&quot;100%&quot; STYLE=&quot;TABLE-LAYOUT:FIXED;&quot;&gt;
&lt;TR&gt;
&lt;TD WIDTH=&quot;20%&quot; COLSPAN=&quot;20&quot; ALIGN=&quot;LEFT&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;LABEL CLASS=&quot;CAPTION&quot;&gt;Text Box&lt;/LABEL&gt;
&lt;/TD&gt;
&lt;TD WIDTH=&quot;80%&quot; COLSPAN=&quot;80&quot; ALIGN=&quot;LEFT&quot;&gt;
&lt;input type=&quot;text&quot; id=&quot;TXT&quot; name=&quot;TXT&quot; size=&quot;10&quot; maxlength=&quot;10&quot;
VALUE=&quot; &lt;%response.write(X)%&gt;&quot; &gt;
&lt;input type=&quot;text&quot; id=&quot;TXT1&quot; name=&quot;TXT1&quot; size=&quot;10&quot;
maxlength=&quot;10&quot; VALUE=&quot; &lt;%=X%&gt;&quot; &gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
-----------------------------------------------------------------------------
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:
<A HREF="http://mono-project.com/Bugs">http://mono-project.com/Bugs</A>)
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: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="087318.html">[Mono-bugs] [Bug 488550] WSDL tool throws &quot;Key duplication&quot; exception when generating soap proxy for messages with duplicated element names
</A></li>
<LI>Next message: <A HREF="087320.html">[Mono-bugs] [Bug 488634] Response.write unable to print variable value in html body
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#87319">[ date ]</a>
<a href="thread.html#87319">[ thread ]</a>
<a href="subject.html#87319">[ subject ]</a>
<a href="author.html#87319">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>