473,848 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

listboxes...... ...

I have several template columns inside of a datagrid.
Inside of these template columns are databound listboxes:

<asp:TemplateCo lumn HeaderText="Cre w Chiefs">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#fff fff" id="lstCrewChie f" runat="server"
Rows="1" DataSource="<%# DsCrewChief1 %>" Enabled="True"
SelectionMode=" Single" DataTextField=" UserName"
DataValueField= "UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="EMT 's/Drivers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#fff fff" id="lstEMTDrive r" runat="server"
Rows="1" DataSource="<%# DsEMTDriver1 %>" Enabled="True"
SelectionMode=" Single" DataTextField=" UserName"
DataValueField= "UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="Rid ers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#fff fff" id="lstRider" runat="server" Rows="1"
DataSource="<%# DsRider1 %>" Enabled="True"
SelectionMode=" Multiple" DataTextField=" UserName"
DataValueField= "UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>


I would like to do 2 things with these listboxes: One, is
to set the selected value in the listbox to the values I
retrieve in the database. The second, is to set the
selected values in the listboxes to values before I write
the data to the database.

I'm confused about the ITEMDatabound event of the
datagrid. Is this event used to get the values of the
listboxes BEFORE I write the data to the database (which I
think it is)? If so, is there an event I need to use to
SET the values in the listboxes to the values I retrieved
from the database? If there is no event, how do I go about
setting the values of the listboxes?

Also, how do I set and retrieve values from a listbox that
can have multiple selections...

Below is the code I have for the ItemDataBound
event.......... .
Private Sub DataGrid1_ItemD ataBound(ByVal sender As
Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles
DataGrid1.ItemD ataBound

'Get the correct values for the listboxes
If e.Item.ItemType = ListItemType.It em Then
Dim lstCrewChiefTem p As ListBox
Dim lstEMTsDriverTe mp As ListBox
Dim lstRiderTemp As ListBox
lstCrewChiefTem p = e.Item.FindCont rol
("lstCrewChief" )
lstCrewChiefTem p.SelectedIndex =
lstCrewChiefTem p.Items.IndexOf
(lstCrewChiefTe mp.Items.FindBy Value(e.Item.Da taItem
("Username") ))
lstEMTsDriverTe mp = e.Item.FindCont rol
("lstEMTDriver" )
lstEMTsDriverTe mp.SelectedInde x =
lstEMTsDriverTe mp.Items.IndexO f
(lstEMTsDriverT emp.Items.FindB yValue(e.Item.D ataItem
("Username") ))
lstRiderTemp = e.Item.FindCont rol("lstRider")
lstRiderTemp.Se lectedIndex =
lstRiderTemp.It ems.IndexOf(lst RiderTemp.Items .FindByValue
(e.Item.DataIte m("Username") ))
End If

End Sub

Thanks,

Bill.
Nov 17 '05 #1
4 1918
Answer to Qn1.

ItemDataBound is the method that is called just after the
Data binding is over. This is the place where you add your
code to choose what is selected in the list box.

You can do it this way.

Put this code in ItemDataBound with your regular check for
ItemTypes.

Dim lstCrewChiefTem p As ListBox
lstCrewChiefTem p.Items.FindByV alue("123").Sel ected = True

Answer for Qn2.

You can access the multiple items selected in ListBox as
follows.

dim item as ListItem
For Each item in List1.Items
if item.Selected = True Then
'code to process the selected items.
End if

Next

I guess this is what you are looking for. If NOT please
reply back.

With Regards
Prakash R.
-----Original Message-----
I have several template columns inside of a datagrid.
Inside of these template columns are databound listboxes:

<asp:TemplateC olumn HeaderText="Cre w Chiefs">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#ff ffff" id="lstCrewChie f" runat="server"
Rows="1" DataSource="<%# DsCrewChief1 %>" Enabled="True"
SelectionMode= "Single" DataTextField=" UserName"
DataValueField ="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="EMT 's/Drivers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#ff ffff" id="lstEMTDrive r" runat="server"
Rows="1" DataSource="<%# DsEMTDriver1 %>" Enabled="True"
SelectionMode= "Single" DataTextField=" UserName"
DataValueField ="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="Rid ers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#ff ffff" id="lstRider" runat="server" Rows="1"
DataSource="<% # DsRider1 %>" Enabled="True"
SelectionMode= "Multiple" DataTextField=" UserName"
DataValueField ="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>


I would like to do 2 things with these listboxes: One, is
to set the selected value in the listbox to the values I
retrieve in the database. The second, is to set the
selected values in the listboxes to values before I write
the data to the database.

I'm confused about the ITEMDatabound event of the
datagrid. Is this event used to get the values of the
listboxes BEFORE I write the data to the database (which Ithink it is)? If so, is there an event I need to use to
SET the values in the listboxes to the values I retrieved
from the database? If there is no event, how do I go aboutsetting the values of the listboxes?

Also, how do I set and retrieve values from a listbox thatcan have multiple selections...

Below is the code I have for the ItemDataBound
event......... ..
Private Sub DataGrid1_ItemD ataBound(ByVal sender As
Object, ByVal e As
System.Web.UI. WebControls.Dat aGridItemEventA rgs) Handles
DataGrid1.Item DataBound

'Get the correct values for the listboxes
If e.Item.ItemType = ListItemType.It em Then
Dim lstCrewChiefTem p As ListBox
Dim lstEMTsDriverTe mp As ListBox
Dim lstRiderTemp As ListBox
lstCrewChiefTem p = e.Item.FindCont rol
("lstCrewChief ")
lstCrewChiefTem p.SelectedIndex =
lstCrewChiefTe mp.Items.IndexO f
(lstCrewChiefT emp.Items.FindB yValue(e.Item.D ataItem
("Username") ))
lstEMTsDriverTe mp = e.Item.FindCont rol
("lstEMTDriver ")
lstEMTsDriverTe mp.SelectedInde x =
lstEMTsDriverT emp.Items.Index Of
(lstEMTsDriver Temp.Items.Find ByValue(e.Item. DataItem
("Username") ))
lstRiderTemp = e.Item.FindCont rol("lstRider")
lstRiderTemp.Se lectedIndex =
lstRiderTemp.I tems.IndexOf(ls tRiderTemp.Item s.FindByValue
(e.Item.DataIt em("Username")) )
End If

End Sub

Thanks,

Bill.
.

Nov 17 '05 #2
Prakash, is there an event I can use to set the values of
the respective listboxes once I get to the page.

At first, I load the listboxes (if not already in cache),
then, I want to set the selected values in the listboxes
to what they are in the database (via another query from
a previous user update that the user had selected prior).

If there is no event I can use, I was planning on looping
thru the columns in the datagrid and setting the values
of the listboxes that way........
-----Original Message-----
Answer to Qn1.

ItemDataBoun d is the method that is called just after theData binding is over. This is the place where you add yourcode to choose what is selected in the list box.

You can do it this way.

Put this code in ItemDataBound with your regular check forItemTypes.

Dim lstCrewChiefTem p As ListBox
lstCrewChiefTe mp.Items.FindBy Value("123").Se lected = True

Answer for Qn2.

You can access the multiple items selected in ListBox as
follows.

dim item as ListItem
For Each item in List1.Items
if item.Selected = True Then
'code to process the selected items.
End if

Next

I guess this is what you are looking for. If NOT please
reply back.

With Regards
Prakash R.
-----Original Message-----
I have several template columns inside of a datagrid.
Inside of these template columns are databound listboxes:
<asp:Template Column HeaderText="Cre w Chiefs">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#f fffff" id="lstCrewChie f" runat="server"
Rows="1" DataSource="<%# DsCrewChief1 %>" Enabled="True"SelectionMode ="Single" DataTextField=" UserName"
DataValueFiel d="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="EMT 's/Drivers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#f fffff" id="lstEMTDrive r" runat="server"
Rows="1" DataSource="<%# DsEMTDriver1 %>" Enabled="True"SelectionMode ="Single" DataTextField=" UserName"
DataValueFiel d="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="Rid ers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#f fffff" id="lstRider" runat="server" Rows="1"DataSource="< %# DsRider1 %>" Enabled="True"
SelectionMode ="Multiple" DataTextField=" UserName"
DataValueFiel d="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>


I would like to do 2 things with these listboxes: One, isto set the selected value in the listbox to the values Iretrieve in the database. The second, is to set the
selected values in the listboxes to values before I writethe data to the database.

I'm confused about the ITEMDatabound event of the
datagrid. Is this event used to get the values of the
listboxes BEFORE I write the data to the database (which
I
think it is)? If so, is there an event I need to use to
SET the values in the listboxes to the values I

retrievedfrom the database? If there is no event, how do I go

about
setting the values of the listboxes?

Also, how do I set and retrieve values from a listbox

that
can have multiple selections...

Below is the code I have for the ItemDataBound
event........ ...
Private Sub DataGrid1_ItemD ataBound(ByVal sender As
Object, ByVal e As
System.Web.UI .WebControls.Da taGridItemEvent Args) HandlesDataGrid1.Ite mDataBound

'Get the correct values for the listboxes
If e.Item.ItemType = ListItemType.It em Then
Dim lstCrewChiefTem p As ListBox
Dim lstEMTsDriverTe mp As ListBox
Dim lstRiderTemp As ListBox
lstCrewChiefTem p = e.Item.FindCont rol
("lstCrewChie f")
lstCrewChiefTem p.SelectedIndex =
lstCrewChiefT emp.Items.Index Of
(lstCrewChief Temp.Items.Find ByValue(e.Item. DataItem
("Username")) )
lstEMTsDriverTe mp = e.Item.FindCont rol
("lstEMTDrive r")
lstEMTsDriverTe mp.SelectedInde x =
lstEMTsDriver Temp.Items.Inde xOf
(lstEMTsDrive rTemp.Items.Fin dByValue(e.Item .DataItem
("Username")) )
lstRiderTemp = e.Item.FindCont rol ("lstRider") lstRiderTemp.Se lectedIndex =
lstRiderTemp. Items.IndexOf (lstRiderTemp.I tems.FindByValu e(e.Item.DataI tem("Username") ))
End If

End Sub

Thanks,

Bill.
.

.

Nov 17 '05 #3
Prakash, is there an event I can use to set the values of
the respective listboxes once I get to the page.

At first, I load the listboxes (if not already in cache),
then, I want to set the selected values in the listboxes
to what they are in the database (via another query from
a previous user update that the user had selected prior).

If there is no event I can use, I was planning on looping
thru the columns in the datagrid and setting the values
of the listboxes that way........
-----Original Message-----
Answer to Qn1.

ItemDataBoun d is the method that is called just after theData binding is over. This is the place where you add yourcode to choose what is selected in the list box.

You can do it this way.

Put this code in ItemDataBound with your regular check forItemTypes.

Dim lstCrewChiefTem p As ListBox
lstCrewChiefTe mp.Items.FindBy Value("123").Se lected = True

Answer for Qn2.

You can access the multiple items selected in ListBox as
follows.

dim item as ListItem
For Each item in List1.Items
if item.Selected = True Then
'code to process the selected items.
End if

Next

I guess this is what you are looking for. If NOT please
reply back.

With Regards
Prakash R.
-----Original Message-----
I have several template columns inside of a datagrid.
Inside of these template columns are databound listboxes:
<asp:Template Column HeaderText="Cre w Chiefs">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#f fffff" id="lstCrewChie f" runat="server"
Rows="1" DataSource="<%# DsCrewChief1 %>" Enabled="True"SelectionMode ="Single" DataTextField=" UserName"
DataValueFiel d="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="EMT 's/Drivers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#f fffff" id="lstEMTDrive r" runat="server"
Rows="1" DataSource="<%# DsEMTDriver1 %>" Enabled="True"SelectionMode ="Single" DataTextField=" UserName"
DataValueFiel d="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="Rid ers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="#f fffff" id="lstRider" runat="server" Rows="1"DataSource="< %# DsRider1 %>" Enabled="True"
SelectionMode ="Multiple" DataTextField=" UserName"
DataValueFiel d="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>


I would like to do 2 things with these listboxes: One, isto set the selected value in the listbox to the values Iretrieve in the database. The second, is to set the
selected values in the listboxes to values before I writethe data to the database.

I'm confused about the ITEMDatabound event of the
datagrid. Is this event used to get the values of the
listboxes BEFORE I write the data to the database (which
I
think it is)? If so, is there an event I need to use to
SET the values in the listboxes to the values I

retrievedfrom the database? If there is no event, how do I go

about
setting the values of the listboxes?

Also, how do I set and retrieve values from a listbox

that
can have multiple selections...

Below is the code I have for the ItemDataBound
event........ ...
Private Sub DataGrid1_ItemD ataBound(ByVal sender As
Object, ByVal e As
System.Web.UI .WebControls.Da taGridItemEvent Args) HandlesDataGrid1.Ite mDataBound

'Get the correct values for the listboxes
If e.Item.ItemType = ListItemType.It em Then
Dim lstCrewChiefTem p As ListBox
Dim lstEMTsDriverTe mp As ListBox
Dim lstRiderTemp As ListBox
lstCrewChiefTem p = e.Item.FindCont rol
("lstCrewChie f")
lstCrewChiefTem p.SelectedIndex =
lstCrewChiefT emp.Items.Index Of
(lstCrewChief Temp.Items.Find ByValue(e.Item. DataItem
("Username")) )
lstEMTsDriverTe mp = e.Item.FindCont rol
("lstEMTDrive r")
lstEMTsDriverTe mp.SelectedInde x =
lstEMTsDriver Temp.Items.Inde xOf
(lstEMTsDrive rTemp.Items.Fin dByValue(e.Item .DataItem
("Username")) )
lstRiderTemp = e.Item.FindCont rol ("lstRider") lstRiderTemp.Se lectedIndex =
lstRiderTemp. Items.IndexOf (lstRiderTemp.I tems.FindByValu e(e.Item.DataI tem("Username") ))
End If

End Sub

Thanks,

Bill.
.

.

Nov 17 '05 #4
Bill,

I would still use ItemDataBound to set the listbox
selection.

Here is an example of how I acheived in my own problem.
The datagrid is databound. I have a column with the value
of the listbox to be set with the selection. So, to set
the listbox I pick the value from the other column, which
is bound just before this event. In case where no
selection is available for the row, a default string is
inserted and selected in the listbox.

If ViewState("Inse rtMode") = True Then
CType(e.Item.Ce lls(6).FindCont rol("CompanyNam e"),
DropDownList).I tems.Insert(0, New ListItem("Selec t one", -
99))
Else
ID = CType(e.Item.Ce lls(5).FindCont rol("CompanyID" ),
LiteralControl) .Text
CType(e.Item.Ce lls(6).FindCont rol("CompanyNam e"),
DropDownList).I tems.FindByValu e(ID).Selected = True
End If

Hope this helps.
Prakash R.
-----Original Message-----
Prakash, is there an event I can use to set the values of
the respective listboxes once I get to the page.

At first, I load the listboxes (if not already in cache),
then, I want to set the selected values in the listboxes
to what they are in the database (via another query from
a previous user update that the user had selected prior).

If there is no event I can use, I was planning on looping
thru the columns in the datagrid and setting the values
of the listboxes that way........
-----Original Message-----
Answer to Qn1.

ItemDataBou nd is the method that is called just after

the
Data binding is over. This is the place where you add

your
code to choose what is selected in the list box.

You can do it this way.

Put this code in ItemDataBound with your regular check

for
ItemTypes.

Dim lstCrewChiefTem p As ListBox
lstCrewChiefT emp.Items.FindB yValue("123").S elected = True

Answer for Qn2.

You can access the multiple items selected in ListBox as
follows.

dim item as ListItem
For Each item in List1.Items
if item.Selected = True Then
'code to process the selected items.
End if

Next

I guess this is what you are looking for. If NOT please
reply back.

With Regards
Prakash R.
-----Original Message-----
I have several template columns inside of a datagrid.
Inside of these template columns are databoundlistboxes:
<asp:Templat eColumn HeaderText="Cre w Chiefs">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="# ffffff" id="lstCrewChie f" runat="server"
Rows="1" DataSource="<%# DsCrewChief1 %>"Enabled="Tru e"SelectionMod e="Single" DataTextField=" UserName"
DataValueFie ld="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="EMT 's/Drivers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="# ffffff" id="lstEMTDrive r" runat="server"
Rows="1" DataSource="<%# DsEMTDriver1 %>"Enabled="Tru e"SelectionMod e="Single" DataTextField=" UserName"
DataValueFie ld="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>

<asp:TemplateCo lumn HeaderText="Rid ers">

<ItemTemplate >

<asp:listbox AutoPostBack="F alse"
BackColor="# ffffff" id="lstRider" runat="server"Rows="1"DataSource=" <%# DsRider1 %>" Enabled="True"
SelectionMod e="Multiple" DataTextField=" UserName"
DataValueFie ld="UserName" />

</asp:listbox>

</ItemTemplate>

</asp:TemplateCol umn>


I would like to do 2 things with these listboxes: One,isto set the selected value in the listbox to the valuesIretrieve in the database. The second, is to set the
selected values in the listboxes to values before Iwritethe data to the database.

I'm confused about the ITEMDatabound event of the
datagrid. Is this event used to get the values of the
listboxes BEFORE I write the data to the database(which
I
think it is)? If so, is there an event I need to use to
SET the values in the listboxes to the values I

retrievedfrom the database? If there is no event, how do I go

about
setting the values of the listboxes?

Also, how do I set and retrieve values from a listbox

that
can have multiple selections...

Below is the code I have for the ItemDataBound
event....... ....
Private Sub DataGrid1_ItemD ataBound(ByVal sender As
Object, ByVal e As
System.Web.U I.WebControls.D ataGridItemEven tArgs)HandlesDataGrid1.It emDataBound

'Get the correct values for the listboxes
If e.Item.ItemType = ListItemType.It em Then
Dim lstCrewChiefTem p As ListBox
Dim lstEMTsDriverTe mp As ListBox
Dim lstRiderTemp As ListBox
lstCrewChiefTem p = e.Item.FindCont rol
("lstCrewChi ef")
lstCrewChiefTem p.SelectedIndex =
lstCrewChief Temp.Items.Inde xOf
(lstCrewChie fTemp.Items.Fin dByValue(e.Item .DataItem
("Username") ))
lstEMTsDriverTe mp = e.Item.FindCont rol
("lstEMTDriv er")
lstEMTsDriverTe mp.SelectedInde x =
lstEMTsDrive rTemp.Items.Ind exOf
(lstEMTsDriv erTemp.Items.Fi ndByValue(e.Ite m.DataItem
("Username") ))
lstRiderTemp = e.Item.FindCont rol("lstRider") lstRiderTemp.Se lectedIndex =
lstRiderTemp .Items.IndexOf(lstRiderTemp. Items.FindByVal ue(e.Item.Data Item("Username" )))
End If

End Sub

Thanks,

Bill.
.

.

.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1433
by: Jeffrey Barish | last post by:
I have an application that produces two listboxes. I would like to be able to select one of the items in the first listbox and one of the items in the second listbox. However, when I make my selection in the second listbox, the selected item in the first listbox gets deselected. Is there a way to do this? I tried setting selectmode to MULTIPLE, but that option only allows me to select multiple items in one of the listboxes (both of...
3
459
by: softengine | last post by:
Can and how do you alter a data view to include a look up field from another data table? The data table of the dataview only has the key, the value I need is in another data table. Can and how to you reference the value of a column in a data table/view from the row filter string of a different data view. I'm using a strongly typed dataset. Below is more info.
3
1717
by: Simon Templar | last post by:
I need the following functionality: With 2 listboxes populated from a database with the SAME data, I need any of the listboxes to stop displaying the option when selected at the other listbox. Eg: data records are A and B, and initially are available in both listboxes, but once the user selects A in the first listbox, the second one should only display B. Any reference?
9
4960
by: Susan Bricker | last post by:
Hi. I have two questions ... (1) I want to use a Listbox to enable the user to select 1 or many items from the list. However, I'm having trouble figuring out how to find out t which items have been selected. How can I do that? Given the listindex, .selected, .itemsselected, .itemdata properties -- I'm getting confused. (2) I, actually, have two listboxes on the form and I want to ONLY let the user select items in one list. The...
0
1108
by: Terry D | last post by:
I'm having an issue with an ASP.NET page (VS.NET 2003, VB.NET, Oracle back end). The page uses the standard VS.NET grid to display the records from a particular table. The user can edit certain fields in the grid. There are 10 columns in the grid, 5 static fields (labels), 4 listboxes, and 1 edit box. 2 of the listboxes hold about 12 items each and the other 2 listboxes only contain 2 items. The problem is that on some lower end...
1
1355
by: Ryan Ternier | last post by:
I have two listboxes, and allow users to move items between them via the following function: function SwitchList(fbox, tbox){ var arrFbox = new Array(); var arrTbox = new Array(); var arrLookup = new Array(); var i; for (i = 0; i < tbox.options.length; i++) {
0
1590
by: Luis Esteban Valencia | last post by:
have a problem and I'm not sure how to handle/fix it. I have three listboxes on my page. The first listbox has a list of software products. When you select an item in the Products listbox, then the two other listboxes fill up with choices, one has related versions of that product, and the other has related Categories. Pretty typical stuff. Anyway, when I first designed the page, I used ASP.NET code to fill the values of the Version and...
2
4358
by: salad | last post by:
This is a tip on how to speed up listboxes DRAMATICALLY. Persons that would benefit are those that are constantly updating the rowsource of a listbox/combobox in order to filter and sort the data and the refreshes are slow. (OT. I've often wondered why there is no .Sort or .Filter property for Combos and Listboxes.) My listboxes , and their rowsources, on my form were constantly being refreshed to filter and sort data. Ex:
0
867
by: amidala | last post by:
Hello, everyone, i've recently started using C# and i'm rather new to this language. I'm trying to make a small project now that is combining the basic knowledge of programming (according to me :) ). But of course i crashed a wall at a certain moment. Actually two walls. I checked a lot of webpages, forums, but couldn't find a solution. So, the problem is: I have two listboxes and two textboxes. The data, gathered in the listboxes is later on...
0
9893
marktang
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...
0
11000
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10663
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10722
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10348
tracyyun
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...
0
9499
agi2029
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...
0
7069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4136
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3174
bsmnconsultancy
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...

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.