asp.net - Update command not throwing any errors, but not working either -
update button executes onclick="updatelogo", nothing shows in database. know executes because can put other instruction refresh or redirect page, , executes, doesn't update. tried using commandname property instead of onclick property, no luck there either. thoughts why?
i've moved in , out of updatepanel
, can see i've got inside formview
right now. i've tried couple of variations on variables @atty_id
or ?
, can't seem work.
here markup:
<asp:updatepanel id="updatepanel19" runat="server"> <contenttemplate> <asp:accessdatasource id="chamberlogodatasource" runat="server" datafile="~/app_data/attorneys.mdb" selectcommand="select attorneys.chamber attorneys atty_id = ?" updatecommand="update attorneys set chamber = ? att_id = ?"> <selectparameters> <asp:querystringparameter name="atty_id" querystringfield="att_id" /> </selectparameters> <updateparameters> <asp:parameter name="chamber" /> <asp:parameter name="atty_id" /> </updateparameters> </asp:accessdatasource> <asp:formview id="formview3" runat="server" datasourceid="chamberlogodatasource" defaultmode="edit"> <edititemtemplate> add chambers logo:<br /> <asp:textbox id="textbox2" runat="server" textmode="multiline" rows="5" columns="50" text='<%# bind("chamber") %>'></asp:textbox> <asp:button id="updatechamberslogobutton" runat="server" text="update" onclick="updatelogo" /> </edititemtemplate> </asp:formview> </contenttemplate> </asp:updatepanel>
and here code behind:
protected sub updatelogo(byval sender object, byval e system.eventargs) chamberlogodatasource.update() end sub
if go record in database has value chamber
, shows in textbox should. if blank , put in there , click button, doesn't updated. if change text there , click button, nothing updates either. i'm kinda lost on one, since there similar code elsewhere on page.
Comments
Post a Comment