Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
At the top of my page I declared:

XML
<script type="text/javascript" >
function BrowseClick() {
    document.getElementById('ctl00_ContentPlaceHolder1_file').click();
}


Then later I have:

<igtbl:UltraWebGrid ID="ugrdCorres" runat="server" 
onclickcellbutton="BrowseClick()" >


With this I get the following error:
'ASP.pages_correspondence_aspx' does not contain a definition for 'BrowseClick' and no extension method 'BrowseClick' accepting a first argument of type 'ASP.pages_correspondence_aspx' could be found (are you missing a using directive or an assembly reference?)
Posted

are you sure that "onclickcellbutton" is a client side event? because it seems that at runtime it is considered as and EventHandler attached to the grid
 
Share this answer
 
Comments
Hardus Lombaard 21-Jul-10 5:21am    
This was my problem - "onclickcellbutton" is a server side event. Thanks for your help.
try
VB
onclickcellbutton="javascript:BrowseClick();" >


good luck!
 
Share this answer
 
Comments
Hardus Lombaard 21-Jul-10 4:23am    
Funny thing, with that I get the error: ") expected".
am.net 21-Jul-10 4:49am    
Reason for my vote of 3
good

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900