M
Morris Neuman
Hi,
I am working with Expression Web2 and am trying to add a script to set a
multiview activeviewindex within an html page.
The command button is defined as follows:
<div class="col-1">
<p><strong><a name="Overview"></a>Lorem
ipsum dolor sit amet</strong>, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi
enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat.</p>
<asp:MultiView runat="server"
id="MultiView1" ActiveViewIndex="0">
<asp:View runat="server" id="View1">
<ul class="list">
<li><a href="#">View 1</a></li>
<li><a href="#">Diam nonummy nibh</a></li>
<li><a href="#">Euismod tincidunt ut
laoreet dolore</a></li>
<li><a href="#">Magna aliquam erat
volutpat.</a></li>
</ul>
<a href="#"
class="link-1"><span><span>Learn more</span></span></a>
<div class="clear"></div></asp:View>
<asp:View runat="server" id="View2">
<ul class="list">
<li><a href="#">View 2</a></li>
<li><a href="#">Diam nonummy nibh</a></li>
<li><a href="#">Euismod tincidunt ut
laoreet dolore</a></li>
<li><a href="#">Magna aliquam erat
volutpat.</a></li>
</ul>
<a href="#"
class="link-1"><span><span>Learn more</span></span></a>
<div class="clear"></div></asp:View>
</asp:MultiView>
</div>
I have added a script as follows in the body section of the .aspx page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>SpeechSoft Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta content="Telephony, telephony software, voicemail software, voice mail
software, ivr software, ivr, outcall, attendant " name="keywords" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
</head>
<body id="page1">
<script runat="server" type="text/javascript">
protected void ShowView2((object sender, EventArgs e)
{
// Determine which button was clicked
// and set the ActiveViewIndex property to
// the view selected by the user.
MultiView1.ActiveViewIndex = 1;
}
</script>
<div id="main">
<!-- header -->
<div id="header">
<p>www.speechsoft.com</p>
<ul id="navi">
<li><a href="aboutSS-contacts.html">About Us</a></li>
<li><a href="aboutSS-contacts.html">Contact</a></li>
<!--<li><a href="#">sIGN iN</a></li>-->
<!--<li><a href="#">sEARCH</a></li>-->
<!--<li><a href="#">HELP</a></li>-->
<!--<li><a href="#">faq</a></li>-->
</ul>
I have worked mostly with aspx and not had to combine with html. I
purchased web templates for the graphics and flas but want to maintain them
in .net.
I have a couple of questions:
Is this the correct place to add the script?
Why is ShowView2 in the script made into a link?
Can I use expression web 2 for .net commands?
How can I use silverlight2 commands in this expression web2 project?
As always, your help is much appreciated.
Thanks
Morris
I am working with Expression Web2 and am trying to add a script to set a
multiview activeviewindex within an html page.
The command button is defined as follows:
<div class="col-1">
<p><strong><a name="Overview"></a>Lorem
ipsum dolor sit amet</strong>, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi
enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
lobortis nisl ut aliquip ex ea commodo consequat.</p>
<asp:MultiView runat="server"
id="MultiView1" ActiveViewIndex="0">
<asp:View runat="server" id="View1">
<ul class="list">
<li><a href="#">View 1</a></li>
<li><a href="#">Diam nonummy nibh</a></li>
<li><a href="#">Euismod tincidunt ut
laoreet dolore</a></li>
<li><a href="#">Magna aliquam erat
volutpat.</a></li>
</ul>
<a href="#"
class="link-1"><span><span>Learn more</span></span></a>
<div class="clear"></div></asp:View>
<asp:View runat="server" id="View2">
<ul class="list">
<li><a href="#">View 2</a></li>
<li><a href="#">Diam nonummy nibh</a></li>
<li><a href="#">Euismod tincidunt ut
laoreet dolore</a></li>
<li><a href="#">Magna aliquam erat
volutpat.</a></li>
</ul>
<a href="#"
class="link-1"><span><span>Learn more</span></span></a>
<div class="clear"></div></asp:View>
</asp:MultiView>
</div>
I have added a script as follows in the body section of the .aspx page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>SpeechSoft Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta content="Telephony, telephony software, voicemail software, voice mail
software, ivr software, ivr, outcall, attendant " name="keywords" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
</head>
<body id="page1">
<script runat="server" type="text/javascript">
protected void ShowView2((object sender, EventArgs e)
{
// Determine which button was clicked
// and set the ActiveViewIndex property to
// the view selected by the user.
MultiView1.ActiveViewIndex = 1;
}
</script>
<div id="main">
<!-- header -->
<div id="header">
<p>www.speechsoft.com</p>
<ul id="navi">
<li><a href="aboutSS-contacts.html">About Us</a></li>
<li><a href="aboutSS-contacts.html">Contact</a></li>
<!--<li><a href="#">sIGN iN</a></li>-->
<!--<li><a href="#">sEARCH</a></li>-->
<!--<li><a href="#">HELP</a></li>-->
<!--<li><a href="#">faq</a></li>-->
</ul>
I have worked mostly with aspx and not had to combine with html. I
purchased web templates for the graphics and flas but want to maintain them
in .net.
I have a couple of questions:
Is this the correct place to add the script?
Why is ShowView2 in the script made into a link?
Can I use expression web 2 for .net commands?
How can I use silverlight2 commands in this expression web2 project?
As always, your help is much appreciated.
Thanks
Morris