473,795 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use function in ConnectionStrin g property in SQLDataSource Webcontrol ?

Hi. In a repeater I have as ItemTemplate the following, among others,
and everything works great:

<asp:SqlDataSou rce
ID="LocationSql DataSource"
SelectCommand=" SELECT blah-blah-blah"
EnableCaching=" True"
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
CacheDuration=" 60"
FilterExpressio n="ID = {0}" RunAt="server">

<FilterParamete rs>
<asp:ControlPar ameter ControlID="Hype rLinkMeasureID"
PropertyName="T ext" /> </FilterParameter s>
</asp:SqlDataSour ce>
etc.
I have encrypted in Base64 the "OrderingProces s" which was
<add name="OrderingP rocess" connectionStrin g="server=xxx
\xxx;database=x xx;User ID=xxx;Password =xxx;"
providerName="S ystem.Data.SqlC lient" />

and the "ConnectionStri ng" which was
<add key="Connection String" value="Data Source=xxx\xxx; Initial
Catalog=xxx;Use r ID=xxx;Password =xxx;"/>

and in the code-behind I have a function named DecryptSetting which
can be used as:

DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order ingProcess"))
The question is: how could I use this function in
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
above ?

I cannot say
ConnectionStrin g="<%=
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order ingProcess"))
%>"
In all the places in code behind where I needed the connection string,
I have used
Cache("Connecti onString") which has been set in App_Init as:

HttpContext.Cur rent.Cache("Con nectionString") =
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Conne ctionString"))

Thanks a lot for your time and effort.
Alex.

May 14 '07 #1
5 6526
How about something like:

ConnectionStrin g="<%$ DecryptSettings (ConnectionStri ngs:OrderingPro cess) %>"
-- the syntax may not be exactly right, but this approach works fine with
many <%--%delimited items.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Radu" wrote:
Hi. In a repeater I have as ItemTemplate the following, among others,
and everything works great:

<asp:SqlDataSou rce
ID="LocationSql DataSource"
SelectCommand=" SELECT blah-blah-blah"
EnableCaching=" True"
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
CacheDuration=" 60"
FilterExpressio n="ID = {0}" RunAt="server">

<FilterParamete rs>
<asp:ControlPar ameter ControlID="Hype rLinkMeasureID"
PropertyName="T ext" /> </FilterParameter s>
</asp:SqlDataSour ce>
etc.
I have encrypted in Base64 the "OrderingProces s" which was
<add name="OrderingP rocess" connectionStrin g="server=xxx
\xxx;database=x xx;User ID=xxx;Password =xxx;"
providerName="S ystem.Data.SqlC lient" />

and the "ConnectionStri ng" which was
<add key="Connection String" value="Data Source=xxx\xxx; Initial
Catalog=xxx;Use r ID=xxx;Password =xxx;"/>

and in the code-behind I have a function named DecryptSetting which
can be used as:

DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order ingProcess"))
The question is: how could I use this function in
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
above ?

I cannot say
ConnectionStrin g="<%=
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order ingProcess"))
%>"
In all the places in code behind where I needed the connection string,
I have used
Cache("Connecti onString") which has been set in App_Init as:

HttpContext.Cur rent.Cache("Con nectionString") =
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Conne ctionString"))

Thanks a lot for your time and effort.
Alex.

May 15 '07 #2
You could also create a public static (Shared in VB) function (in App_Code)
which will return decrypted connection string based on a string name
parameter, but will only read the config once per request and store them in a
Generic string dictionary for subsequent calls. Then you can either store the
dictionary in a static variable, or even application Cache.

Then from your aspx pages you could call this function similar to the
following:
ConnectionStrin g="<%= GetMyConnect("O rderingProcess" ) %>

"Peter Bromberg [C# MVP]" wrote:
How about something like:

ConnectionStrin g="<%$ DecryptSettings (ConnectionStri ngs:OrderingPro cess) %>"
-- the syntax may not be exactly right, but this approach works fine with
many <%--%delimited items.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Radu" wrote:
Hi. In a repeater I have as ItemTemplate the following, among others,
and everything works great:

<asp:SqlDataSou rce
ID="LocationSql DataSource"
SelectCommand=" SELECT blah-blah-blah"
EnableCaching=" True"
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
CacheDuration=" 60"
FilterExpressio n="ID = {0}" RunAt="server">

<FilterParamete rs>
<asp:ControlPar ameter ControlID="Hype rLinkMeasureID"
PropertyName="T ext" /> </FilterParameter s>
</asp:SqlDataSour ce>
etc.
I have encrypted in Base64 the "OrderingProces s" which was
<add name="OrderingP rocess" connectionStrin g="server=xxx
\xxx;database=x xx;User ID=xxx;Password =xxx;"
providerName="S ystem.Data.SqlC lient" />

and the "ConnectionStri ng" which was
<add key="Connection String" value="Data Source=xxx\xxx; Initial
Catalog=xxx;Use r ID=xxx;Password =xxx;"/>

and in the code-behind I have a function named DecryptSetting which
can be used as:

DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order ingProcess"))
The question is: how could I use this function in
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
above ?

I cannot say
ConnectionStrin g="<%=
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order ingProcess"))
%>"
In all the places in code behind where I needed the connection string,
I have used
Cache("Connecti onString") which has been set in App_Init as:

HttpContext.Cur rent.Cache("Con nectionString") =
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Conne ctionString"))

Thanks a lot for your time and effort.
Alex.
May 15 '07 #3
On May 14, 10:28 pm, Sergey Poberezovskiy
<SergeyPoberezo vs...@discussio ns.microsoft.co mwrote:
You could also create a public static (Shared in VB) function (in App_Code)
which will return decrypted connection string based on a string name
parameter, but will only read the config once per request and store them in a
Generic string dictionary for subsequent calls. Then you can either storethe
dictionary in a static variable, or even application Cache.

Then from your aspx pages you could call this function similar to the
following:
ConnectionStrin g="<%= GetMyConnect("O rderingProcess" ) %>

"Peter Bromberg [C# MVP]" wrote:
How about something like:
ConnectionStrin g="<%$ DecryptSettings (ConnectionStri ngs:OrderingPro cess) %>"
-- the syntax may not be exactly right, but this approach works fine with
many <%--%delimited items.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Radu" wrote:
Hi. In a repeater I have as ItemTemplate the following, among others,
and everything works great:
<asp:SqlDataSou rce
ID="LocationSql DataSource"
SelectCommand=" SELECT blah-blah-blah"
EnableCaching=" True"
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
CacheDuration=" 60"
FilterExpressio n="ID = {0}" RunAt="server">
<FilterParamete rs>
<asp:ControlPar ameter ControlID="Hype rLinkMeasureID"
PropertyName="T ext" / </FilterParameter s>
</asp:SqlDataSour ce>
etc.
I have encrypted in Base64 the "OrderingProces s" which was
<add name="OrderingP rocess" connectionStrin g="server=xxx
\xxx;database=x xx;User ID=xxx;Password =xxx;"
providerName="S ystem.Data.SqlC lient" />
and the "ConnectionStri ng" which was
<add key="Connection String" value="Data Source=xxx\xxx; Initial
Catalog=xxx;Use r ID=xxx;Password =xxx;"/>
and in the code-behind I have a function named DecryptSetting which
can be used as:
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order *ingProcess"))
The question is: how could I use this function in
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
above ?
I cannot say
ConnectionStrin g="<%=
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order *ingProcess"))
%>"
In all the places in code behind where I needed the connection string,
I have used
Cache("Connecti onString") which has been set in App_Init as:
HttpContext.Cur rent.Cache("Con nectionString") =
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Conne *ctionString"))
Thanks a lot for your time and effort.
Alex.- Hide quoted text -

- Show quoted text -

Thank you for answering !

I have tried with
ConnectionStrin g="<%=
DecryptSetting( ConnectionStrin gs:OrderingProc ess) %>"

and it compiles, but when time comes to serve that page, I get
Keyword not supported: '<%'.
When I try with
ConnectionStrin g="<%$
DecryptSetting( ConnectionStrin gs:CNOrderingPr ocess) %>"
(the only change is the '$' sign instead of '='), then I get 98 errors
and warnings, all having NOTHING to do with the problem at hand
(example: Message 88 Could not find schema information for the
element 'http://schemas.microso ft.com/.NetConfigurati on/
v2.0:customErro rs'.) - thank you, compiler, but I also get the real
problem:
Error 90 The expression prefix 'DecryptSetting (ConnectionStri ngs'
was not recognized. Please correct the prefix or register the prefix
in the <expressionBuil derssection of configuration.
The function DecryptSetting is ultra-simple, in MAIN.vb in APP_CODE:

Public Function DecryptSetting( ByVal Source As String) As String

Dim data() As Byte = Convert.FromBas e64String(Sourc e)
Return System.Text.ASC IIEncoding.ASCI I.GetString(dat a)
End Function
Thanks again
Alex.

May 15 '07 #4
Alex,

Quote from MSDN:
"The dollar sign ($) indicates to ASP.NET that an expression follows. The
expression prefix defines the type of expression, such as AppSettings,
ConnectionStrin gs, or Resources. Following the colon (:) is the actual
expression value that ASP.NET will resolve."

That is the reason why the compiler complains when you are trying <%$
Deccrypt ... your connection - it is not one of the predefined

If you want to call a function from HTML then you would use <%= syntax, but
then the parser will not recognize ConnectionStrin gs:MyStringName syntax

You could do something in between:
- declare your connection string in web.config as <add name="myName"
connectionStrin g="myString" providerName="m yProvider"
- call your shared function from html with <%= syntax passing the connection
name as the parameter: <%= MyDecrypt("myNa me") %>
- in decrypt function use ConfigurationMa nager to retrieve the connection
string
Public Shared Function MyDecrypt(cnNam e As String) As String
Dim result As String =
ConfigurationMa nager.Connectio nStrings(cnName ).ConnectionStr ing
' perform the decryption: result = decrypted(resul t)
Return result
End Function

There may be a better way to do it - but this should get you over the line.
Personally, I do not use DataSources - hence I am not the best source of
info on the topic.

Hope this helps

"Radu" wrote:
On May 14, 10:28 pm, Sergey Poberezovskiy
<SergeyPoberezo vs...@discussio ns.microsoft.co mwrote:
You could also create a public static (Shared in VB) function (in App_Code)
which will return decrypted connection string based on a string name
parameter, but will only read the config once per request and store them in a
Generic string dictionary for subsequent calls. Then you can either store the
dictionary in a static variable, or even application Cache.

Then from your aspx pages you could call this function similar to the
following:
ConnectionStrin g="<%= GetMyConnect("O rderingProcess" ) %>

"Peter Bromberg [C# MVP]" wrote:
How about something like:
ConnectionStrin g="<%$ DecryptSettings (ConnectionStri ngs:OrderingPro cess) %>"
-- the syntax may not be exactly right, but this approach works fine with
many <%--%delimited items.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Radu" wrote:
Hi. In a repeater I have as ItemTemplate the following, among others,
and everything works great:
<asp:SqlDataSou rce
ID="LocationSql DataSource"
SelectCommand=" SELECT blah-blah-blah"
EnableCaching=" True"
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
CacheDuration=" 60"
FilterExpressio n="ID = {0}" RunAt="server">
<FilterParamete rs>
<asp:ControlPar ameter ControlID="Hype rLinkMeasureID"
PropertyName="T ext" / </FilterParameter s>
</asp:SqlDataSour ce>
etc.
I have encrypted in Base64 the "OrderingProces s" which was
<add name="OrderingP rocess" connectionStrin g="server=xxx
\xxx;database=x xx;User ID=xxx;Password =xxx;"
providerName="S ystem.Data.SqlC lient" />
and the "ConnectionStri ng" which was
<add key="Connection String" value="Data Source=xxx\xxx; Initial
Catalog=xxx;Use r ID=xxx;Password =xxx;"/>
and in the code-behind I have a function named DecryptSetting which
can be used as:
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order Â*ingProcess"))
The question is: how could I use this function in
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
above ?
I cannot say
ConnectionStrin g="<%=
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order Â*ingProcess"))
%>"
In all the places in code behind where I needed the connection string,
I have used
Cache("Connecti onString") which has been set in App_Init as:
HttpContext.Cur rent.Cache("Con nectionString") =
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Conne Â*ctionString") )
Thanks a lot for your time and effort.
Alex.- Hide quoted text -
- Show quoted text -


Thank you for answering !

I have tried with
ConnectionStrin g="<%=
DecryptSetting( ConnectionStrin gs:OrderingProc ess) %>"

and it compiles, but when time comes to serve that page, I get
Keyword not supported: '<%'.
When I try with
ConnectionStrin g="<%$
DecryptSetting( ConnectionStrin gs:CNOrderingPr ocess) %>"
(the only change is the '$' sign instead of '='), then I get 98 errors
and warnings, all having NOTHING to do with the problem at hand
(example: Message 88 Could not find schema information for the
element 'http://schemas.microso ft.com/.NetConfigurati on/
v2.0:customErro rs'.) - thank you, compiler, but I also get the real
problem:
Error 90 The expression prefix 'DecryptSetting (ConnectionStri ngs'
was not recognized. Please correct the prefix or register the prefix
in the <expressionBuil derssection of configuration.
The function DecryptSetting is ultra-simple, in MAIN.vb in APP_CODE:

Public Function DecryptSetting( ByVal Source As String) As String

Dim data() As Byte = Convert.FromBas e64String(Sourc e)
Return System.Text.ASC IIEncoding.ASCI I.GetString(dat a)
End Function
Thanks again
Alex.

May 16 '07 #5
On May 15, 9:41 pm, Sergey Poberezovskiy
<SergeyPoberezo vs...@discussio ns.microsoft.co mwrote:
Alex,

Quote from MSDN:
"The dollar sign ($) indicates to ASP.NET that an expression follows. The
expression prefix defines the type of expression, such as AppSettings,
ConnectionStrin gs, or Resources. Following the colon (:) is the actual
expression value that ASP.NET will resolve."

That is the reason why the compiler complains when you are trying <%$
Deccrypt ... your connection - it is not one of the predefined

If you want to call a function from HTML then you would use <%= syntax,but
then the parser will not recognize ConnectionStrin gs:MyStringName syntax

You could do something in between:
- declare your connection string in web.config as <add name="myName"
connectionStrin g="myString" providerName="m yProvider"
- call your shared function from html with <%= syntax passing the connection
name as the parameter: <%= MyDecrypt("myNa me") %>
- in decrypt function use ConfigurationMa nager to retrieve the connection
string
Public Shared Function MyDecrypt(cnNam e As String) As String
Dim result As String =
ConfigurationMa nager.Connectio nStrings(cnName ).ConnectionStr ing
' perform the decryption: result = decrypted(resul t)
Return result
End Function

There may be a better way to do it - but this should get you over the line.
Personally, I do not use DataSources - hence I am not the best source of
info on the topic.

Hope this helps

"Radu" wrote:
On May 14, 10:28 pm, Sergey Poberezovskiy
<SergeyPoberezo vs...@discussio ns.microsoft.co mwrote:
You could also create a public static (Shared in VB) function (in App_Code)
which will return decrypted connection string based on a string name
parameter, but will only read the config once per request and store them in a
Generic string dictionary for subsequent calls. Then you can either store the
dictionary in a static variable, or even application Cache.
Then from your aspx pages you could call this function similar to the
following:
ConnectionStrin g="<%= GetMyConnect("O rderingProcess" ) %>
"Peter Bromberg [C# MVP]" wrote:
How about something like:
ConnectionStrin g="<%$ DecryptSettings (ConnectionStri ngs:OrderingPro cess) %>"
-- the syntax may not be exactly right, but this approach works fine with
many <%--%delimited items.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Radu" wrote:
Hi. In a repeater I have as ItemTemplate the following, among others,
and everything works great:
<asp:SqlDataSou rce
ID="LocationSql DataSource"
SelectCommand=" SELECT blah-blah-blah"
EnableCaching=" True"
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
CacheDuration=" 60"
FilterExpressio n="ID = {0}" RunAt="server">
<FilterParamete rs>
<asp:ControlPar ameter ControlID="Hype rLinkMeasureID"
PropertyName="T ext" / </FilterParameter s>
</asp:SqlDataSour ce>
etc.
I have encrypted in Base64 the "OrderingProces s" which was
<add name="OrderingP rocess" connectionStrin g="server=xxx
\xxx;database=x xx;User ID=xxx;Password =xxx;"
providerName="S ystem.Data.SqlC lient" />
and the "ConnectionStri ng" which was
<add key="Connection String" value="Data Source=xxx\xxx; Initial
Catalog=xxx;Use r ID=xxx;Password =xxx;"/>
and in the code-behind I have a function named DecryptSetting which
can be used as:
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order **ingProcess"))
The question is: how could I use this function in
ConnectionStrin g="<%$ ConnectionStrin gs:OrderingProc ess %>"
above ?
I cannot say
ConnectionStrin g="<%=
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Order **ingProcess"))
%>"
In all the places in code behind where I needed the connection string,
I have used
Cache("Connecti onString") which has been set in App_Init as:
HttpContext.Cur rent.Cache("Con nectionString") =
DecryptSetting( System.Configur ation.Configura tionManager.App Settings("Conne **ctionString") )
Thanks a lot for your time and effort.
Alex.- Hide quoted text -
- Show quoted text -
Thank you for answering !
I have tried with
ConnectionStrin g="<%=
DecryptSetting( ConnectionStrin gs:OrderingProc ess) %>"
and it compiles, but when time comes to serve that page, I get
Keyword not supported: '<%'.
When I try with
ConnectionStrin g="<%$
DecryptSetting( ConnectionStrin gs:CNOrderingPr ocess) %>"
(the only change is the '$' sign instead of '='), then I get 98 errors
and warnings, all having NOTHING to do with the problem at hand
(example: Message 88 Could not find schema information for the
element 'http://schemas.microso ft.com/.NetConfigurati on/
v2.0:customErro rs'.) - thank you, compiler, but I also get the real
problem:
Error 90 The expression prefix 'DecryptSetting (ConnectionStri ngs'
was not recognized. Please correct the prefix or register the prefix
in the <expressionBuil derssection of configuration.
The function DecryptSetting is ultra-simple, in MAIN.vb in APP_CODE:
Public Function DecryptSetting( ByVal Source As String) As String
Dim data() As Byte = Convert.FromBas e64String(Sourc e)
Return System.Text.ASC IIEncoding.ASCI I.GetString(dat a)
End Function
Thanks again
Alex.- Hide quoted text -

- Show quoted text -
Thanks, you're right, this should work - it's logical. Thank you very
much.
Alex.

Jun 4 '07 #6

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

Similar topics

3
2335
by: Jim Andersen | last post by:
Hi, I would appreciate if someone could explain this behaviour, and maybe offer a better solution. I have been working with the GridView control. And SqlDataSource. It works great if I do: <asp:SqlDataSource ConnectionString="yada yada yada" etc etc />. I can hook up a GridView to the sqldatasource and view/edit/add records.
0
1786
by: coosa | last post by:
Dear all, I tried to replace the GridView Column's HyperLinkField "DataNavigateUrlFormatString" property with a java script pop up window, but wehen i preview the page, the link is REMOVED! Does any one see any thing wrong in the code below? <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ITEM_ID" DataSourceID="SqlDataSource1"> <Columns>
11
4879
by: tbh | last post by:
is it possible in the ConnectionString of an asp:SqlDataSource construction to refer to a variable i define at the top of my ASPX script and initialize, for example, during Page_Init()? (the only examples i have seen use hard-coded references to connection strings defined in machine.config, e.g. <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings: connStrInMachConfig %>" not knowing quite how...
0
1402
by: Zeba | last post by:
Hi, Can you tell me how does the Eval function know where to find EventID in the following code ? Also, isn't this Eval function same as the DataBinder.Eval ? But MSDN only shows Eval() to be overloaded with 2 / 3 parameters. Also why dont we have to write DataBinder.Eval in full ( I have only included the name space System.Web.UI in the code-behind)
0
1424
by: tombow | last post by:
I created a custom control (call it MyWidget) in a C# web control library. MyWidget has a SqlDataSource property: public abstract class MyWidget : WebControl { // .... snipped private SqlDataSource myds;
1
4306
by: Jason Huang | last post by:
Hi, Here is the SqlDataSource in my aspx file <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ETCServiceTestConnectionStringA %>" SelectCommand="SELECT , , FROM ORDER BY "> </asp:SqlDataSource>
1
1348
by: shapper | last post by:
Hello, I have a class where I created various controls. One of the controls have a property which is a generic list of WebControl. Then in web site page I have something like: Dim a As New MyNamespace.ListItem a.WebControls.Add(tbName) a.WebControls.Add(lLabel)
1
1305
by: Seth Williams | last post by:
I have a sqlDataSource, using a stored procedure - the datasource is: <asp:SqlDataSource ID="dsMembers" runat="server" ConnectionString="<%$ ConnectionStrings:MainConnectionString %>" SelectCommand="Get_MemberToUpdate" SelectCommandType="StoredProcedure" UpdateCommand="Authorize_Member" UpdateCommandType="StoredProcedure"> <SelectParameters> <asp:QueryStringParameter Name="MemberID" QueryStringField="id" Type="Int32" />
5
2376
by: Eric | last post by:
Hi, i tested this sql command directly with sql server and it works: select left(field1,10) from mytable Now, i tried the same in aspx file: i dragged a sqldatasource control and changed manually the select commend like this: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:myconn %>"
0
9672
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
9519
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
10438
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
10214
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
10001
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
5437
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...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.