473,804 Members | 3,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Event Handler Lost when Dynamic Controls are added in a DataGrid

Hi All
I have been trying to add a control to the header cell of
a datagrid on my ASP.NET page. These controls are defined
in the HTML as ASP.NET web controls.
They are being added into the header of the datagrid in
the "ItemDataBo und" method of the grid. However, once,
they are added in the grid, i seem to lose the event
handler for the same control. Is there anyone who has
tried this before and knows why this is hapenning ??

Thanks in Advance
Ashish Shridharan
Jul 19 '05 #1
8 7936
Yes, I have done something like that. It is a PAIN.

You're "losing" your event handler because the control is
dynamic and if you do a postback it doesn't know that the
control exists, even though it may be in the viewstate.

you will have to recreate the control in the OnInit.
-----Original Message-----
Hi All
I have been trying to add a control to the header cell of
a datagrid on my ASP.NET page. These controls are defined
in the HTML as ASP.NET web controls.
They are being added into the header of the datagrid in
the "ItemDataBo und" method of the grid. However, once,
they are added in the grid, i seem to lose the event
handler for the same control. Is there anyone who has
tried this before and knows why this is hapenning ??

Thanks in Advance
Ashish Shridharan
.

Jul 19 '05 #2
Yes, i guessed as much, which is why i have also defined
those controls in the html as independent web server
controls. All i am doing in the ItemDataBound of the
datagrid is positioning those controls in the header.

Now the page posts back for each of these controls. looks
like i'll have to set up a different mechanism to figure
out which control posted back. Any ideas ??

-----Original Message-----
Yes, I have done something like that. It is a PAIN.

You're "losing" your event handler because the control is
dynamic and if you do a postback it doesn't know that the
control exists, even though it may be in the viewstate.

you will have to recreate the control in the OnInit.
-----Original Message-----
Hi All
I have been trying to add a control to the header cell ofa datagrid on my ASP.NET page. These controls are definedin the HTML as ASP.NET web controls.
They are being added into the header of the datagrid in
the "ItemDataBo und" method of the grid. However, once,
they are added in the grid, i seem to lose the event
handler for the same control. Is there anyone who has
tried this before and knows why this is hapenning ??

Thanks in Advance
Ashish Shridharan
.

.

Jul 19 '05 #3
you might need to add a HtmlInputHidden control to your
form. Write a JavaScript function and hook it up to the
OnClick event of your control. In the JavaScript set the
value of the HtmlInputHidden control to be the ID of the
control that was clicked. Then when you recreate
everything on PostBack you will know what control was
clicked and your app will know what to do next.
-----Original Message-----
Yes, i guessed as much, which is why i have also defined
those controls in the html as independent web server
controls. All i am doing in the ItemDataBound of the
datagrid is positioning those controls in the header.

Now the page posts back for each of these controls. looks
like i'll have to set up a different mechanism to figure
out which control posted back. Any ideas ??

-----Original Message-----
Yes, I have done something like that. It is a PAIN.

You're "losing" your event handler because the control is
dynamic and if you do a postback it doesn't know that thecontrol exists, even though it may be in the viewstate.

you will have to recreate the control in the OnInit.
-----Original Message-----
Hi All
I have been trying to add a control to the header cell

ofa datagrid on my ASP.NET page. These controls aredefinedin the HTML as ASP.NET web controls.
They are being added into the header of the datagrid in
the "ItemDataBo und" method of the grid. However, once,
they are added in the grid, i seem to lose the event
handler for the same control. Is there anyone who has
tried this before and knows why this is hapenning ??

Thanks in Advance
Ashish Shridharan
.

.

.

Jul 19 '05 #4
it took me about a month to figure it out. I kept posting
to forums and everyone kept asking me why I was doing what
I was doing and no one had a solution.
After a lot of trial and error I got something to work.

Now I watch for posts like yours on forums and I try to
help people who are using dynamic controls. Maybe I can
save someone else some time and headaches. : )

Good luck!!
-----Original Message-----
Thanks. This was exactly what i had already started
working towards. And you were right, it is really a pain.
-----Original Message-----
you might need to add a HtmlInputHidden control to your
form. Write a JavaScript function and hook it up to the
OnClick event of your control. In the JavaScript set the
value of the HtmlInputHidden control to be the ID of the
control that was clicked. Then when you recreate
everything on PostBack you will know what control was
clicked and your app will know what to do next.
-----Original Message-----
Yes, i guessed as much, which is why i have also definedthose controls in the html as independent web server
controls. All i am doing in the ItemDataBound of the
datagrid is positioning those controls in the header.

Now the page posts back for each of these controls.

lookslike i'll have to set up a different mechanism to figureout which control posted back. Any ideas ??
-----Original Message-----
Yes, I have done something like that. It is a PAIN.

You're "losing" your event handler because the control

is
dynamic and if you do a postback it doesn't know that

the
control exists, even though it may be in the viewstate.

you will have to recreate the control in the OnInit.

>-----Original Message-----
>Hi All
>I have been trying to add a control to the header cellof
>a datagrid on my ASP.NET page. These controls are
defined
>in the HTML as ASP.NET web controls.
>They are being added into the header of the datagridin>the "ItemDataBo und" method of the grid. However, once,>they are added in the grid, i seem to lose the event
>handler for the same control. Is there anyone who has
>tried this before and knows why this is hapenning ??
>
>Thanks in Advance
>Ashish Shridharan
>.
>
.

.

.

.

Jul 19 '05 #5
Hello Angela -

I am actually sheding tears reading this thread. I also have spent at least
5 sleepless nights trying to figure this out. Also kept posting to the web
and was ignored or people thought I was crazy.

My solution was to use HTML controls with an onclick event setting a flag in
a hidden variable using client side javascript exactly as you defined. I am
a little curious how you can "hook up to the onclick event of your control".
It was exactly this onclick event handler that would not exists and would
not be fired if the control was created dynmamically. Using HTML image
controls solved my problem, but if you get a second, could you please let me
know what you meant by the "hookup"?

Also, thanks for the tid bit on using HtmlInputHidden control. I have to
read up on that. I was using a textbox web form control. One interesting
detail is that I could obviously not set visible to false for the textbox,
but even if I set enabled to fales, the value in the textbox set from
Javascript did not survive the post back.

Thanks again.

Jim

"Angela" <An************ *@globalcrossin g.com> wrote in message
news:11******** *************** *****@phx.gbl.. .
it took me about a month to figure it out. I kept posting
to forums and everyone kept asking me why I was doing what
I was doing and no one had a solution.
After a lot of trial and error I got something to work.

Now I watch for posts like yours on forums and I try to
help people who are using dynamic controls. Maybe I can
save someone else some time and headaches. : )

Good luck!!
-----Original Message-----
Thanks. This was exactly what i had already started
working towards. And you were right, it is really a pain.
-----Original Message-----
you might need to add a HtmlInputHidden control to your
form. Write a JavaScript function and hook it up to the
OnClick event of your control. In the JavaScript set thevalue of the HtmlInputHidden control to be the ID of the
control that was clicked. Then when you recreate
everything on PostBack you will know what control was
clicked and your app will know what to do next.

-----Original Message-----
Yes, i guessed as much, which is why i have also definedthose controls in the html as independent web server
controls. All i am doing in the ItemDataBound of the
datagrid is positioning those controls in the header.

Now the page posts back for each of these controls.

looks
like i'll have to set up a different mechanism to figureout which control posted back. Any ideas ??
>-----Original Message-----
>Yes, I have done something like that. It is a PAIN.
>
>You're "losing" your event handler because the control
is
>dynamic and if you do a postback it doesn't know that
the
>control exists, even though it may be in the viewstate.
>
>you will have to recreate the control in the OnInit.
>
>
>
>>-----Original Message-----
>>Hi All
>>I have been trying to add a control to the header cellof
>>a datagrid on my ASP.NET page. These controls are
defined
>>in the HTML as ASP.NET web controls.
>>They are being added into the header of the datagrid

in
>>the "ItemDataBo und" method of the grid. However, once,>>they are added in the grid, i seem to lose the event
>>handler for the same control. Is there anyone who has
>>tried this before and knows why this is hapenning ??
>>
>>Thanks in Advance
>>Ashish Shridharan
>>.
>>
>.
>
.

.

.

Jul 19 '05 #6
See my post further down the thread, but.....

I had two work arounds to address the issue.

The first and the one I have stuck with is to use HTML controls with
javascript setting a flag as to which control was clicked. On post back I
do the processing. I am not sure how Angela would trap the onclick event of
a web form imagebutton as this was the event handler that would go away on
me and never fire. Let me know if you get it in the end.

The second approach you might find interesting. The reason the event does
not fire is that the load_page fires before the onclick event. Since the
control was created dynamically, the control did not exist in the load page
and I guess it could never call the event once the event was suppose to
fire. Only you could follow this as you have lived with the pain.

Anyway the work around I did not like was to create a funcing...
MakeControls(). Call Make controlls in the proper location, but call it
again on every postback. Even if the properties of the control were wrong
in the load_page event, you will find that the event handler is available
and your event will fire.

I kept posting the question... How can I make an event hander public and
not tied to a control that is loaded dynamically to find a way around
calling MakeControls twice (once in code and every time I did a postback),
but no one seemed to understand the problem.

I did read one obscure post that talked about Java being way ahead of .NET
when it came to persistance. (sp). I think that may be a clue to the
problem.

I am still sort of waiting for some one to post an answer to .... How do
you create a control at run time and preserve the event handler without
using client side java script.

Jim
"Ashish Shridharan" <as****@us-orionin.com> wrote in message
news:10******** *************** *****@phx.gbl.. .
Hi All
I have been trying to add a control to the header cell of
a datagrid on my ASP.NET page. These controls are defined
in the HTML as ASP.NET web controls.
They are being added into the header of the datagrid in
the "ItemDataBo und" method of the grid. However, once,
they are added in the grid, i seem to lose the event
handler for the same control. Is there anyone who has
tried this before and knows why this is hapenning ??

Thanks in Advance
Ashish Shridharan

Jul 19 '05 #7
You can check out this thread as well from the datagrid forum.....

That looks like it will work. I am going to give it a shot in a day or two
once I sort out my other challenge. Thanks again. When you see the other
challenge, you do not have to reply. You can wait a month before answering
another of my posts :-). I will reply for a final note once this all works.

"Stevie_mac " <no******@pleas e.com> wrote in message
news:bi******** **@newsg4.svr.p ol.co.uk...
You know, the bit that was getting me was having AutoGenerateCol umns
off, this just makes this perticular job harder. There is a very easy way
(now that i understand your requirements) to achieve this

The easiest way to do this is...

DG -
* 1st switch on AutoGenerateCol umns
* Add a 'Detail' Link Button (in templated col)

Code
* Generate your 1st SQL string (ie Contact View button was clicked)
* Get data, Set DG.Source & Bind it
* In ItemDataBound (for top level), setup the 'Detail' Link
buttons CommandName to 'Contact' - when the LinkButton is
clicked, you'll get it in ItemCommand.
* In ItemCommand, rebuild you SQL based on CommandName
being 'Contact'
* Rebind grid with new SQL query
* In ItemDataBound, setup the 'Detail' Link
buttons CommandName to 'AccountDetail' - when the LinkButton is
clicked, you'll get it in ItemCommand.
* In ItemCommand, rebuild you SQL based on CommandName
being 'AccountDetail'

Does this make sense?

This way, no matter how many columns/fields you have, all will be displayed with a 'Detail' Link button adjacent (ofcourse you can hide this column once you reach a 'lowest drill down point'

The only down side is the separate 'Detail' column but if theres room, why sweat it?
I can show you how if you need me too - i dont mind. But you know that the fun is in the chase, otherwise, i'm gonna leave off for a bit - let you get in to it.
I'll keep track of the post (or you can email me) if i forget

Good luck

"Jim Mitchell" <ji**********@m indspring.com> wrote in message news:Ok******** ******@tk2msftn gp13.phx.gbl...
Steve - My last post probably confused you because I said "I know I could do it with 2 datagrids". Let me explain the application a bit further....

I have two "views" I can use controlled by a toolbar. Contact View and
Account View. The screen looks almost the same to the user. There is one datagrid. In "Contact View" clicking on the datagrid displays the name and address of the contact. In "Account View", clicking on the datagrid
displays the Account name and Account Address.

So the account datagrid does not populate a datagrid of contacts, there are just tow different views (modes) the page can be in at any time.

When I said, "I can do it with two datagrids, I meant a datagrid for
Accounts and a datagrid for contacts that I turn visibility off and on.
Even though this would work here, I want to have more views down the road on the same page for reports etc.. I just want to use a single datagrid for all views and it seems like I should be able to do so.

Again, I will get back to you once I test your options.

Thanks, Jim
"Stevie_mac " <no******@pleas e.com> wrote in message
news:bi******** **@news7.svr.po l.co.uk...
Jim, I'm not entirely sure what you are doing here so heres my best

guess...

You intend to have one grid filled with Company names (link buttons)
1. When one of the Company names is clicked, you want to re-populate the
grid
grid with Contacts based on your selection??
OR
2. When one of the Company names is clicked, you want to populate a
2nd grid
with Contacts based on your selection?
Ok, this is what i did...
Tried adding handler DataGrid ItemCommand manually (in BindGrid) - No

Good!
Tried adding handler DataGrid ItemSelctionCha nged manually (in
BindGrid) - No
Good!
Tried adding handler button manually (in ItemCreated) - No Good!
Tried adding handler button manually (in ItemDataBound) - No Good!
Tried other tricks - direct from my sleive - No Good.
I Figure i could add a JavaScript handler to the link buttons to
call __DoPostBack() manually but I gave up & went for the EASY

OPTION Templates!!!...

I dont understand (though there usually a reason) why you want to

dynamically
create the
LinkButtons in this particular excersize ???
Any hoo, heres my solution (option 2) ***How i got there - The actual

code is
below if you wanna skip this)***
Create 1 grid called CompaniesGrid
* add 1 Select Button Column.
* Convert it to a template item + apply
* Right click the grid & choose to Edit Tempate Col 0 - you'll see your linkbutton
* Open the databinding options for the LinkButton & set custom binding on the Text property to DataBinder.Eval (Container, "DataItem.Compa ny")
* Set custom binding on the CommandArgument property also. Set this
to DataBinder.Eval (Container, "DataItem.I D")
* OK the changes to your grid
* Add a event handler for ItemCommand
(In ItemCommand, Call function that Binds 2nd grid based on
e.Item.CommandA rgument - which by the way will be you ID from
the Companys table - this keys into the Contacts table!)

Create a 2nd grid called ContactsGrid
* Open the property builder & add 1 Bound Column
* Set the Data Field to 'Contact'
* OK this

*************** *************** *******
Heres my code (this assumes 2 SQL Tables)
*************** *************** *******

*************** *************** *******
SQL Tables...
-------------------------------------------------
Table 1 : tblCompanys (ID = Pri Key)
-------------------------------------------------
ID int (Not Null)
Company varchar(50) [what ever!]

-------------------------------------------------
Table 2 : tblContacts (ID + Contact = Pri Key)
-------------------------------------------------
ID int (not Null)
Contact varchar(50) [what ever!]
*************** *************** *******
*************** *************** *******
VB Code...
-------------------------------------------------
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
If Not IsPostBack Then
BindGrid("Compa ny")
End If
End Sub

Sub BindGrid(ByVal field_name As String, _
Optional ByVal sID As String = "")
Dim mycn As SqlClient.SqlCo nnection
Dim cmd As SqlClient.SqlCo mmand
Dim mysql As String
mycn = New SqlClient.SqlCo nnection( _
System.Configur ation.Configura tionSettings.Ap pSettings( _
"ConnectString" ))
If field_name = "Company" Then
mysql = "Select * from tblCompanys"
mycn.Open()
cmd = New SqlClient.SqlCo mmand(mysql, mycn)
CompaniesGrid.D ataKeyField = "ID"
CompaniesGrid.D ataSource = cmd.ExecuteRead er()
CompaniesGrid.D ataBind()
cmd.Dispose()
mycn.Close()
End If

If field_name = "Contact" Then
mysql = "Select * from tblContacts"
If sID <> "" Then
mysql &= " WHERE ID='" & sID & "';"
End If
mycn.Open()
cmd = New SqlClient.SqlCo mmand(mysql, mycn)
ContactsGrid.Da taKeyField = "ID"
ContactsGrid.Da taSource = cmd.ExecuteRead er()
ContactsGrid.Da taBind()
cmd.Dispose()
mycn.Close()
End If
End Sub

Private Sub CompaniesGrid_I temCommand( _
ByVal source As Object, _
ByVal e As System.Web.UI.W ebControls.Data GridCommandEven tArgs) _
Handles CompaniesGrid.I temCommand
BindGrid("Conta ct", e.CommandArgume nt)
End Sub
*************** *************** *******

*************** *************** *******
And heres my ASPX code (paste this after <Form...> and before </Form>) -------------------------------------------------
<asp:datagrid id="CompaniesGr id"
style="Z-INDEX: 100; LEFT: 16px; POSITION: absolute; TOP: 16px"
runat="server" AutoGenerateCol umns="False" Width="216px"
BorderColor="#C CCCCC" BorderStyle="No ne" BorderWidth="1p x"
BackColor="Whit e" CellPadding="3" >
<SelectedItemSt yle Font-Bold="True" ForeColor="Whit e"
BackColor="#669 999"></SelectedItemSty le>
<ItemStyle ForeColor="#000 066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Whit e"
BackColor="#006 699"></HeaderStyle>
<FooterStyle ForeColor="#000 066" BackColor="Whit e"></FooterStyle>
<Columns>
<asp:TemplateCo lumn>
<HeaderTemplate >
Companies
</HeaderTemplate>
<ItemTemplate >
<asp:LinkButt on id=LinkButton1 runat="server"
Text='<%# DataBinder.Eval (Container, "DataItem.Compa ny") %>'
CommandName="Se lect" CausesValidatio n="False"
CommandArgument ='<%# DataBinder.Eval (Container, "DataItem.I D") %>'> </asp:LinkButton>
</ItemTemplate>
</asp:TemplateCol umn>
</Columns>
<PagerStyle HorizontalAlign ="Left" ForeColor="#000 066"
BackColor="Whit e" Mode="NumericPa ges"></PagerStyle>
</asp:datagrid>
<asp:datagrid id="ContactsGri d"
style="Z-INDEX: 104; LEFT: 240px; POSITION: absolute; TOP: 16px"
runat="server" AutoGenerateCol umns="False" Width="264px"
BorderColor="#C CCCCC" BorderStyle="No ne" BorderWidth="1p x"
BackColor="Whit e" CellPadding="3" >
<SelectedItemSt yle Font-Bold="True" ForeColor="Whit e"
BackColor="#669 999"></SelectedItemSty le>
<ItemStyle ForeColor="#000 066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="Whit e"
BackColor="#006 699"></HeaderStyle>
<FooterStyle ForeColor="#000 066" BackColor="Whit e"></FooterStyle>
<Columns>
<asp:BoundColum n DataField="Cont act"
HeaderText="Con tacts"></asp:BoundColumn >
</Columns>
<PagerStyle HorizontalAlign ="Left" ForeColor="#000 066"
BackColor="Whit e" Mode="NumericPa ges"></PagerStyle>
</asp:datagrid>
*************** *************** *******
"Jim Mitchell" <ji**********@m indspring.com> wrote in message
news:eT******** ******@tk2msftn gp13.phx.gbl...
> Hello Steve - Thanks for the inspiration, but I may never get it :).
>

>>>>>>>>>> SNIP <<<<<<<<<<<<<




"Ashish Shridharan" <as****@us-orionin.com> wrote in message
news:10******** *************** *****@phx.gbl.. . Hi All
I have been trying to add a control to the header cell of
a datagrid on my ASP.NET page. These controls are defined
in the HTML as ASP.NET web controls.
They are being added into the header of the datagrid in
the "ItemDataBo und" method of the grid. However, once,
they are added in the grid, i seem to lose the event
handler for the same control. Is there anyone who has
tried this before and knows why this is hapenning ??

Thanks in Advance
Ashish Shridharan

Jul 19 '05 #8
Hi Jim,

The idea is to (via javascript) save an identifier (for
the control that invoked the postback) in the hidden field.

Now, in the pageload event of the page, check the value of
the hidden field and based on that, call the corresponding
method (which would have been called by that particular
control under normal circumstances).

A sample code snippet for your pageload event

Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArg s) _
Handles MyBase.Load
if Page.IsPostBack then
if htmlhidden.valu e = "textbox3" then
textbox3_OnClic k(nothing, nothing)
end if
end if
end sub

Hope this helps

Ashish Shridharan
Jul 19 '05 #9

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

Similar topics

8
4318
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image button at runtime: //----- Code snippet protected System.Web.UI.WebControls.PlaceHolder ImageHolder; private void Page_Load(object sender, System.EventArgs e)
6
1806
by: Steve Caliendo | last post by:
Hi, I'm creating 5 ImageButton controls in the panel control, and I have a unique ID specified for each one. When I click on any one of them, the Page_Load executes (Of course), but how do I know which ImageButton caused the post back ? Does it get handled in the Page_Load or do I need to create a new event handler ? Thanks,
4
2129
by: The Alchemist | last post by:
I am having a problem with a dynamically-generated Datagrid. It is important to point out that this problem does not exist with a design-time created Datagrid, but only with a dynamically generated Datagrid in a Web Custom Control (WCC) : The datagrid has LinkButton Column which has a select LinkButton for each row. When this button is clicked, the Datagrid raises its 'ItemCommand' event which captures the information for that row and...
2
3452
by: Tim_Mac | last post by:
hi, i have an aspx page which dynamically loads a user control and adds it to a placeholder. the control is recreated and added to the placeholder for postbacks as well. the user control contains a datagrid and some buttons and textboxes. the button events fire correctly and execute their code. however, the datagrid events fire a postback, and execute Page_load in the usercontrol, but the Item_Command code is not executed. the code to...
2
1542
by: Shiju Poyilil | last post by:
I have a link button "lButton" created dynamically at the item databound event of the data grid "datagrid1" in the footer.so i want to execute the item command event of the datagrid on clicking the dynamicaly created link button, but when at runtime i click the dymanic created control it disapears from the datagrid footer and then it doesnt fire the itemcommand event of the datagrid. I am pasting below the pieces of my code for your...
2
3378
by: Deepesh | last post by:
Good day, I have a specific case of the DataGrid in my solution which is causing the ItemCommand Event Not Firing. So I'm creating a "Skinnable" set of controls. I seperate the actual ASCX file and .CS file. When I initialize my .CS file, in that code there is a method that goes: Page.LoadControl(FILENAME) Which associates a .ascx file with my .CS file, allowing me to plug in any
12
465
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the header of the datagrid in the "ItemDataBound" method of the grid. However, once, they are added in the grid, i seem to lose the event handler for the same control. Is there anyone who has tried this before and knows why this is hapenning ??
9
14468
by: Marcelo Cabrera | last post by:
Hi, I have a user control that in turn creates a bunch of webcontrols dynamically and handles the events these webcontrols raise. It used to work fine on ASP .Net 1.1 but when compiled on 2.0 it does not. The problem is that the webcontrols get created on the OnLoad event of the usercontrol and the event handlers are assigned at the same time. I have to click twice on the controls for the events to be raised, the first time nothing...
1
3089
by: Mark Gilkes | last post by:
I have a DataGrid which I am adding to the page dynamically at the Init stage of the page load. The DataGrid has AutoGenerateColumns turned off, has BoundColumns and is bound to a DataView for its’ data source. I have also added a TemplateColumn which is defined in a derived class and contains an ImageButton. The derived TemplateColumn class contains an event handler for DataBinding and in this handler I assign the ImageButton ID. The...
0
9584
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,...
0
10583
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
10337
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...
0
10082
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
9160
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
5525
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...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
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.