Permalink
Browse files

adding demo page for spinner

  • Loading branch information...
1 parent 74ea4b0 commit 1e92c90d411f8d7bda18e8f066198199e865fdec @shellscape shellscape committed Oct 6, 2012
@@ -0,0 +1,22 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Spinner.aspx.cs" Inherits="WebForms.Spinner" masterpagefile="~/Base.Master" %>
+<asp:content contentplaceholderid="_Content" runat="server">
+
+ <asp:label id="_Label" AssociatedControlId="_Text" Text="ASP.NET Textbox" runat="server" />
+ <asp:textbox ID="_Text" runat="server" />
+ <juice:spinner TargetControlID="_Text" ID="_TextSpinner" runat="server" AutoPostBack="true"/>
+
+ <label for="_Content__Input">Html Input</label>
+ <input type="text" id="_Input" runat="server"/>
+ <juice:spinner TargetControlID="_Input" ID="_InputSpinner" runat="server"/>
+
+<%-- <script>
+ $(function() {
+ var spinner = $( "#_Content__Input" ).spinner({
+ change: function(){ console.log('change'); }
+ });
+
+ });
+ </script>--%>
+
+ <asp:button ID="_Button" runat="server" Text="Postback"/>
+</asp:content>
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebForms {
+
+ public partial class Spinner : System.Web.UI.Page {
+ protected override void OnLoad(EventArgs e) {
+ base.OnLoad(e);
+
+ _TextSpinner.ValueChanged += foo;
+ _InputSpinner.ValueChanged += bar;
+
+ _Button.Click += delegate(object sender, EventArgs ea) {
+ object o = 5;
+ };
+ }
+
+ void foo(object sender, EventArgs ea) {
+ string f = "";
+
+ f = _Text.Text;
+
+ }
+
+ void bar(object sender, EventArgs ea) {
+ string f = "";
+
+ f = _Text.Text;
+
+ }
+ }
+}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -160,6 +160,7 @@
<Content Include="Content\themes\Supercharged\images\ui-icons_ffbc0f_256x240.png" />
<Content Include="Content\themes\Supercharged\images\ui-icons_ffc905_256x240.png" />
<Content Include="Content\themes\Supercharged\jquery-ui-1.8.18.custom.css" />
+ <Content Include="Spinner.aspx" />
<Content Include="css\ui-lightness\images\ui-bg_diagonals-thick_18_b81900_40x40.png" />
<Content Include="css\ui-lightness\images\ui-bg_diagonals-thick_20_666666_40x40.png" />
<Content Include="css\ui-lightness\images\ui-bg_flat_10_000000_40x100.png" />
@@ -347,6 +348,13 @@
<Compile Include="AutoCompleteData.ashx.cs">
<DependentUpon>AutoCompleteData.ashx</DependentUpon>
</Compile>
+ <Compile Include="Spinner.aspx.cs">
+ <DependentUpon>Spinner.aspx</DependentUpon>
+ <SubType>ASPXCodeBehind</SubType>
+ </Compile>
+ <Compile Include="Spinner.aspx.designer.cs">
+ <DependentUpon>Spinner.aspx</DependentUpon>
+ </Compile>
<Compile Include="Tooltip.aspx.cs">
<DependentUpon>Tooltip.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

0 comments on commit 1e92c90

Please sign in to comment.