Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Hi All,
I am having 1 fileupload control in ASP.Net DataGrid column and 1 dropDownList in another column. I want to call some function which fill data in DropDownList on fileupload file selection.

I have tried using -
ASP.NET
<asp:FileUpload ID="fileuploadExcel" runat="server" style="width:auto;" onChange="VB_Function_Name" />

but it gives me error-
"Microsoft JScript runtime error: 'VB_Function_Name' is undefined"

how do i do it?
please help.
Posted
Updated 9-Mar-14 18:37pm
v4
Comments
CHill60 7-Mar-14 10:23am    
Not clear - are you asking what the code behind should be for a fileuploadcontrol in a datagrid, or are you asking how to call a vb.net function from C# code-behind?
Jαved 10-Mar-14 0:19am    
Hi CHill60,
Thanks for your time. Actually what I want is to fill the dropdownlist on file selection of fileupload control. which are in DataGrid in asp.net. I have tried everything but cannot find event on which i can call fill dropdownlist function.
Any of c# or vb.net code/ Idea will do.
ZurdoDev 7-Mar-14 12:44pm    
Where are you stuck?
Jαved 10-Mar-14 0:20am    
Hi RyanDev,
I want to call a fuction on asp.net fileupload control file selection. And i dont find any event for that. can you help?
ZurdoDev 10-Mar-14 7:32am    
There are server side functions so maybe you can work with that.

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