Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Tue, 16 May 2006 12:26:08 -0400,    group: microsoft.public.vstudio.helpauthoring        back       


Simple question - making a button visible in template.   
NEWBIE trying to learn.  Creating a simple ASPX page.

Have a simple table and I am using VS2005.  I created the formview and I
turned on Update/Insert/Delete.  In the Update template, I made the
"UPDATEBUTTON" (ID) not visible.  I gave that link a new text of "Confirm
Update".  I added a Button1 and gave it a text of "Update".  I want the
Button1_click to make the UpdateButton (ID) visible.

I basically want people confirm they want to update before they are allowed
to do so.

I have attached the actual code.  Can someone tell me how I can make the
UPDATEBUTTON visible?

I know how to do it when it's not in form view with "control.visible =
true", but I can not get it to work in this format.

Thanks!

Phil / newbie
date: Tue, 16 May 2006 12:26:08 -0400   author:   Phillip Vong phillip_vong*at*yahoo*dot*com

Re: Simple question - making a button visible in template.   
I just put this in the OnClick and it worked.

FormView1.FindControl("updatebutton").Visible = True



"Phillip Vong" <phillip_vong*at*yahoo*dot*com> wrote in message 
news:eeT77UQeGHA.3348@TK2MSFTNGP03.phx.gbl...
> NEWBIE trying to learn.  Creating a simple ASPX page.
>
> Have a simple table and I am using VS2005.  I created the formview and I
> turned on Update/Insert/Delete.  In the Update template, I made the
> "UPDATEBUTTON" (ID) not visible.  I gave that link a new text of "Confirm
> Update".  I added a Button1 and gave it a text of "Update".  I want the
> Button1_click to make the UpdateButton (ID) visible.
>
> I basically want people confirm they want to update before they are 
> allowed
> to do so.
>
> I have attached the actual code.  Can someone tell me how I can make the
> UPDATEBUTTON visible?
>
> I know how to do it when it's not in form view with "control.visible =
> true", but I can not get it to work in this format.
>
> Thanks!
>
> Phil / newbie
>
>
>
>
>
>
date: Wed, 17 May 2006 14:22:06 -0400   author:   Phillip Vong phillip_vong*at*yahoo*dot*com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us