Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: SV: need to double click twice before something happen


Message #1 by "Jan Arve Dyrnes" <jan.arve@c...> on Thu, 27 Jun 2002 20:17:04 +0200
Hi,

look for somthing like (!postback)

jana


-----Opprinnelig melding-----
Fra: liej@c... [mailto:liej@c...]
Sendt: 27. juni 2002 19:14
Til: aspx_beginners
Emne: [aspx_beginners] need to double click twice before something
happen


Hi guys..,
basically i follow the example on the Beginning ASP.net on ASP.net server
controls section.
I am trying to do in Place editing.
But when i clicked edit, the label suppose to become a textbox, but that's
not the case.
i have to click twice before the label become textbox to edit.
here is my code...


Public Sub UnitCommentEdit(ByVal source As Object, ByVal etest As
DataGridCommandEventArgs)
        UnitComm.EditItemIndex = etest.Item.ItemIndex
        loadUnitComment(GuideID, UnitID)
    End Sub

					<asp:TemplateColumn
HeaderText="Action">
						<ItemTemplate>
							<asp:LinkButton
CommandName="Delete" Text="Delete" Runat="server"
ID="Linkbutton7"></asp:LinkButton>
							<asp:LinkButton
CommandName="Edit" Text="Edit" Runat="server"
ID="Linkbutton9"></asp:LinkButton>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:LinkButton
CommandName="Cancel" Text="cancel" Runat="server"
ID="Linkbutton5"></asp:LinkButton>
							<asp:LinkButton
CommandName="Update" Text="Save" Runat="server"
ID="Linkbutton6"></asp:LinkButton>
						</EditItemTemplate>
					</asp:TemplateColumn>


any help will be appreciated.
thanks...



Message #2 by liej@c... on Thu, 27 Jun 2002 20:05:11
Hi Jana,
doesn't seems to work.
In the same page, i got the almost same thing, but it's bounded to another 
DB and it works fine with the same functionality.
any idea?




> Hi,

look for somthing like (!postback)

jana


-----Opprinnelig melding-----
Fra: liej@c... [mailto:liej@c...]
Sendt: 27. juni 2002 19:14
Til: aspx_beginners
Emne: [aspx_beginners] need to double click twice before something
happen


Hi guys..,
basically i follow the example on the Beginning ASP.net on ASP.net server
controls section.
I am trying to do in Place editing.
But when i clicked edit, the label suppose to become a textbox, but that's
not the case.
i have to click twice before the label become textbox to edit.
here is my code...


Public Sub UnitCommentEdit(ByVal source As Object, ByVal etest As
DataGridCommandEventArgs)
        UnitComm.EditItemIndex = etest.Item.ItemIndex
        loadUnitComment(GuideID, UnitID)
    End Sub

					<asp:TemplateColumn
HeaderText="Action">
						<ItemTemplate>
							<asp:LinkButton
CommandName="Delete" Text="Delete" Runat="server"
ID="Linkbutton7"></asp:LinkButton>
							<asp:LinkButton
CommandName="Edit" Text="Edit" Runat="server"
ID="Linkbutton9"></asp:LinkButton>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:LinkButton
CommandName="Cancel" Text="cancel" Runat="server"
ID="Linkbutton5"></asp:LinkButton>
							<asp:LinkButton
CommandName="Update" Text="Save" Runat="server"
ID="Linkbutton6"></asp:LinkButton>
						</EditItemTemplate>
					</asp:TemplateColumn>


any help will be appreciated.
thanks...



Message #3 by Elissa Setarehshenas <elissasetareh@y...> on Thu, 27 Jun 2002 12:51:07 -0700 (PDT)
Hi,
I had the same problem yesterday. Instead of using a
seperate button for edit update and cancel use the
following instead.

<asp:EditCommandColumn ButtonType="LinkButton"
UpdateText="Update" CancelText="Cancel" 
EditText="Edit"></asp:EditCommandColumn>

and have seperate functions for Edit Update and Cancel
it gets rid of the need to double click.

Hope this helps,
Elissa



--- liej@c... wrote:
> Hi Jana,
> doesn't seems to work.
> In the same page, i got the almost same thing, but
> it's bounded to another 
> DB and it works fine with the same functionality.
> any idea?
> 
> 
> 
> 
> > Hi,
> 
> look for somthing like (!postback)
> 
> jana
> 
> 
> -----Opprinnelig melding-----
> Fra: liej@c...
> [mailto:liej@c...]
> Sendt: 27. juni 2002 19:14
> Til: aspx_beginners
> Emne: [aspx_beginners] need to double click twice
> before something
> happen
> 
> 
> Hi guys..,
> basically i follow the example on the Beginning
> ASP.net on ASP.net server
> controls section.
> I am trying to do in Place editing.
> But when i clicked edit, the label suppose to become
> a textbox, but that's
> not the case.
> i have to click twice before the label become
> textbox to edit.
> here is my code...
> 
> 
> Public Sub UnitCommentEdit(ByVal source As Object,
> ByVal etest As
> DataGridCommandEventArgs)
>         UnitComm.EditItemIndex 
> etest.Item.ItemIndex
>         loadUnitComment(GuideID, UnitID)
>     End Sub
> 
> 					<asp:TemplateColumn
> HeaderText="Action">
> 						<ItemTemplate>
> 							<asp:LinkButton
> CommandName="Delete" Text="Delete" Runat="server"
> ID="Linkbutton7"></asp:LinkButton>
> 							<asp:LinkButton
> CommandName="Edit" Text="Edit" Runat="server"
> ID="Linkbutton9"></asp:LinkButton>
> 						</ItemTemplate>
> 						<EditItemTemplate>
> 							<asp:LinkButton
> CommandName="Cancel" Text="cancel" Runat="server"
> ID="Linkbutton5"></asp:LinkButton>
> 							<asp:LinkButton
> CommandName="Update" Text="Save" Runat="server"
> ID="Linkbutton6"></asp:LinkButton>
> 						</EditItemTemplate>
> 					</asp:TemplateColumn>
> 
> 
> any help will be appreciated.
> thanks...
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Message #4 by liej@c... on Thu, 27 Jun 2002 21:31:36
Hi Elissa..,
it doesn't seems to work.
strange....??





> Hi,
I had the same problem yesterday. Instead of using a
seperate button for edit update and cancel use the
following instead.

<asp:EditCommandColumn ButtonType="LinkButton"
UpdateText="Update" CancelText="Cancel" 
EditText="Edit"></asp:EditCommandColumn>

and have seperate functions for Edit Update and Cancel
it gets rid of the need to double click.

Hope this helps,
Elissa



--- liej@c... wrote:
> Hi Jana,
> doesn't seems to work.
> In the same page, i got the almost same thing, but
> it's bounded to another 
> DB and it works fine with the same functionality.
> any idea?
> 
> 
> 
> 
> > Hi,
> 
> look for somthing like (!postback)
> 
> jana
> 
> 
> -----Opprinnelig melding-----
> Fra: liej@c...
> [mailto:liej@c...]
> Sendt: 27. juni 2002 19:14
> Til: aspx_beginners
> Emne: [aspx_beginners] need to double click twice
> before something
> happen
> 
> 
> Hi guys..,
> basically i follow the example on the Beginning
> ASP.net on ASP.net server
> controls section.
> I am trying to do in Place editing.
> But when i clicked edit, the label suppose to become
> a textbox, but that's
> not the case.
> i have to click twice before the label become
> textbox to edit.
> here is my code...
> 
> 
> Public Sub UnitCommentEdit(ByVal source As Object,
> ByVal etest As
> DataGridCommandEventArgs)
>         UnitComm.EditItemIndex 
> etest.Item.ItemIndex
>         loadUnitComment(GuideID, UnitID)
>     End Sub
> 
> 					<asp:TemplateColumn
> HeaderText="Action">
> 						<ItemTemplate>
> 							<asp:LinkButton
> CommandName="Delete" Text="Delete" Runat="server"
> ID="Linkbutton7"></asp:LinkButton>
> 							<asp:LinkButton
> CommandName="Edit" Text="Edit" Runat="server"
> ID="Linkbutton9"></asp:LinkButton>
> 						</ItemTemplate>
> 						<EditItemTemplate>
> 							<asp:LinkButton
> CommandName="Cancel" Text="cancel" Runat="server"
> ID="Linkbutton5"></asp:LinkButton>
> 							<asp:LinkButton
> CommandName="Update" Text="Save" Runat="server"
> ID="Linkbutton6"></asp:LinkButton>
> 						</EditItemTemplate>
> 					</asp:TemplateColumn>
> 
> 
> any help will be appreciated.
> thanks...
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

  Return to Index