Ask a Question related to ASP.NET General, Design and Development.
-
Ante Perkovic #1
Me.databind() stops button handlers?
Hi,
Sorry for opening new topic instead of replying, but this is a
completely new issue.
I found out that changing one line of code in Page.Load event handler
causes a button handler not to run at all. Original line, that caused
edit button handler in datagrid not to run was:
me.databind()
Then I changed it to:
myDataList.databind()
.... and everything went fine! I tried to switch it back and forth, and
even put some breakpoints. Obviously, me.databind locks button handlers
in some way (?!). Does anyone have similar experience with
me.databind()?
Ante
Ante Perkovic wrote:
> Hi,
>
> I have this piece of code:
> <asp:datagrid id="dgRezervirano" runat="server" CssClass="rezervacije"
>
> AutoGenerateColumns="false" DataKeyField="id" Width="650px">
> ...
> <asp:EditCommandColumn ButtonType="PushButton" UpdateText="OK"
> CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
>
> and in codeBehind, I have:
> Private Sub dgRezervirano_EditCommand(ByVal source As Object,
> ByVal e As DataGridCommandEventArgs) Handles dgRezervirano.EditCommand
>
> dgRezervirano.EditItemIndex = e.Item.ItemIndex
> ...
> End Sub
>
> But, when I click on a "Edit" button, nothing happens!!! I tried with
> breakpoints, but that code is never run!!!
>
> Anybody have an idea why? And it did work 10 minutes ago!Ante Perkovic Guest
-
Acronbat Pro 7 stops STOPS Acrobat printer in 10.4.7
I ave installed Acrobat Pro 7 on my Powerbook G4 system 10.4.7. But whenever I print from Word the Acrobat printer stops. I did have Acrobat 6 which... -
Databind.eval
Is using say .. text = <%# Container.DataItem("SomeFieldName") %> syntax better or the same as text = <%# DataBinder.Eval(Container.DataItem,... -
Databind a combo
hi I'm fairly new to ASP and I'm trying to bind a Recordset to a combo. Is it the same way we do it in VB? -- Kind Regards Rikesh -
BUG in DataBind? After .DataBind there are more DataGrid Items than DataSet Rows!
Consider: Private Sub BindData(ByRef objDataSet As DataSet) Dim x% = DataGrid_Report.Items.Count() Dim y% = objDataSet.Tables(0).Rows.Count() '... -
DataBind
Hello all. I'm populating a dropdown box using the databind(). I'm trying to get two values in one selection. So far I have this:...



Reply With Quote

