473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

building up a control with vb.net

I want to be able to do the following:
Me.lbl_ += ctl.ID.Substring(2) + ".text = " + dr("ErrMess"))
Me.lbl_ += ctl.ID.Substring(2) - this would build up the name of the label control.
".text = " + dr("ErrMess")) - this would add the required text to the control.

is there any way of buildind up a control and then adding a value to it.
Mar 12 '08 #1
3 850
saran23
28
I want to be able to do the following:
Me.lbl_ += ctl.ID.Substring(2) + ".text = " + dr("ErrMess"))
Me.lbl_ += ctl.ID.Substring(2) - this would build up the name of the label control.
".text = " + dr("ErrMess")) - this would add the required text to the control.

is there any way of buildind up a control and then adding a value to it.

Hi Sheena,
Ur not much clear.
U can build a control and assign a value at run time,
Is this ur asking? or something else?
try to make me clear so that i can help u.

Thanks
Saran
Mar 12 '08 #2
I have controls on the asp.net page in and html table and am trying to get a value to the grid but when I try to do thid I can't even get to the name of the field. I have been trying to loop throught the controls on the page and then get the name of the controls and then add the text to the field but when I have tried to do this it has come back as unsuccessful. I want to know how I can loop through the controls and do validations on each control in the html table. If you know any other way of getting a value back from a html table hepl would be much appreciated.Thanks
Mar 12 '08 #3
Frinavale
9,735 Expert Mod 8TB
I have controls on the asp.net page in and html table and am trying to get a value to the grid but when I try to do thid I can't even get to the name of the field. I have been trying to loop throught the controls on the page and then get the name of the controls and then add the text to the field but when I have tried to do this it has come back as unsuccessful. I want to know how I can loop through the controls and do validations on each control in the html table. If you know any other way of getting a value back from a html table hepl would be much appreciated.Thanks
Have you tried using a GridView?
Are you using a Repeater to create the table?
What exactly are you doing.....?

Could you please post your code for creating your HTML table, and also the code you have for looping through your controls.

Thanks

-Frinny
Mar 12 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Steve Jorgensen | last post by:
A while ago, I posted a 1/2 formed idea for what was probably an overcomplicated scheme for improving how we create content using the DOM API. Since then, I've been refactoring some real-world code...
1
by: Robert Hanson | last post by:
Hello All, I am in the process of building an ActiveX control in VC++.NET using a MFC Control Project derived from a Tab Control. Since this is my first time building such a control, would it...
0
by: Robert Hanson | last post by:
Hi All, We are researching the building an MFC ActiveX control project using VS.NET 2003 and I am asking for any references,books that can help. If I am deriving from a tabcontrol, can I use...
4
by: brian | last post by:
Hello, I have spen hours trying to find information on dynamically building a table from an array. What I need: I have an array pulling file paths from a directory using a For Next Loop. F is...
4
by: Brian Shannon | last post by:
I have 3 combo boxes and two date text boxes on a .aspx page. The user can fill in any of the 5 controls or none to filter a datagrid. I was hoping someone could explain how to efficiently build...
8
by: Jacob Arthur | last post by:
How would I go about using a custom select string that is passed from a form to the SelectCommand parameter of SqlDataSource? I tried: SelectCommand = "<% Request.Form("hdnSelect") %>" but I...
1
by: sck10 | last post by:
Hello, I am inserting the values for radio buttons on a form into a database. There are 25 questions with 4 possible answers (see below). Is it possible to pragmatically build the radio button...
5
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, I would like to build my own controls from the ground up. Just as if the Combobox didn't excist and I wanted to create this 'new control' with all is glorious functionality. Is there a...
4
by: stpark22 | last post by:
Hello, I'm building a tracking tool using Access 2003, where my users will be entering orders that includes quantity of products sold, and cost per unit. I'm in the process of building several...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.