Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
i am trying to connect my drop downlist to ms access column using sqlDatadsource....



<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>





XML
<asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="106px"
                AutoPostBack="True" DataSourceID="AccessDataSource1" DataTextField="Role"
                DataValueField="Role">
            </asp:DropDownList>
            <asp:AccessDataSource ID="AccessDataSource1" runat="server"
                DataFile="~/App_Data/Database4.accdb"
                SelectCommand="SELECT [Role] FROM [Employee_Details]">
            </asp:AccessDataSource>
Posted
Comments
Afzaal Ahmad Zeeshan 10-Jul-15 5:25am    
Member not found means that the object doesn't contain definition for such a member.

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