|
by: Neil |
last post by:
I want to be able to set the enabled status of certain controls on the
edititem template of a formview control based on whether a check box is
checked or not (or the value coming from the database as stored by the
sqldatasource) .
I've tried code such as:
CheckBox cb =
(CheckBox)FormView1.Row.FindControl("SysDefMethod");
Button ub = (Button)FormView1.Row.FindControl("UpdateButton");
|
by: Scott at Cedar Creek |
last post by:
Can I put a repeater inside a FormView?
Can I put a repeater inside that repeater?
If so, what happens when the FormView.Mode is "Edit?" When they click the
EDIT button is my repeater data also saved? Or do I have to code that
manually?
Thanks in advance,
Scott
|
by: Chris |
last post by:
I want to display a formview based on an objectdatasource. One of the things
on the formview will be a link to a pdf. When I go into the edit template I
would like a fileupload to display, which can be used to upload a new pdf. I
would like my object to be as reusable as possible. Can anyone recommend a
way of referencing the fileupload control in as flexible way as possible.
The thing I would like to avoid is using my object on several...
|
by: Ned Balzer |
last post by:
Can anyone explain why in the following code, where btnCancel1 is a
Button inside the itemTemplate of the formview, the first call to
change the text of the button, in the Page_Load sub, works fine, but
the second call, in the bookFormView_ItemUpdated sub, throws an
exception (Object reference not set to an instance of an object)? And
if you know why, can you suggest a workaround?
Here is the code:
Protected Sub Page_Load(ByVal sender...
|
by: wikkiwikkiwaa |
last post by:
hello,
i am trying to access controls inside my formview1 nested inside
loginview1. you cannot access the formview1 unless you are properly
logged in.
for loginview1, that seems to be fairly simple. a label control would
be:
Label label1 = (Label)loginview1.FindControl("nameoflabel");
then i get to the data that was bound to that control.
|
|
by: Nathan Sokalski |
last post by:
I am trying to create a FormView controls in which I access and modify the
the controls in the PagerTemplate programmatically. However, I continue to
recieve the following error:
Object reference not set to an instance of an object.
I am attempting to access the controls in my PagerTemplate using the
following code:
CType(Me.fviewPhotoAlbum.FindControl("lnkPhotoAlbum"), LinkButton)
|
by: sandy_carraggi |
last post by:
I have a web form that has a formview on it. Within the edit
template, I have a drop down list and two text boxes along with an
image. The drop down list is bound to a SQL Data Source and the form
view is bound to an Object Data source. What I want to do is when the
user selects/changes the selection in the drop down, depending upon
what gets selected I want to hide the text boxes and the image.
In order to invoke the drop down's...
|
by: Chris |
last post by:
I have a formview that contains a "drill down" set of dropdowns. You select
a team and it filters the team members drop down to show team members who
belong to that team. I am acheiving this by using object data sources which
use control parameters. However I need to use the datasources within a
formview. This means I have to use a separate datasource in the insert and
select item templates, which seems a bit of duplication. Is there a way...
|
by: Rafter |
last post by:
Hi, I am using a server controls (textbox, dropdownlist, calendar) inside of a form view, it seems that the .Net framework (VB.Net & Net Frame Work 2.0) makes it difficult to access the control properties when embedded inside of a FormView control.
What I am trying to do is to enable or disable a textbox control programatically by accessing the property of the control, along the lines of:
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|