I have the following in place. Is this sufficient code for windows authentication and AD roles? Is the code in the right event (page_load) or should it be somewhere else?
Right now I get the statement on the top of the screen, you do not have access, and the default page loads. I'm not in the...
When I hard code the values into the updatecommand then the gridview gets updated, but if I just have the parameters the gridview does not get updated. What could the issue be?
This updates the grid:
UpdateCommand="Update atable set [afield]='test', [bfield]='test' where [id]=@id"
This...
I have two drop down lists to use as a filter for a gridview. This is what the select command in the gridview's datasource looks like:
SelectCommand="SELECT * FROM [datatable] WHERE ([afield] = @afield) OR ([bfield] = @bfield) ">
<selectparameters>
Type="String" />
Type="String" />...
I have a drop down list with gridview. When the page loads the option in the drop down is 'select an item'. However the gridview does not load all records when the page is first loaded and the user has not made a selection yet in the drop down. Here is my code:
<asp:dropdownlist...
I am using the ChangePassword Control and would like to know if I can override the ChangePassword class/method. I have my own logic in C# that I would like to use when the user clicks the Change Password button of this control .
I have a C# application that calls a MySQL procedure and writes data to the db. All of the fields get populated properly but for the ID field, which is my PK field. It populates the field with an empty string instead of the value. the ID field is a varchar field.
When I try a direct insert...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.