New Message on dotNET User Group Hyd

c# code working..vb code not working..

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: pnagendra79

Hi,
     I added one _javascript_ file to the project. and I wrote C# code. I'm calling the function from C#. it is working fine. but same code converted into Vb code. calling the same function from vb. not at all calling that function. and not throwing any error in the browser. See the way how i am calling the function from C# and VB(Bolded). I tried many ways but not able to figure out what is the problem. plz help me..
 
C# code

protected override void Render(HtmlTextWriter writer)

{

base.Render(writer);

writer.Write("<div align='center'>");

writer.Write("<center>");

writer.Write(" <form id='Form1' method='post' runat='server'>");

writer.Write(" <table border='0' width='100' cellspacing='0' cellpadding='0' height='21'>");

writer.Write(" <TR vAlign='top'>");

writer.Write(" <TD colSpan='2' height='228'></TD>");

writer.Write(" <TD rowSpan='2'>");

writer.Write(" <img src='' border='0' usemap='' ISMAP height='480' width='480'></TD>");

writer.Write(" </TR>");

writer.Write(" <TR vAlign='top'>");

writer.Write(" <TD height='253'></TD>");

writer.Write(" <TD colSpan='2'> ");

writer.Write(" <map name='mapname'>");

writer.Write(" <area shape='RECT' escape('Hi <br> hello <br> nagendra')\" coords='165,254,188,274'> ");

writer.Write(" <area shape='RECT' escape('Input2')\" coords='297,256,317,274'>");

writer.Write(" </map>");

writer.Write(" </TD> ");

writer.Write(" </TR>");

writer.Write("</td>");

writer.Write(" </tr>");

writer.Write(" </table>");

writer.Write("</div>");

writer.Write("</center>");

writer.Write("</form>");

writer.Write("<SCRIPT Language='_javascript_' src=''></SCRIPT>");

}

VB code

Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)

MyBase.Render(writer)

writer.Write("<div align='center'>")

writer.Write("<center>")

writer.Write("<form id='Form1' method='post' runat='server'>")

writer.Write("<table border='0' width='100' cellspacing='0' cellpadding='0' height='21'>")

writer.Write("<TR vAlign='top'>")

writer.Write("<TD colSpan='2' height='228'></TD>")

writer.Write("<TD rowSpan='2'>")

writer.Write("<img src='' border='0' usemap='' ISMAP height='480' width='480'></TD>")

writer.Write("</TR>")

writer.Write("<TR vAlign='top'>")

writer.Write("<TD height='253'></TD>")

writer.Write("<TD colSpan='2'> ")

writer.Write("<map name='mapname'>")

'writer.Write(" <area shape='RECT' escape('Hi <br> hello <br> nagendra')\" coords='165,254,188,274'> ");

'writer.Write(" <area shape='RECT' escape('Hi')\' coords='165,254,188,274'> ")

'writer.Write("<area shape='RECT' Hi this is nagendra')"' coords='165,254,188,274'> ")

writer.Write(" <area shape='RECT' escape('Hi')\' coords='165,254,188,274'>")

writer.Write("</map>")

writer.Write("</TD> ")

writer.Write("</TR>")

writer.Write("</td>")

writer.Write("</tr>")

writer.Write("</table>")

writer.Write("</div>")

writer.Write("</center>")

writer.Write("</form>")

writer.Write("<script Language='_javascript_' src=''></script>")

 

End Sub


View other groups in this category.


Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to