PC Review


Reply
Thread Tools Rate Thread

accessing formview controls

 
 
Horace Nunley
Guest
Posts: n/a
 
      28th Aug 2006
Hi, in my formview "insertItem" template, I have a fileupload control that I
need to handle when the page is saved.
I can't get to that control, or any of the controls thru code.

What gives?

Thanks


 
Reply With Quote
 
 
 
 
KJ
Guest
Posts: n/a
 
      28th Aug 2006
Without seeing any of the code, I would ask the following:

Do all the controls in the template have an ID attribute?
If so, you can find them using such code as:

Button Button1 = (Button)MyFormViewName.FindControl("Button1")

Please post some of the code so we know what hasn't worked.

Horace Nunley wrote:
> Hi, in my formview "insertItem" template, I have a fileupload control that I
> need to handle when the page is saved.
> I can't get to that control, or any of the controls thru code.
>
> What gives?
>
> Thanks


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing controls in FormView justin Microsoft ASP .NET 0 31st Jul 2007 08:08 PM
Accessing the controls in the PagerTemplate when using FormView Nathan Sokalski Microsoft VB .NET 0 11th Jan 2007 06:19 AM
Accessing the controls in the PagerTemplate when using FormView Nathan Sokalski Microsoft ADO .NET 0 11th Jan 2007 06:19 AM
Accessing the controls in the PagerTemplate when using FormView Nathan Sokalski Microsoft ASP .NET 0 11th Jan 2007 06:19 AM
Validation Controls in FormView Q. John Chen Microsoft ASP .NET 1 15th Nov 2006 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.