473,698 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Serious help needed with beta 2.0 SiteMapProvider ..

RCS
All,

OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).

I put the hierarchy of the applications and navigation in a database, and am
able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level, not
at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the treeview
either, for that matter). I basically check a couple hard-coded "roles" to
the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only trim
away the unwanted menu items if the provider has the
securityTrimmin gEnabled="true" - but when I try to add that to the
<providers> section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user may
only see literally one item and another user may see a few dozen - or at
least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things that
the current user isn't supposed to see??

Nov 19 '05 #1
8 1538
Have you tried to using the roles attribute in the site map file?

<siteMap>
<siteMapNode title="Home" description="" url="default.as px">
<siteMapNode title="Announce ments" url="Announceme nts.aspx"
description="In formation for all employees" roles="*" />
<siteMapNode title="Salaries " url="Salaries.a spx"
description="Sa lary data" roles="Managers ,CEOs" />
<siteMapNode>
</siteMap>

I hope this helps
RedEye

"RCS" <rs****@gmail.c om> wrote in message
news:FQ******** *********@newss vr33.news.prodi gy.com...
All,

OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).

I put the hierarchy of the applications and navigation in a database, and
am able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level, not
at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the treeview
either, for that matter). I basically check a couple hard-coded "roles" to
the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only
trim away the unwanted menu items if the provider has the
securityTrimmin gEnabled="true" - but when I try to add that to the
<providers> section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user may
only see literally one item and another user may see a few dozen - or at
least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things
that the current user isn't supposed to see??

Nov 19 '05 #2
RCS
Well, I'm creating the sitemap on the fly - but yes, this is exactly what
I'm doing.

The problem comes in with telling this sitemap (and the menu or the
treeview) that the currently logged in user does not have access to that
"Salaries" node in your example below.

And the academic solution from Microsoft is to put the users in your
web.config and use an <authorizatio n> section to allow/deny people. But I
have a few thousand dynamic users - so I need to programatically validate
whether a user (and I know their roles) is supposed to see a particular node
item (which has a role associated).

*How* do I accomplish this?

"RedEye" <re*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Have you tried to using the roles attribute in the site map file?

<siteMap>
<siteMapNode title="Home" description="" url="default.as px">
<siteMapNode title="Announce ments" url="Announceme nts.aspx"
description="In formation for all employees" roles="*" />
<siteMapNode title="Salaries " url="Salaries.a spx"
description="Sa lary data" roles="Managers ,CEOs" />
<siteMapNode>
</siteMap>

I hope this helps
RedEye

"RCS" <rs****@gmail.c om> wrote in message
news:FQ******** *********@newss vr33.news.prodi gy.com...
All,

OK, so I'm working on a template for our new ASP.NET applications. Part
of this, includes using the new menu and breadcrumbs control in ASP.NET
2.0 (I'm using beta 2).

I put the hierarchy of the applications and navigation in a database, and
am able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level,
not at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the treeview
either, for that matter). I basically check a couple hard-coded "roles"
to the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only
trim away the unwanted menu items if the provider has the
securityTrimmin gEnabled="true" - but when I try to add that to the
<providers> section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user
may only see literally one item and another user may see a few dozen - or
at least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things
that the current user isn't supposed to see??


Nov 19 '05 #3
Hi RCS:

It's true, you must use securityTrimmin gEnabled="true" . This works
well.

Ignore the red squiggly line. Unfortunately, the validation in VS 2005
can only take into consideration the settings that are common to all
site map providers. The securityTrimmin gEnabled attribute is a setting
specific to the Xml site map provider that ships with asp.net 2.0. It
works, even though the IDE doesn't know about it, the provider does.

It's jus a case of the validation being a little overzealous.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 14 Jul 2005 18:06:29 GMT, "RCS" <rs****@gmail.c om> wrote:
All,

OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).

I put the hierarchy of the applications and navigation in a database, and am
able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level, not
at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the treeview
either, for that matter). I basically check a couple hard-coded "roles" to
the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only trim
away the unwanted menu items if the provider has the
securityTrimmi ngEnabled="true " - but when I try to add that to the
<providers> section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user may
only see literally one item and another user may see a few dozen - or at
least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things that
the current user isn't supposed to see??


Nov 19 '05 #4
RCS
Scott - thanks..

Even if I do do this, A) if I do this in my page_load:

Response.Write( this.SiteMapDat aSource1.Provid er.SecurityTrim mingEnabled.ToS tring());

(Assuming that SiteMapDataSour ce1 points to my custom SiteMapProvider ) - it
returns false. Then, in my class, I do this, to overwrite the default
implementation:

public new bool SecurityTrimmin gEnabled = true;

Still - same result. It's beginning to look like I need to inherit from
higher up the tree - like SiteMapProvider (instead of
StaticSiteMapPr ovider) - or XmlSiteMapProvi der or ProviderBase

But even if I did - and managed to get that to work, I'm not sure it will
solve my problem. Because at this point, I'm almost convinced that MY
sitemaprovider truly doesn't support SecurityTrimmin gEnabled - and I don't
know where to begin, to make it support it.
Lastly - I could've solved all of this last week, if I could just build a
sitemap on a per-user basis (instead of per-application). I could handle all
the security in the database and just return the valid menu items for this
user.

Any ideas on how to make a sitemapprovider (and more specifically - a
SiteMapDataSour ce) - able to be used on a per-user basis???? Thanks again!
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:qi******** *************** *********@4ax.c om...
Hi RCS:

It's true, you must use securityTrimmin gEnabled="true" . This works
well.

Ignore the red squiggly line. Unfortunately, the validation in VS 2005
can only take into consideration the settings that are common to all
site map providers. The securityTrimmin gEnabled attribute is a setting
specific to the Xml site map provider that ships with asp.net 2.0. It
works, even though the IDE doesn't know about it, the provider does.

It's jus a case of the validation being a little overzealous.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 14 Jul 2005 18:06:29 GMT, "RCS" <rs****@gmail.c om> wrote:
All,

OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).

I put the hierarchy of the applications and navigation in a database, and
am
able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level, not
at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the treeview
either, for that matter). I basically check a couple hard-coded "roles" to
the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only
trim
away the unwanted menu items if the provider has the
securityTrimm ingEnabled="tru e" - but when I try to add that to the
<providers> section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user may
only see literally one item and another user may see a few dozen - or at
least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things
that
the current user isn't supposed to see??

Nov 19 '05 #5
Hi Rcs:

You can always plug your own custom site map provider in, although
I've been using security trimming so that should work. It will build
the menu control such that the user only sees what they are allowed to
navigate to.

In the providers section, did you have a <remove> element in to make
sure it's not using the default configuration?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 15 Jul 2005 17:27:50 GMT, "RCS" <rs****@gmail.c om> wrote:
Scott - thanks..

Even if I do do this, A) if I do this in my page_load:

Response.Write( this.SiteMapDat aSource1.Provid er.SecurityTrim mingEnabled.ToS tring());

(Assuming that SiteMapDataSour ce1 points to my custom SiteMapProvider ) - it
returns false. Then, in my class, I do this, to overwrite the default
implementation :

public new bool SecurityTrimmin gEnabled = true;

Still - same result. It's beginning to look like I need to inherit from
higher up the tree - like SiteMapProvider (instead of
StaticSiteMapP rovider) - or XmlSiteMapProvi der or ProviderBase

But even if I did - and managed to get that to work, I'm not sure it will
solve my problem. Because at this point, I'm almost convinced that MY
sitemaprovid er truly doesn't support SecurityTrimmin gEnabled - and I don't
know where to begin, to make it support it.
Lastly - I could've solved all of this last week, if I could just build a
sitemap on a per-user basis (instead of per-application). I could handle all
the security in the database and just return the valid menu items for this
user.

Any ideas on how to make a sitemapprovider (and more specifically - a
SiteMapDataSou rce) - able to be used on a per-user basis???? Thanks again!
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:qi******* *************** **********@4ax. com...
Hi RCS:

It's true, you must use securityTrimmin gEnabled="true" . This works
well.

Ignore the red squiggly line. Unfortunately, the validation in VS 2005
can only take into consideration the settings that are common to all
site map providers. The securityTrimmin gEnabled attribute is a setting
specific to the Xml site map provider that ships with asp.net 2.0. It
works, even though the IDE doesn't know about it, the provider does.

It's jus a case of the validation being a little overzealous.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 14 Jul 2005 18:06:29 GMT, "RCS" <rs****@gmail.c om> wrote:
All,

OK, so I'm working on a template for our new ASP.NET applications. Part of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).

I put the hierarchy of the applications and navigation in a database, and
am
able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level, not
at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the treeview
either, for that matter). I basically check a couple hard-coded "roles" to
the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only
trim
away the unwanted menu items if the provider has the
securityTrim mingEnabled="tr ue" - but when I try to add that to the
<providers > section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user may
only see literally one item and another user may see a few dozen - or at
least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things
that
the current user isn't supposed to see??


Nov 19 '05 #6
RCS
Hiya,

I'm already doing that - I inherited from StaticSiteMapPr ovider - and the
menu is populated correctly with ALL possible menu options (from a SQL
databsae) - including menu options inappropriate for some users.

Assuming my inherited is named MySiteMapProvid er - I have this in my
web.config:

<siteMap defaultProvider ="MySiteMapProv ider" enabled="true">
<providers>
<clear/>
<add name="MySiteMap Provider" securityTrimmin gEnabled="true"
type="MySiteMap Provider"></add>
</providers>
</siteMap>

And again - my provider works perfectly. The problem is, I need to prune
back menu items (or nodes within the provider) so that the current user sees
the appropriate menu items.

I think I've hit the end of the Internet - I've scoured every resource I
know and I'm pretty much at a standstill.

thanks again!

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:s4******** *************** *********@4ax.c om...
Hi Rcs:

You can always plug your own custom site map provider in, although
I've been using security trimming so that should work. It will build
the menu control such that the user only sees what they are allowed to
navigate to.

In the providers section, did you have a <remove> element in to make
sure it's not using the default configuration?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 15 Jul 2005 17:27:50 GMT, "RCS" <rs****@gmail.c om> wrote:
Scott - thanks..

Even if I do do this, A) if I do this in my page_load:
Response.Write( this.SiteMapDat aSource1.Provid er.SecurityTrim mingEnabled.ToS tring());

(Assuming that SiteMapDataSour ce1 points to my custom SiteMapProvider ) -
it
returns false. Then, in my class, I do this, to overwrite the default
implementatio n:

public new bool SecurityTrimmin gEnabled = true;

Still - same result. It's beginning to look like I need to inherit from
higher up the tree - like SiteMapProvider (instead of
StaticSiteMap Provider) - or XmlSiteMapProvi der or ProviderBase

But even if I did - and managed to get that to work, I'm not sure it will
solve my problem. Because at this point, I'm almost convinced that MY
sitemaprovide r truly doesn't support SecurityTrimmin gEnabled - and I don't
know where to begin, to make it support it.
Lastly - I could've solved all of this last week, if I could just build a
sitemap on a per-user basis (instead of per-application). I could handle
all
the security in the database and just return the valid menu items for this
user.

Any ideas on how to make a sitemapprovider (and more specifically - a
SiteMapDataSo urce) - able to be used on a per-user basis???? Thanks again!
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:qi****** *************** ***********@4ax .com...
Hi RCS:

It's true, you must use securityTrimmin gEnabled="true" . This works
well.

Ignore the red squiggly line. Unfortunately, the validation in VS 2005
can only take into consideration the settings that are common to all
site map providers. The securityTrimmin gEnabled attribute is a setting
specific to the Xml site map provider that ships with asp.net 2.0. It
works, even though the IDE doesn't know about it, the provider does.

It's jus a case of the validation being a little overzealous.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Thu, 14 Jul 2005 18:06:29 GMT, "RCS" <rs****@gmail.c om> wrote:

All,

OK, so I'm working on a template for our new ASP.NET applications. Part
of
this, includes using the new menu and breadcrumbs control in ASP.NET 2.0
(I'm using beta 2).

I put the hierarchy of the applications and navigation in a database,
and
am
able to pull that into the app by inheriting StaticSiteMapPr ovider. So
that's set and works great.

So then I realize that it builds the sitemap at the application level,
not
at the user level. So I've been looking into how to restrict the menu
items - based on security I will get from the database.

In my inherited class, I override IsAccessibleToU ser - and that seems to
work for the breadcrumbs (because it doesn't show anything if I go to an
"invalid" page) - but it doesn't do anything to the menu (or the
treeview
either, for that matter). I basically check a couple hard-coded "roles"
to
the "roles" that are associated with the current node.

From what I've been piecing together, it looks like the menu will only
trim
away the unwanted menu items if the provider has the
securityTri mmingEnabled="t rue" - but when I try to add that to the
<provider s> section in web.config - I get a red-squiggly and a compiler
warning that it's invalid (where it used to be valid in old versions).

BOTTOM LINE:
I need to prune the menu hierarchy based on user permissions. One user
may
only see literally one item and another user may see a few dozen - or at
least that's what I need to replicate.

How can I have the menu control (or the treeview) prune away the things
that
the current user isn't supposed to see??

Nov 19 '05 #7
I know there is not a tremendous amount published yet in this area.
Best of luck.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 15 Jul 2005 18:27:28 GMT, "RCS" <rs****@gmail.c om> wrote:
Hiya,

I'm already doing that - I inherited from StaticSiteMapPr ovider - and the
menu is populated correctly with ALL possible menu options (from a SQL
databsae) - including menu options inappropriate for some users.

Assuming my inherited is named MySiteMapProvid er - I have this in my
web.config:

<siteMap defaultProvider ="MySiteMapProv ider" enabled="true">
<providers>
<clear/>
<add name="MySiteMap Provider" securityTrimmin gEnabled="true"
type="MySiteMa pProvider"></add>
</providers>
</siteMap>

And again - my provider works perfectly. The problem is, I need to prune
back menu items (or nodes within the provider) so that the current user sees
the appropriate menu items.

I think I've hit the end of the Internet - I've scoured every resource I
know and I'm pretty much at a standstill.

thanks again!


Nov 19 '05 #8
Not much except for here: http://msdn2.microsoft.com/library/e468hxky.aspx
Some good forum posts at
http://forums.asp.net/search/SearchR...trimming&f=&u= too.

--JF

"Scott Allen" wrote:
I know there is not a tremendous amount published yet in this area.
Best of luck.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 15 Jul 2005 18:27:28 GMT, "RCS" <rs****@gmail.c om> wrote:
Hiya,

I'm already doing that - I inherited from StaticSiteMapPr ovider - and the
menu is populated correctly with ALL possible menu options (from a SQL
databsae) - including menu options inappropriate for some users.

Assuming my inherited is named MySiteMapProvid er - I have this in my
web.config:

<siteMap defaultProvider ="MySiteMapProv ider" enabled="true">
<providers>
<clear/>
<add name="MySiteMap Provider" securityTrimmin gEnabled="true"
type="MySiteMa pProvider"></add>
</providers>
</siteMap>

And again - my provider works perfectly. The problem is, I need to prune
back menu items (or nodes within the provider) so that the current user sees
the appropriate menu items.

I think I've hit the end of the Internet - I've scoured every resource I
know and I'm pretty much at a standstill.

thanks again!


Nov 19 '05 #9

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

Similar topics

1
1294
by: RCS | last post by:
Does anyone know of a tabbed navigation control that supports SiteMapProvider (the same way the menu, breadcrumbs and treeview do in 2.0)?? I'm looking for www.amazon.com style tabbed navigation, but something that will plug it seamlessly with my exisitng navigation provider. Thanks!
0
1077
by: Thomas Bandt | last post by:
Hi, I wrote my own SiteMapProvider which fetches the data from a Sql Database (Navigation hierarchy). But this data (categories) could contain absolute external Urls (like http://google.com/) as well as duplicate Urls to the same local or external file. In both scenarios the runtime throws an exception. Is there a known workaround?
2
1924
by: dhurwitz | last post by:
Hi, I have written a custom SiteMapProvider to retrieve site map data from a SQL Server database table. It works fine when used as the data source for a Menu control, so I am confident that all the nodes are being correctly populated. However, when used with a TreeView control, only the first node displays. Any suggestions on why this might be the case? Thanks.
0
1415
by: ashish | last post by:
hello all, I am trying to create a custom site map provider and since my site map is very huge, I am loading the required nodes when the CurrentNode property is called.. I am wondering if this would be a performance bottleneck, since according to my understanding a single nstance of sitemapprovider is loaded for the app domain
3
8012
by: Adrian Sharp | last post by:
I've got a pretty basic sitemap setup, but am getting a runtime error: "The SiteMapProvider 'MySiteMap' cannot be found." This occurs only when I access my website under IIS 5.1. When I run my app under the debugger (localhost:1946) I have no problem. I thought of trying IIS6.0, but am running XP, so can't upgrade to 6.0. Any ideas? my web.config relevant lines <siteMap> <providers>
1
4434
by: shapper | last post by:
Hello, How to make a SiteMapDataSource to use a SiteMapProvider defined in Web.Config? I think I should use something like: MySiteMapDataSource.Provider = ... However I don't know what to place in "...". I tried to use a string with the name of the provider but it didn't
0
1398
by: shapper | last post by:
Hello, I need to create a custom SiteMapProvider. I searched in Google for examples but I am still completly lost. The custom SiteMapProvider I need to create is exactly the same as the Asp.Net SiteMapProvider: The only difference is: attribute Visible = "True".
0
2126
by: Alex Brown | last post by:
Is it a problem to attach Non-static site map providers under one that inherits from StaticSiteMapProvider ? We are implementing a custom site map provider for a website that is being converted to ASP.NET 2.0. The conversion is going well because some of the features, like Master Pages and Site Maps, of ASP.NET 2.0 allow us to migrate away from a "top frame" style of navigation to a standard dynamic cascading top menu with minimal...
2
1631
by: Steve Harclerode | last post by:
Hi, I have implemented a working SiteMapProvider as shown on an msdn page: http://msdn.microsoft.com/en-us/library/ms178434(VS.80).aspx My question is: Can I make the TreeView that uses a SiteMapProvider show the heirarchy from the current node down, instead of from the root? My scenario is that I have a website with several thousand folders, each folder containing less than 100 pages. What I would like is that if you are
0
8609
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
9170
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
9031
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
8901
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
8871
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
7739
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
5862
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
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.