Hi All, 

I have question : I can't modify any property of  other server control from 
server
e.g.
Javascript function 
Function Callserver()
{
        PageObject.ServerSideFuction(callbackfun)
}
Function callbackfun
{
        Alert('hello');                         
        // I know from below line I can do but I don’t want from client side    
        Document.getelementbyid('DropDown1').selectedIndex = 0; 
}

Server Side
----------
Ajaxmethod tags
ServerSideFunction()
{
        DropDown1.selectedIndex = 0; // I can't set this property 
}

Pls guide me for same. 
Thanks,

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael 
Schwarz
Sent: Wednesday, June 21, 2006 7:32 PM
To: [email protected]
Subject: [ajaxpro] Re: Don't Active My Function(again, please help me)


<script language="javascript">
   function DeleteUserOnline()
  {
     Index.DeleteUserOnline_CodeBehind();
  }



Don't forget the "()", it is JavaScript and not VB.  ;)





On 6/21/06, duynnh <[EMAIL PROTECTED]> wrote:
>
> Hi All!
> I'm using  Ajax.NET Professional(1.1) but i have problem:
>
> Index.aspx page code as follow:
> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?'''''''''''''
>
> <body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0"
> MS_POSITIONING="GridLayout" onUnload="DeleteUserOnline()">
>
>
> Javascript code as follow:
>
>
> <script language="javascript">
>    function DeleteUserOnline()
>   {
>      Index.DeleteUserOnline_CodeBehind;
>   }
>
>
> </script>
> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?'''''''''''''
>
>
>
> Index.aspx.vb code as follow:
>
>
> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?'''''''''''''
>
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
>
>
>        Ajax.Utility.RegisterTypeForAjax(GetType(Index))
>
>
> End Sub
>
>
>  <Ajax.AjaxMethod()> _
>    Public Function DeleteUserOnline_CodeBehind() As Boolean
>
>
>        MyClassDuynnh.UserOnline_Delete(MyClassDuynnh.IdUserOnline)
>        Return True
>
>
>    End Function
> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''?'''''''''''''
>
> but it don't Active DeleteUserOnline_CodeBehind function. why?, help
> me.
>
>
> >
>


-- 
Best regards | Sch?e Gr廻e
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to