can some one clarify what is 开发者_Go百科function pointers in vb script
You are looking for the GetRef function.
From the link:
GetRef Function
Returns a reference to a procedure that can be bound to an event. ...
<SCRIPT LANGUAGE="VBScript">
Function GetRefTest()
Dim Splash
Splash = "GetRefTest Version 1.0" & vbCrLf
Splash = Splash & Chr(169) & " YourCompany 1999 "
MsgBox Splash
End Function
Set Window.Onload = GetRef("GetRefTest")
</SCRIPT>
A function pointer is a variable that stores the memory address of a block of code that is programmed to fulfill a specific function.
See this for more information.
<!-- Question vote div starts here-->
<div id="QuesVoteDiv" class="vote">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ImageButton ID="ImageVoteUp" CssClass="voteImage" runat="server" ImageUrl="~/Resources/Images/vote-arrow-up.png"
ToolTip="The question is useful and clear(click again to undo)" CommandName="VoteUp" />
<br />
<asp:Label ID="VotesLabel" runat="server"></asp:Label>
<br />
<asp:ImageButton ID="ImageVoteDown" CssClass="voteImage" runat="server" ImageUrl="~/Resources/Images/vote-arrow-down.png"
ToolTip="The question is unclear or not useful(click again to undo)" CommandName="VoteDown" />
<asp:ImageButton ID="FavouriteQuestionImage" CssClass="VoteFavourite" runat="server"
ImageUrl="~/Resources/Images/vote-favorite-off.png" ToolTip="This is a favourite question (click again to undo)"
OnClick="VoteFavouriteImage_Click"/>
<br />
<asp:Label ID="FavouriteQuestionCountLabel" Text="" runat="server" CssClass="favoritecount-off"></asp:Label>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</div>
<!-- Question vote div ends here-->
精彩评论