Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

While Integrating java script with custom site page in Share Point Designer

$
0
0

<content>

<div>

<asp:Label runat=”server” Text=”Developer Book Info” id=”Label1”

Font-Bold=”True” Font-Size=”Medium”></asp:Label>
<br /><br /></div><div>
<asp:Image runat=”server” id=”Image1” Width=”413px” Height=”55px”
ImageUrl=”http://fabrikamhockey/Shared%20Documents/WroxLogo.jpg” />
<br /></div><div>
<asp:Table runat=”server” id=”customTable”>
<asp:TableHeaderRow></asp:TableHeaderRow>
<asp:TableRow>
<asp:TableCell>
<asp:Label runat=”server” Text=”Books:” Font-Bold=”True”
id=”lblBooks2”></asp:Label>

</asp:TableCell>
<asp:TableCell>
<select id=’dropdiv’ onchange=”getBookInfo(this)”>
<option value=’1’>Professional SharePoint 2007
Development</option>
<option value=’2’>Beginning ASP.NET 3.5</option>
<option value=’3’>Professional SharePoint Development using
Silverlight</option>
</select>
<script language=”javascript” type=”text/javascript”>
function getBookInfo(object)
{
var selected = object.options[object.selectedIndex].value;
var ISBN;
var Price;
var Message;
if (selected == ‘1’)
{
ISBN = “091283900129”;
Price = “$39.99”;
Message = “Book Info: “ + ISBN + “ | “ + Price;
alert(Message);
}
else if (selected == ‘2’)
{
ISBN = “298734689102”;
Price = “$42.99”;
Message = “Book Info: “ + ISBN + “ | “ + Price;
alert(Message);
}
else if (selected == ‘3’)
{
ISBN = “948302381002”;
Price = “$36.99”;
Message = “Book Info: “ + ISBN + “ | “ + Price;
alert(Message);
}
}
</script>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</div>
</Content>

I am getting these errors.

How to resolve these pleas let me know.

In XHTML 1.0 Strict the tag <asp:Label> is not permitted
In XHTML 1.0 Strict the tag <asp:Image> is not permitted
In XHTML 1.0 Strict the tag <asp:Tabel> is not permitted
In XHTML 1.0 Strict the tag <asp:Label> is not permitted


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>