How can i use "View State" Concept in sharepoint sandbox soltuions??

I need to do video player in sharepoint sandbox solutions..I used following code in form solution the same code i need to use sandbox solution..In this code i am using "viewstate" asp control..i don't know how to use in sandbox solutions..how to use??<html><head></head><body> <object classid="clsid:566DB6E-A56D-10pf-96B8-4488888000" width="425" height="344"><param name="movie" value="player.swf" />         <param name="flashvars" value="file=<%= ServerVideo %>"&"Preview=<%= ServerUrl %>" &autoplay="false" &showPlaylist="false" />
         <param name="allowFullScreen" value="true" />
         <param name="wmode" value="transparent" />
         <param name="autoplay" value="false" />
         <param name="allowscriptaccess" value="always" />
         <embed src="hdplayer.swf" & 
         flashvars="file=<%=ServerVideo%>"& Preview="<%= ServerUrl %>"&showPlaylist="false" 
         style="width:425px;height:344px" allowFullScreen="true" allowScriptAccess="always" 
         type="application/x-shockwave-flash" wmode="transparent"></embed></object></body></html>

Hello,
For those still looking, you should ask on the
SharePoint forums.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

Similar Messages

  • How to switch from different views when a common button is clicked on using View states concept

    Hi
    i have  made a single form for both Login Screen and Registration screen with two states :
    1. BaseState which is the curret state of  state of My application
    2.registrationstate 
    I have a common button for changing from one view to another view .(Not related to any of the state)
    At first the Login screen is loaded , and when the common  button is clicked , i want to switch to Registration Screen .
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        <![CDATA[
    // Logic for common button needed .
        public function handleMe(event:MouseEvent):void
        ]]>
    </mx:Script>
        <mx:states>
            <mx:State name="registrationstate">
                <mx:SetProperty target="{formitem1}" name="label" value="Email"/>
                <mx:SetProperty target="{button1}" name="label" value="Change state to Login"/>
            </mx:State>
        </mx:states>
        <mx:Form x="248" y="158">
            <mx:FormItem label="User Name" fontWeight="bold" id="formitem1">
                <mx:TextInput/>
            </mx:FormItem>
        </mx:Form>
    <!-- This is my coomon button-->
        <mx:Button
            click="handleMe(event)"  
            x="297" y="261" label="Change state to Registration" id="button1"/>
    </mx:Application>

    Originally I could not get that to work, but now I have it working:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
        <![CDATA[
          import mx.controls.Alert;
          public function handleMe(event:MouseEvent):void{  
            trace(this.currentState); 
            if(currentState=="" || currentState == null){
              mx.controls.Alert.show("base state");
              currentState = "registrationstate"; 
            }else if(currentState=="registrationstate"){
              mx.controls.Alert.show("registrationstate");
              currentState = ""; 
        ]]>
      </mx:Script>
      <mx:states>
        <mx:State name="registrationstate">
          <mx:SetProperty target="{formitem1}" name="label" value="Email"/>
          <mx:SetProperty target="{button1}" name="label" value="Change state to Login"/>
        </mx:State>
      </mx:states>
      <mx:Form x="248" y="158">
        <mx:FormItem label="User Name" fontWeight="bold" id="formitem1">
          <mx:TextInput/>
        </mx:FormItem>
      </mx:Form>
      <mx:Button click="handleMe(event)" x="297" y="261"
        label="Change state to Registration" id="button1"/>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How can i use return statement in a method no flaming pls

    public class example2
    public int add(int i,int j)
    int k = i + j;
    return k; <<<< -HERE->
    public static void main(String[] args)
    example2 obj=new example2();
    obj.add(2,3);
    System.out.println("k"+k);
    Iam really really new to java programming so dont flame me
    In the above program i was hoping by putting return k it would return vlaue of k to the calling object but it didnt work i had to place sys.out.println in the method and take out the return from the method for it to work
    So why dosent it work and where is it returned to the k value.

    BlueRibbon wrote:
    In the above program i was hoping by putting return k it would return vlaue of k to the calling objectThat's what happens, yes. The VALUE of k is returned, not the NAME k, so you cannot refer to the value by just k. To the caller, the value is obtained by evaluating the expression that calls the function. So you could do
    public class example2
         public int add(int i, int j)
              return i + j;
         public static void main(String[] args)
              example2 obj = new example2();
              System.out.println(obj.add(2, 3));
    }

  • How Can I use Microsoft Dynamics CRM to SharePoint

    I did the integration of CRM with SharePoint, but I would to know if I need buy a license to this product, because i bought SharePoint Server, or is sufficient with the integration about the file list.wsp 
    Thans.

    Dynamics CRM is a separate server license and separate User CALs. Yes, you do need to purchase it completely separately.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How can i use %OperatorId in Normal View

    Sample code
    SELECT oprid
    , version
    , emplid
    FROM psoprdefn
    WHERE oprid=%OperatorId
    Greeting, i would like to design a view, where every login user only can see a list of "version" and "emplid" based on their operator id
    But when i put it into a grid, it list out all rows without filtering on operator id
    May i know how can i use view filtering based on %operatorId?
    Thanks

    If you want a static, compiled view that exists in the database, then take a look at: [http://jjmpsj.blogspot.com/2006/09/peoplesoft-on-oracle-whoami.html|http://jjmpsj.blogspot.com/2006/09/peoplesoft-on-oracle-whoami.html]. This shows how to parse the operator ID from the CLIENT_INFO.

  • How can i use one SQL statement to solve problem?

    How can i use one SQL statement to solve the question below?
    For a Table named A, there is a column named F(char type).
    Now select all the records where F like '%00' and update their F value to '%01'
    Just one SQL statement.Do not use PL/SQL block.
    How to do that?
    Thanks.

    What is the data volume for this table?
    Do you expect lots of rows to have '%00' as their value?
    Following two statements come to mind. Other experts would be able to provide better alternatives:
    If you have index on SUBSTR(f, 2):
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) || '01'
    WHERE  substr(f,
                  -2) = '00';If most of the rows have pattern '%00':
    UPDATE A
    SET    f = SUBSTR(f,
                      1,
                      length(f) - 2) ||
               DECODE(SUBSTR(f,
                             -2),
                      '00',
                      '01',
                      SUBSTR(f,
                             -2));

  • How do we use if statement in labview?moreover can i use if statement inside for loop?

    how do we use if statement in labview?moreover can i use if statement inside for loop?

    The if statement in LabVIEW is the Case structure. You can find that on the Structures palette right next to the For Loop. If you're still on the same subject about terminating a for loop early, then what you do is enclose your functions inside the loop with a case statment and make one of the case's empty except for one or more constants that you might have to wire. Hopefully, the attached picture will explain what I mean. Also, as I mentioned in one of your other posts, I think this technique is not as good as using a while loop. The array in the attached example is the same size no matter what and you may have to handle stripping extra or invalid elements.
    Attachments:
    For_Loop_with_Case.jpg ‏21 KB

  • How can i use multiple row subquery in update statement

    Hai All
    I using group function in my update statement.. and i need to update more rows so i need to use multiple row
    subquery pls tell me how to use multiple row subquery in update statement
    For example
    while i am using this like this i got an error
    update dail_att set outtime in (select max(r2.ptime) from temp_att where empcode=r2.enpno and
    barcode=r2.cardn and attend_date=r2.pdate group by enpno,pdate,cardn);
    Pls tell me how to use with example
    Thanks & regards
    Srikkanth.M

    Hai Man
    Thanks for ur response Let me clear what i need
    First step Fetch the records as text file and stores into table T1
    and the next step is i have seperated the text using substring and stores in different columns of a table
    There are two shifts 0815 to 1645 and 1200 and 2000
    Here I rep IN and O rep OUT
    Empno date time inout
    001 01-01-10 0815 I
    002 01-01-10 0815 I
    003 01-01-10 0818 I
    001 01-01-10 1100 0
    001 01-01-10 1130 I
    002 01-01-10 1145 0
    002 01-01-10 1215 I
    004 01-01-10 1200 I
    005 01-01-10 1215 I
    004 01-01-10 1315 O
    004 01-01-10 1345 I
    001 01-01-10 1645 0
    002 01-01-10 1715 0
    003 01-01-10 1718 0
    004 01-01-10 2010 0
    005 01-01-10 2015 0
    This is my T1 table i have taken data from text file and stored in this table from this table i need to move data to another table T2
    T2 contains like this
    Empno Intime Intrin Introut Outtime Date
    001 0815 1100 1130 1645 01-01-10
    002 0815 1145 1215 1715 01-01-10
    003 0818 1718 01-01-10
    004 1200 1315 1345 2010 01-01-10
    005 1215 2015 01-01-10
    This what i am trying to do man but i have little bit problems Pls give some solution with good example
    And my coding is
    declare
         emp_code varchar2(25);
    in_time varchar2(25);
    out_time varchar2(25);
    Cursor P1 is
    Select REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
    From temp_att
    group by REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
    ORDER BY enpno,pdate,ptime;
    begin
         for r2 in p1 loop
    declare
    bar_code varchar2(25);
    begin
    select barcode into bar_code from dail_att where empcode=r2.enpno and attend_date=r2.pdate;
    For r3 in (select empcode,empname,barcode,intime,intrin,introut,addin,addout,outtime,attend_date from dail_att)loop
    if r2.inout ='O' then
    update dail_att set outtime =(select max(r2.ptime) from temp_att where empcode=r2.enpno and barcode=r2.cardn and attend_date=r2.pdate group by r2.cardn,r2.enpno,r2.pdate );
    end if;
    end loop;     
    exception
         when no_data_found then
         if r2.inout ='I' then
                   insert into dail_att(barcode,empcode,intime,attend_date)(select r2.cardn,r2.enpno,min(r2.ptime),r2.pdate from temp_att group by r2.cardn,r2.enpno,r2.pdate );
         end if;
    end;
    end loop;
    commit;     
         end;
    Pls tell me what correction i need to do i the update statement i have used a subquery with group function but when i used it will return only one row but my need is to return many rows and i need to use multiple row subquery
    and how can i use it in the update statement
    Thanks In Advance
    Srikkanth.M

  • How can I use sysnonym to hide two different views?

    hi,
    My question is how can I use 2 different users to login and they point to different views. However, in the program level, the view name always stand for "Test_View".
    I try to meet the requirements and do the followings:
    Step 1: In user A account, it creates two different views and also grant select to User B and User C respectively.
    Step 2: Login User B and create public synonym called "Test_View".
    Step 3: Login User C and create public synonym called "Test_View".
    I encounter the problem in Step 3 which is public synonym called "Test_View" is already exist. So, anyone can tell me once login and it will depend on which view you can see on program level.
    Thanks
    Amy

    As 399811 told you, you have to create private synonyms.
    "CREATE SYNONYM ...." instead of "CREATE PUBLIC SYNONYM ...."
    the private synonym has to created in each user.
    Joel Pérez

  • How can I use MS Access in Lab View

    how can I use MS Access in Lab View
    Its urgent

    There are a couple of routes you can take to communicate with MS Access in LabVIEW. The preferred method is our Database Connectivity Toolset. This allows you to use VIs to communicate with your database. Here is a link to the product for more information.
    http://sine.ni.com/apps/we/nioc.vp?cid=6429〈=US
    Your other choice would be to use ActiveX. I believe there are a couple of examples on our web site using it. Overall you will probably spend a lot more time taking this route.
    Matt Kisler
    Applications Engineer
    National Instruments

  • How can I use Notes in Yosemite on my Mac Book Pro?  I used Notes on Lion but cannot view Notes on Yosemite?

    How can I use Notes in Yosemite on my Mac Book Pro?  I used Notes on Lion but cannot view Notes on Yosemite?  Many thanks, Rick

    Hello rick0809,
    Thank you for visiting Apple Support Communities.
    Are you getting an error message when trying to use Notes?
    Notes Help: Write and share notes
    (Applications > Notes)
    Regards,
    Nubz

  • How can i use multi group view criteria in jdeveloper10g?

    Hi.
    i'm using jdeveloper10g.1.3.50,i want add multi group viewcriteria,but can't found ViewCriteriaItem.
    eg.select x from x WHERE ( (( (a = 1) ) OR ( (a = 2) ))
    AND ( (b =1) or (b = 2)))
    how can i use multi group view criteria in jdeveloper10g?

    Hi,
    Did you try with viewcriteriarow.setConjunction?
    http://download.oracle.com/docs/cd/B13597_05/web.904/b10391/oracle/jbo/ViewCriteriaRow.html
    -Arun

  • How can i use my LAN Blu-ray player and tv to view screens on my macbookpro

    how can i use my LAN Blu-ray player and tv to view screens on my macbookpro

    in short - no.

  • I got an iPhone 4 while I was living in Japan. How can I use it in the states now that I live here?

    I was using an iPhone 4 while I was living in Japan. How can I use it in the states now that I live here? It is a perfectly good phone and I don't want to use it only as an iPod and camera.

    That's one option. The other is to sell it (you can probably get close to what you paid for it) or trade it in and get a new unlocked phone directly from an Apple store. That way you can use it in the US, and also in Japan when you return there.

  • How can I use the NI PXI-6508 with Lab View 7? what are the first steps to get started??How can I use the channels with lab view 7????

    I have a 8 slot PXI system with 2 NI PXI 6508 and 1 DMM 4070 in it. I want to get started with programming the digital I/O cards (6508)! How can I use this cards with LabView 7?what is the best way to get started, or where can I get examples showing how to use the several channels?
    Thanks!
    Philipp

    Philipp,
    The best way to get started is to decide if you want to use traditional NI-DAQ or NI-DAQmx. Recently we released NI-DAQ 7.1 which provides NI-DAQmx support for the PXI-6508. In my opinion, NI-DAQmx is more efficient and much easier to use.
    To get started with examples, simply launch LabVIEW and go to Help>>Find Examples. Then expand Hardware Input and Output>>DAQmx and select the appropriate digital group for your application. This should help get you started.
    Please repost if you need addition assistance. Good luck with your application!

Maybe you are looking for

  • PB suddenly crashes! Black screen. Wont turn back on. Can anyone HELP ???

    Hello everyone! My 16months old 12" PowerBook suddenly crashed last time when I was working with it. I didnt do anything particularly challenging. The PB didn't get extremely slow or anything. All of a sudden it just turned down within a second. and

  • I have a mess and can't locate originals?

    I have a mess on my hands. After an attempt to back up old files from two laptops, I ended up dumping any photos I could get my hands on into a new iPhoto album. I told myself I would sort it out later. Ugh! Now, when I look into it I find all sorts

  • How can I find out  the strings that will be presented to the UI

    Hi All, I am working on a Swing based application (Swing based UI) I am requested to do the following on the bytecode of that application: I am supposed to find out what strings from within that bytecode will be presented to the UI and what will be u

  • Query : first and last 25 records of a table

    Hi @ll, i am going to write a query for a report. Therefor i need the first and last 25 records of a table. Does anyone got an idea for a solution ? I was trying to achieve this by using a WHERE clause. Here is a part of the query : SELECT TOP 10 T1.

  • Append line into all.js file to include in the Mozilla config file

    I need to make settings globally to Firefox 23. To lock the settings the instructions state to: Append line into all.js file to include in the Mozilla config file The problem is, I cannot locate the all.js in the firefox directory. Also the changes d