Appy Css for Silverlight controls

Last post 06-25-2009 5:47 PM by billsm. 1 replies.

Sort Posts:

  • Appy Css for Silverlight controls

    06-25-2009, 7:10 AM
    • Member
      point Member
    • pavanip
    • Member since 05-20-2008, 10:15 AM
    • Posts 20

    Hi,

      I want to apply "Css" for Silverlight image control.I am having one silverlight image control in that left button down event i have to open asp.net form.For that aspx page i want to apply styles while opening that page.In left button down event i am calling java script function to call that aspx page.But from where i have to apply styles to open that page.
    If i use anchor tag to open popup window in normal aspx page I can use the following line to work it properly.
     
    <a style="font-family:Verdana; font-size:12px; font-weight:bold; text-decoration:none; color:#ffffff;" href="Contactus.aspx?TB_iframe=true&height=500&width=600">Contact us</a>
    Here I am using css class.
    But for now i want to open popup from code behind for that i have written following code in silverlight image control code behind.
    HtmlPage.Window.Invoke("login");
    And I am calling that javascript function in aspx page like this.
    <script type="text/javascript>
    function login() {
    var url = "http://219.91.199.132/Gateway/Login.aspx";
    window.open(
    "UserLogin.aspx", 'window', 'width=630,height=620,background=silver,menubar=no, resizable=no')
    }
    </script>
    Can anyone please help me how to apply css for silverlight controls.I want to open webform with jquery popup

    Thanks in advance
    Pavani

  • Re: Appy Css for Silverlight controls

    06-25-2009, 5:47 PM
    • Member
      269 point Member
    • billsm
    • Member since 03-31-2008, 4:25 PM
    • Posts 122

    why not use asp.net mvc and then jquery

    here is jquery  http://docs.jquery.com/CSS/css#properties

    remember silverlight is a web application not a web form

    actually I think of it as an html web page....a partial page   

    It uses asynchronous processing...Ifyou need examples Of this I can show you  

    here is a popup window thru code magazine  http://www.code-magazine.com/article.aspx?quickid=0902051&page=5

    here is a html browser training video  http://silverlight.net/learn/learnvideo.aspx?video=65683

Page 1 of 1 (2 items)