bc... []
Home » Source Code » A floating panel for silverlight » FloatPanelDemoTestPage.aspx

FloatPanelDemoTestPage.aspx ( File view )

  • By 2016-05-19
  • View(s):0
  • Download(s):0
  • Point(s): 1
			<%@ Page Language="C#" AutoEventWireup="true" %>

<!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 runat="server">
    <title>FloatPanelDemo</title>
    <style type="text/css">
    html, body {

	    height: 100%;
	    overflow: auto;
    
}
    body {

	    padding: 0;
	    margin: 0;
    
}
    #silverlightControlHost {

	    height: 100%;
	    text-align:center;
    
}
    </style>
    <script type="text/javascript" src="Silverlight.js"></script>
    <script type="text/javascript">
        function onSilverlightError(sender, args) {

            var appSource = "";
            if (sender != null && sender != 0) {

              appSource = sender.getHost().Source;
            
}
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {

              return;
            
}

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {

                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            
}
            else if (errorType == "RuntimeError") {
           
                if (args.lineNumber != 0) {

                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                
}
                errMsg += "MethodName: " + args.methodName + "     \n";
            
}

            throw new Error(errMsg);
        
}
    </script>
</head>
<body>
    <form id="form1" runat="server" style="height:100%">
    <div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
		  <param name="source" value="ClientBin/FloatPanelDemo.xap"/>
		  <param name="onError" value="onSilverlightError" />
		  <param name="background" value="white" />
		  <param name="minRuntimeVersion" value="4.0.50826.0" />
		  <param name="autoUpgrade" value="true" />
		  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
		  </a>
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
    </form>
</body>
</html>
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.96 kB
democode.png15.50 kB2012-01-13 10:15
01.96 kB
FloatPanelDemo.sln2.38 kB2012-01-13 09:01
FloatPanelDemo.suo27.00 kB2012-01-13 10:29
01.96 kB
01.96 kB
FloatPanelDemo.xap5.55 kB2012-01-13 10:13
FloatPanelDemoTestPage.aspx2.87 kB2012-01-13 09:01
FloatPanelDemoTestPage.html2.81 kB2012-01-13 09:01
Silverlight.js7.50 kB2009-05-14 13:08
web.config312.00 B2012-01-13 09:01
App.xaml297.00 B2012-01-13 09:01
App.xaml.cs1.97 kB2012-01-13 09:01
01.96 kB
01.96 kB
AppManifest.xaml365.00 B2012-01-13 09:16
FloatPanelDemo.dll13.00 kB2012-01-13 10:13
FloatPanelDemo.pdb35.50 kB2012-01-13 10:13
FloatPanelDemo.xap5.55 kB2012-01-13 10:13
FloatPanelDemoTestPage.html2.78 kB2012-01-13 10:13
ContentDemo.xaml1.56 kB2012-01-13 10:11
ContentDemo.xaml.cs453.00 B2012-01-13 10:07
01.96 kB
FloatPanelDemo.csproj4.99 kB2012-01-13 10:10
FloatPanelDemo.csproj.user1.12 kB2012-01-13 10:10
FloatPanel.cs3.32 kB2012-01-13 10:29
MainPage.xaml477.00 B2012-01-13 09:01
MainPage.xaml.cs321.00 B2012-01-13 10:13
01.96 kB
01.96 kB
App.g.cs1.79 kB2012-01-13 09:01
App.g.i.cs1.79 kB2012-01-13 09:01
ContentDemo.g.cs1.98 kB2012-01-13 10:11
ContentDemo.g.i.cs1.98 kB2012-01-13 10:11
DesignTimeResolveAssemblyReferences.cache4.53 kB2012-01-13 10:11
DesignTimeResolveAssemblyReferencesInput.cache5.50 kB2012-01-13 10:13
FloatPanelDemo.csproj.FileListAbsolute.txt1.46 kB2012-01-13 10:10
FloatPanelDemo.dll13.00 kB2012-01-13 10:13
FloatPanelDemo.g.resources2.62 kB2012-01-13 10:11
FloatPanelDemo.pdb35.50 kB2012-01-13 10:13
MainPage.g.cs1.97 kB2012-01-13 09:01
MainPage.g.i.cs1.97 kB2012-01-13 09:01
SilverlightControl1.g.i.cs2.00 kB2012-01-13 10:06
01.96 kB
XapCacheFile.xml644.00 B2012-01-13 10:13
01.96 kB
AppManifest.xml207.00 B2012-01-13 09:01
AssemblyInfo.cs1.37 kB2012-01-13 09:01
overview.png28.22 kB2012-01-13 10:13
...

FloatPanelDemoTestPage.aspx (104.68 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D