Quote:
quote:Originally posted by DotNetNoob
Then in my createnewaccount.cs file I have the following function
==============================================
//Fill a dropdown list Parameters: Dropdown id, database table name
public static bool FillDropDownList(DropDownList dDl,string tblName)
|
This interests me for two reasons:
A) why is the file *.cs and not *.aspx.cs? Was this a typo? Usually (in VS.net, the codebehind file is named just like the web form file *.aspx but with .cs tacked on. But you could certainly manually do it differently.
B) Your function is modified as "static". This further supports the idea that this function is not in the webform's class code (either codebehind or inline), which leads to my next question...
Where are you calling this function?
Peter
------------------------------------------------------
Work smarter, not harder.