473,729 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setfocus in web control page

Hi,

I saw the post here about setfocus. But they are for web form.

Web control page HTML does not have form1. the Jscript there does not work
here.

My question is how to set focus to the text box in web control page?
The following is the html version of the page design:

<DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103; LEFT:
344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
runat="server"> Please login to access private content</asp:label>

<asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px; POSITION:
absolute; TOP: 144px"
runat="server"> </asp:textbox><as p:label id="lblUserName " style="Z-INDEX:
105; LEFT: 280px; POSITION: absolute; TOP: 144px"
runat="server"> Enter email address</asp:label><asp: label id="lblPassword "
style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
runat="server" TextMode="Passw ord"></asp:textbox><as p:button id="Button1"
style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
runat="server"
Text="Login"></asp:button>
<asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111; LEFT:
664px; POSITION: absolute; TOP: 144px"
runat="server" Display="Dynami c"
ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValida te="txtUserName "
ErrorMessage="E nter the email address as :
us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute; TOP:
144px"
runat="server" Display="Dynami c" ControlToValida te="txtUserName "
ErrorMessage="E nter the correct user
ID"></asp:requiredfie ldvalidator><as p:requiredfield validator id="rfvPassword "
style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
runat="server" Display="Dynami c" ControlToValida te="txtPassword "
ErrorMessage="E nter the correct
password"></asp:requiredfie ldvalidator><as p:validationsum mary
id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION: absolute;
TOP: 288px"
Width="364px" runat="server" HeaderText="Ple ase correct the
followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
runat="server"> </asp:label></DIV>

Thanks. -Dale

Nov 17 '05 #1
10 1921
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
Hi,

I saw the post here about setfocus. But they are for web form.

Web control page HTML does not have form1. the Jscript there does not work
here.

My question is how to set focus to the text box in web control page?
The following is the html version of the page design:

<DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
LEFT:
344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
runat="server"> Please login to access private content</asp:label>

<asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px; POSITION:
absolute; TOP: 144px"
runat="server"> </asp:textbox><as p:label id="lblUserName " style="Z-INDEX:
105; LEFT: 280px; POSITION: absolute; TOP: 144px"
runat="server"> Enter email address</asp:label><asp: label id="lblPassword "
style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
runat="server" TextMode="Passw ord"></asp:textbox><as p:button id="Button1"
style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
runat="server"
Text="Login"></asp:button>
<asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
LEFT:
664px; POSITION: absolute; TOP: 144px"
runat="server" Display="Dynami c"
ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValida te="txtUserName "
ErrorMessage="E nter the email address as :
us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
TOP:
144px"
runat="server" Display="Dynami c" ControlToValida te="txtUserName "
ErrorMessage="E nter the correct user
ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
id="rfvPassword "
style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
runat="server" Display="Dynami c" ControlToValida te="txtPassword "
ErrorMessage="E nter the correct
password"></asp:requiredfie ldvalidator><as p:validationsum mary
id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
absolute;
TOP: 288px"
Width="364px" runat="server" HeaderText="Ple ase correct the
followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
runat="server"> </asp:label></DIV>

Thanks. -Dale

Nov 17 '05 #2
Hi,

Thank you for your help. I guess the clientID is txtUserName.

But the element 'body' can not be nested within 'DIV'.

So this does not compile.

Any idea? -Dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
Hi,

I saw the post here about setfocus. But they are for web form.

Web control page HTML does not have form1. the Jscript there does not work
here.

My question is how to set focus to the text box in web control page?
The following is the html version of the page design:

<DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
LEFT:
344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
runat="server"> Please login to access private content</asp:label>

<asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px; POSITION:
absolute; TOP: 144px"
runat="server"> </asp:textbox><as p:label id="lblUserName " style="Z-INDEX:
105; LEFT: 280px; POSITION: absolute; TOP: 144px"
runat="server"> Enter email address</asp:label><asp: label id="lblPassword "
style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
runat="server" TextMode="Passw ord"></asp:textbox><as p:button id="Button1"
style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
runat="server"
Text="Login"></asp:button>
<asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
LEFT:
664px; POSITION: absolute; TOP: 144px"
runat="server" Display="Dynami c"
ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValida te="txtUserName "
ErrorMessage="E nter the email address as :
us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
TOP:
144px"
runat="server" Display="Dynami c" ControlToValida te="txtUserName "
ErrorMessage="E nter the correct user
ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
id="rfvPassword "
style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
runat="server" Display="Dynami c" ControlToValida te="txtPassword "
ErrorMessage="E nter the correct
password"></asp:requiredfie ldvalidator><as p:validationsum mary
id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
absolute;
TOP: 288px"
Width="364px" runat="server" HeaderText="Ple ase correct the
followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
runat="server"> </asp:label></DIV>

Thanks. -Dale


Nov 17 '05 #3
Hi,

Thank you for your help. I guess the clientID is txtUserName.

But the element 'body' can not be nested within 'DIV'.

So this does not compile.

Any idea? -Dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
Hi,

I saw the post here about setfocus. But they are for web form.

Web control page HTML does not have form1. the Jscript there does not work
here.

My question is how to set focus to the text box in web control page?
The following is the html version of the page design:

<DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
LEFT:
344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
runat="server"> Please login to access private content</asp:label>

<asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px; POSITION:
absolute; TOP: 144px"
runat="server"> </asp:textbox><as p:label id="lblUserName " style="Z-INDEX:
105; LEFT: 280px; POSITION: absolute; TOP: 144px"
runat="server"> Enter email address</asp:label><asp: label id="lblPassword "
style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
runat="server" TextMode="Passw ord"></asp:textbox><as p:button id="Button1"
style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
runat="server"
Text="Login"></asp:button>
<asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
LEFT:
664px; POSITION: absolute; TOP: 144px"
runat="server" Display="Dynami c"
ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ControlToValida te="txtUserName "
ErrorMessage="E nter the email address as :
us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
TOP:
144px"
runat="server" Display="Dynami c" ControlToValida te="txtUserName "
ErrorMessage="E nter the correct user
ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
id="rfvPassword "
style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
runat="server" Display="Dynami c" ControlToValida te="txtPassword "
ErrorMessage="E nter the correct
password"></asp:requiredfie ldvalidator><as p:validationsum mary
id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
absolute;
TOP: 288px"
Width="364px" runat="server" HeaderText="Ple ase correct the
followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
runat="server"> </asp:label></DIV>

Thanks. -Dale


Nov 17 '05 #4
Hi,

It does compile indeed, as a matter of fact, the only line you have to
include in the code behind (the one which gets compiled) is the Controls.Add

<body> is the tag that start the page, all aspx pages have one, why are you
including it inside a DIV ?
There is only one <body> in your page, just add the onload event to the one
you have.

also the script part can be placed at any place, it's just customary to
place it in the header.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
Hi,

Thank you for your help. I guess the clientID is txtUserName.

But the element 'body' can not be nested within 'DIV'.

So this does not compile.

Any idea? -Dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
> Hi,
>
> I saw the post here about setfocus. But they are for web form.
>
> Web control page HTML does not have form1. the Jscript there does not
> work
> here.
>
> My question is how to set focus to the text box in web control page?
>
>
> The following is the html version of the page design:
>
> <DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
> ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
> LEFT:
> 344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
> runat="server"> Please login to access private content</asp:label>
>
> <asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px;
> POSITION:
> absolute; TOP: 144px"
> runat="server"> </asp:textbox><as p:label id="lblUserName "
> style="Z-INDEX:
> 105; LEFT: 280px; POSITION: absolute; TOP: 144px"
> runat="server"> Enter email address</asp:label><asp: label
> id="lblPassword "
> style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
> runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
> style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
> runat="server" TextMode="Passw ord"></asp:textbox><as p:button
> id="Button1"
> style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
> runat="server"
> Text="Login"></asp:button>
> <asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
> LEFT:
> 664px; POSITION: absolute; TOP: 144px"
> runat="server" Display="Dynami c"
> ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
> ControlToValida te="txtUserName "
> ErrorMessage="E nter the email address as :
> us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
> id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
> TOP:
> 144px"
> runat="server" Display="Dynami c" ControlToValida te="txtUserName "
> ErrorMessage="E nter the correct user
> ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
> id="rfvPassword "
> style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
> runat="server" Display="Dynami c" ControlToValida te="txtPassword "
> ErrorMessage="E nter the correct
> password"></asp:requiredfie ldvalidator><as p:validationsum mary
> id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
> absolute;
> TOP: 288px"
> Width="364px" runat="server" HeaderText="Ple ase correct the
> followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
> style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
> runat="server"> </asp:label></DIV>
>
> Thanks. -Dale
>


Nov 17 '05 #5
Hi,

It does compile indeed, as a matter of fact, the only line you have to
include in the code behind (the one which gets compiled) is the Controls.Add

<body> is the tag that start the page, all aspx pages have one, why are you
including it inside a DIV ?
There is only one <body> in your page, just add the onload event to the one
you have.

also the script part can be placed at any place, it's just customary to
place it in the header.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
Hi,

Thank you for your help. I guess the clientID is txtUserName.

But the element 'body' can not be nested within 'DIV'.

So this does not compile.

Any idea? -Dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
> Hi,
>
> I saw the post here about setfocus. But they are for web form.
>
> Web control page HTML does not have form1. the Jscript there does not
> work
> here.
>
> My question is how to set focus to the text box in web control page?
>
>
> The following is the html version of the page design:
>
> <DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
> ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
> LEFT:
> 344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
> runat="server"> Please login to access private content</asp:label>
>
> <asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px;
> POSITION:
> absolute; TOP: 144px"
> runat="server"> </asp:textbox><as p:label id="lblUserName "
> style="Z-INDEX:
> 105; LEFT: 280px; POSITION: absolute; TOP: 144px"
> runat="server"> Enter email address</asp:label><asp: label
> id="lblPassword "
> style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
> runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
> style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
> runat="server" TextMode="Passw ord"></asp:textbox><as p:button
> id="Button1"
> style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
> runat="server"
> Text="Login"></asp:button>
> <asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
> LEFT:
> 664px; POSITION: absolute; TOP: 144px"
> runat="server" Display="Dynami c"
> ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
> ControlToValida te="txtUserName "
> ErrorMessage="E nter the email address as :
> us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
> id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
> TOP:
> 144px"
> runat="server" Display="Dynami c" ControlToValida te="txtUserName "
> ErrorMessage="E nter the correct user
> ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
> id="rfvPassword "
> style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
> runat="server" Display="Dynami c" ControlToValida te="txtPassword "
> ErrorMessage="E nter the correct
> password"></asp:requiredfie ldvalidator><as p:validationsum mary
> id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
> absolute;
> TOP: 288px"
> Width="364px" runat="server" HeaderText="Ple ase correct the
> followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
> style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
> runat="server"> </asp:label></DIV>
>
> Thanks. -Dale
>


Nov 17 '05 #6
Hi,

Sorry, web control page does have <body>, <form1> ...

It is different from other web forms.

that is why i have troubles.

thanks anyway. -dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

It does compile indeed, as a matter of fact, the only line you have to
include in the code behind (the one which gets compiled) is the Controls.Add

<body> is the tag that start the page, all aspx pages have one, why are you
including it inside a DIV ?
There is only one <body> in your page, just add the onload event to the one
you have.

also the script part can be placed at any place, it's just customary to
place it in the header.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
Hi,

Thank you for your help. I guess the clientID is txtUserName.

But the element 'body' can not be nested within 'DIV'.

So this does not compile.

Any idea? -Dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
> Hi,
>
> I saw the post here about setfocus. But they are for web form.
>
> Web control page HTML does not have form1. the Jscript there does not
> work
> here.
>
> My question is how to set focus to the text box in web control page?
>
>
> The following is the html version of the page design:
>
> <DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
> ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
> LEFT:
> 344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
> runat="server"> Please login to access private content</asp:label>
>
> <asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px;
> POSITION:
> absolute; TOP: 144px"
> runat="server"> </asp:textbox><as p:label id="lblUserName "
> style="Z-INDEX:
> 105; LEFT: 280px; POSITION: absolute; TOP: 144px"
> runat="server"> Enter email address</asp:label><asp: label
> id="lblPassword "
> style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
> runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
> style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
> runat="server" TextMode="Passw ord"></asp:textbox><as p:button
> id="Button1"
> style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
> runat="server"
> Text="Login"></asp:button>
> <asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
> LEFT:
> 664px; POSITION: absolute; TOP: 144px"
> runat="server" Display="Dynami c"
> ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
> ControlToValida te="txtUserName "
> ErrorMessage="E nter the email address as :
> us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
> id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
> TOP:
> 144px"
> runat="server" Display="Dynami c" ControlToValida te="txtUserName "
> ErrorMessage="E nter the correct user
> ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
> id="rfvPassword "
> style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
> runat="server" Display="Dynami c" ControlToValida te="txtPassword "
> ErrorMessage="E nter the correct
> password"></asp:requiredfie ldvalidator><as p:validationsum mary
> id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
> absolute;
> TOP: 288px"
> Width="364px" runat="server" HeaderText="Ple ase correct the
> followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
> style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
> runat="server"> </asp:label></DIV>
>
> Thanks. -Dale
>


Nov 17 '05 #7
Hi,

Sorry, web control page does have <body>, <form1> ...

It is different from other web forms.

that is why i have troubles.

thanks anyway. -dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

It does compile indeed, as a matter of fact, the only line you have to
include in the code behind (the one which gets compiled) is the Controls.Add

<body> is the tag that start the page, all aspx pages have one, why are you
including it inside a DIV ?
There is only one <body> in your page, just add the onload event to the one
you have.

also the script part can be placed at any place, it's just customary to
place it in the header.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
Hi,

Thank you for your help. I guess the clientID is txtUserName.

But the element 'body' can not be nested within 'DIV'.

So this does not compile.

Any idea? -Dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Your code is not well formatted and very difficult to read,
It's very easy, you have to get the clientID of the control to gets the
focus, include a javascript code with it and on the onLoad event fire it.

In the aspx page:

<script>
var controlToFocus ='';
function OnLoadHandler()
{
if ( controlToFocus != "" )
document.all[controlToFocus].focus();
}
</script>

<body onload="OnLoadH andler();">
In the code behind:

this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
theControl.Clie ntID + " ';</script>" );
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
> Hi,
>
> I saw the post here about setfocus. But they are for web form.
>
> Web control page HTML does not have form1. the Jscript there does not
> work
> here.
>
> My question is how to set focus to the text box in web control page?
>
>
> The following is the html version of the page design:
>
> <DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
> ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX: 103;
> LEFT:
> 344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
> runat="server"> Please login to access private content</asp:label>
>
> <asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px;
> POSITION:
> absolute; TOP: 144px"
> runat="server"> </asp:textbox><as p:label id="lblUserName "
> style="Z-INDEX:
> 105; LEFT: 280px; POSITION: absolute; TOP: 144px"
> runat="server"> Enter email address</asp:label><asp: label
> id="lblPassword "
> style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
> runat="server"> Enter password</asp:label><asp: textbox id="txtPassword "
> style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
> runat="server" TextMode="Passw ord"></asp:textbox><as p:button
> id="Button1"
> style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
> runat="server"
> Text="Login"></asp:button>
> <asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX: 111;
> LEFT:
> 664px; POSITION: absolute; TOP: 144px"
> runat="server" Display="Dynami c"
> ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
> ControlToValida te="txtUserName "
> ErrorMessage="E nter the email address as :
> us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
> id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION: absolute;
> TOP:
> 144px"
> runat="server" Display="Dynami c" ControlToValida te="txtUserName "
> ErrorMessage="E nter the correct user
> ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
> id="rfvPassword "
> style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
> runat="server" Display="Dynami c" ControlToValida te="txtPassword "
> ErrorMessage="E nter the correct
> password"></asp:requiredfie ldvalidator><as p:validationsum mary
> id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
> absolute;
> TOP: 288px"
> Width="364px" runat="server" HeaderText="Ple ase correct the
> followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
> style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
> runat="server"> </asp:label></DIV>
>
> Thanks. -Dale
>


Nov 17 '05 #8
Hi Dale,

I'm completely lost now, do you have problems or not?

The page will have only one <body >

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:79******** *************** ***********@mic rosoft.com...
Hi,

Sorry, web control page does have <body>, <form1> ...

It is different from other web forms.

that is why i have troubles.

thanks anyway. -dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

It does compile indeed, as a matter of fact, the only line you have to
include in the code behind (the one which gets compiled) is the
Controls.Add

<body> is the tag that start the page, all aspx pages have one, why are
you
including it inside a DIV ?
There is only one <body> in your page, just add the onload event to the
one
you have.

also the script part can be placed at any place, it's just customary to
place it in the header.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
> Hi,
>
> Thank you for your help. I guess the clientID is txtUserName.
>
> But the element 'body' can not be nested within 'DIV'.
>
> So this does not compile.
>
> Any idea? -Dale
>
> "Ignacio Machin ( .NET/ C# MVP )" wrote:
>
>> Hi,
>>
>> Your code is not well formatted and very difficult to read,
>> It's very easy, you have to get the clientID of the control to gets
>> the
>> focus, include a javascript code with it and on the onLoad event fire
>> it.
>>
>> In the aspx page:
>>
>> <script>
>> var controlToFocus ='';
>> function OnLoadHandler()
>> {
>> if ( controlToFocus != "" )
>> document.all[controlToFocus].focus();
>> }
>> </script>
>>
>> <body onload="OnLoadH andler();">
>>
>>
>> In the code behind:
>>
>> this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
>> theControl.Clie ntID + " ';</script>" );
>>
>>
>> Cheers,
>>
>> --
>> Ignacio Machin,
>> ignacio.machin AT dot.state.fl.us
>> Florida Department Of Transportation
>>
>>
>>
>>
>> "dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
>> news:CB******** *************** ***********@mic rosoft.com...
>> > Hi,
>> >
>> > I saw the post here about setfocus. But they are for web form.
>> >
>> > Web control page HTML does not have form1. the Jscript there does
>> > not
>> > work
>> > here.
>> >
>> > My question is how to set focus to the text box in web control page?
>> >
>> >
>> > The following is the html version of the page design:
>> >
>> > <DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
>> > ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX:
>> > 103;
>> > LEFT:
>> > 344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
>> > runat="server"> Please login to access private content</asp:label>
>> >
>> > <asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px;
>> > POSITION:
>> > absolute; TOP: 144px"
>> > runat="server"> </asp:textbox><as p:label id="lblUserName "
>> > style="Z-INDEX:
>> > 105; LEFT: 280px; POSITION: absolute; TOP: 144px"
>> > runat="server"> Enter email address</asp:label><asp: label
>> > id="lblPassword "
>> > style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
>> > runat="server"> Enter password</asp:label><asp: textbox
>> > id="txtPassword "
>> > style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
>> > runat="server" TextMode="Passw ord"></asp:textbox><as p:button
>> > id="Button1"
>> > style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
>> > runat="server"
>> > Text="Login"></asp:button>
>> > <asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX:
>> > 111;
>> > LEFT:
>> > 664px; POSITION: absolute; TOP: 144px"
>> > runat="server" Display="Dynami c"
>> > ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
>> > ControlToValida te="txtUserName "
>> > ErrorMessage="E nter the email address as :
>> > us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
>> > id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION:
>> > absolute;
>> > TOP:
>> > 144px"
>> > runat="server" Display="Dynami c" ControlToValida te="txtUserName "
>> > ErrorMessage="E nter the correct user
>> > ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
>> > id="rfvPassword "
>> > style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
>> > runat="server" Display="Dynami c" ControlToValida te="txtPassword "
>> > ErrorMessage="E nter the correct
>> > password"></asp:requiredfie ldvalidator><as p:validationsum mary
>> > id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
>> > absolute;
>> > TOP: 288px"
>> > Width="364px" runat="server" HeaderText="Ple ase correct the
>> > followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
>> > style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
>> > runat="server"> </asp:label></DIV>
>> >
>> > Thanks. -Dale
>> >
>>
>>
>>


Nov 17 '05 #9
Hi Dale,

I'm completely lost now, do you have problems or not?

The page will have only one <body >

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:79******** *************** ***********@mic rosoft.com...
Hi,

Sorry, web control page does have <body>, <form1> ...

It is different from other web forms.

that is why i have troubles.

thanks anyway. -dale

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

It does compile indeed, as a matter of fact, the only line you have to
include in the code behind (the one which gets compiled) is the
Controls.Add

<body> is the tag that start the page, all aspx pages have one, why are
you
including it inside a DIV ?
There is only one <body> in your page, just add the onload event to the
one
you have.

also the script part can be placed at any place, it's just customary to
place it in the header.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
news:0D******** *************** ***********@mic rosoft.com...
> Hi,
>
> Thank you for your help. I guess the clientID is txtUserName.
>
> But the element 'body' can not be nested within 'DIV'.
>
> So this does not compile.
>
> Any idea? -Dale
>
> "Ignacio Machin ( .NET/ C# MVP )" wrote:
>
>> Hi,
>>
>> Your code is not well formatted and very difficult to read,
>> It's very easy, you have to get the clientID of the control to gets
>> the
>> focus, include a javascript code with it and on the onLoad event fire
>> it.
>>
>> In the aspx page:
>>
>> <script>
>> var controlToFocus ='';
>> function OnLoadHandler()
>> {
>> if ( controlToFocus != "" )
>> document.all[controlToFocus].focus();
>> }
>> </script>
>>
>> <body onload="OnLoadH andler();">
>>
>>
>> In the code behind:
>>
>> this.Controls.A dd( LiteralControl( "<script>contro lToFocus ='" +
>> theControl.Clie ntID + " ';</script>" );
>>
>>
>> Cheers,
>>
>> --
>> Ignacio Machin,
>> ignacio.machin AT dot.state.fl.us
>> Florida Department Of Transportation
>>
>>
>>
>>
>> "dale zhang" <da*******@disc ussions.microso ft.com> wrote in message
>> news:CB******** *************** ***********@mic rosoft.com...
>> > Hi,
>> >
>> > I saw the post here about setfocus. But they are for web form.
>> >
>> > Web control page HTML does not have form1. the Jscript there does
>> > not
>> > work
>> > here.
>> >
>> > My question is how to set focus to the text box in web control page?
>> >
>> >
>> > The following is the html version of the page design:
>> >
>> > <DIV style="WIDTH: 992px; POSITION: relative; HEIGHT: 424px"
>> > ms_positioning= "GridLayout"><a sp:label id="Label3" style="Z-INDEX:
>> > 103;
>> > LEFT:
>> > 344px; POSITION: absolute; TOP: 88px" ForeColor="#FF8 080"
>> > runat="server"> Please login to access private content</asp:label>
>> >
>> > <asp:textbox id="txtUserName " style="Z-INDEX: 104; LEFT: 448px;
>> > POSITION:
>> > absolute; TOP: 144px"
>> > runat="server"> </asp:textbox><as p:label id="lblUserName "
>> > style="Z-INDEX:
>> > 105; LEFT: 280px; POSITION: absolute; TOP: 144px"
>> > runat="server"> Enter email address</asp:label><asp: label
>> > id="lblPassword "
>> > style="Z-INDEX: 106; LEFT: 280px; POSITION: absolute; TOP: 192px"
>> > runat="server"> Enter password</asp:label><asp: textbox
>> > id="txtPassword "
>> > style="Z-INDEX: 107; LEFT: 448px; POSITION: absolute; TOP: 192px"
>> > runat="server" TextMode="Passw ord"></asp:textbox><as p:button
>> > id="Button1"
>> > style="Z-INDEX: 108; LEFT: 448px; POSITION: absolute; TOP: 240px"
>> > runat="server"
>> > Text="Login"></asp:button>
>> > <asp:regularexp ressionvalidato r id="revUsername " style="Z-INDEX:
>> > 111;
>> > LEFT:
>> > 664px; POSITION: absolute; TOP: 144px"
>> > runat="server" Display="Dynami c"
>> > ValidationExpre ssion="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
>> > ControlToValida te="txtUserName "
>> > ErrorMessage="E nter the email address as :
>> > us**@domain.com">*</asp:regularexpr essionvalidator ><asp:requiredf ieldvalidator
>> > id="rfvUsername " style="Z-INDEX: 112; LEFT: 728px; POSITION:
>> > absolute;
>> > TOP:
>> > 144px"
>> > runat="server" Display="Dynami c" ControlToValida te="txtUserName "
>> > ErrorMessage="E nter the correct user
>> > ID"></asp:requiredfie ldvalidator><as p:requiredfield validator
>> > id="rfvPassword "
>> > style="Z-INDEX: 113; LEFT: 728px; POSITION: absolute; TOP: 192px"
>> > runat="server" Display="Dynami c" ControlToValida te="txtPassword "
>> > ErrorMessage="E nter the correct
>> > password"></asp:requiredfie ldvalidator><as p:validationsum mary
>> > id="ValidationS ummary1" style="Z-INDEX: 114; LEFT: 440px; POSITION:
>> > absolute;
>> > TOP: 288px"
>> > Width="364px" runat="server" HeaderText="Ple ase correct the
>> > followings:"></asp:validations ummary><asp:lab el id="lblSuccess "
>> > style="Z-INDEX: 115; LEFT: 544px; POSITION: absolute; TOP: 240px"
>> > runat="server"> </asp:label></DIV>
>> >
>> > Thanks. -Dale
>> >
>>
>>
>>


Nov 17 '05 #10

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

Similar topics

1
953
by: jamess | last post by:
Please can someone tell me why, when redirecting from a page with a large dataset, the action takes much longer than with a small set? Also, how can I setfocus to a control; (the default being the address bar)? I have tried various tab-index approaches but to no avail? thanks all.
6
2820
by: KS | last post by:
I have made a WebForm with log ON/OFF off users. There is a label that shows the total count off users logged on stored in Application("UserCount") It works fine if the users logs out WITH THE LOG-OUT BUTTON, but what if a user "logs out" by closing with the X-button ? If I count down the Application("UserCount") in UNLOAD or DISPOSE I get a spoky reaction in Application("UserCount") - it just counts wrong !
4
9690
by: Mad Scientist Jr | last post by:
i am trying to set focus to a specific control depending on the outcome of a validator control and it is not working. none of these methods are working to setfocus: 1. RegisterStartupScript("sf","<scriptlanguage='javascript'>document.form.MyControlID.focus();</script>"); 2. Andy Smith's FirstFocus control from http://www.metabuilders.com/tools/FirstFocus.aspx
0
1523
by: MrsLeigh | last post by:
I have a datagrid on a web page. In the footer there is a field that should be recieve the focus, either at the start or after a button is clicked to insert the row that is being added in the footer. I created the following Sub... Private Sub SetFocus(ByVal ctrl As Control) Dim SetFocus As String = "<script language='javascript'>document.getElementById(""" & ctrl.ClientID & """).focus();</script>"
1
2037
by: fonzie | last post by:
I a form with tab control will all fields based on one table. I have some code setup for the 'On Change' event of the tab control that checks to see if a field on the main form is null. If it is, I want the focus set back to that field on the main form, but I can't get the code to change the focus to anything off of the tab page. This is the code I tried: Select Case Me.TabCtl1.Value Case 2
2
2990
by: gnewsham | last post by:
I am converting an application from vb.net 2003 to 2005 I have the following function which I call when an input error is detected: Private Sub SetFocus(ByVal ctrl As System.Web.UI.Control) Dim s As String = "<SCRIPT language='javascript'>document.getElementById('" & ctrl.ID & "').focus() </SCRIPT>" RegisterStartupScript("focus", s) End Sub
5
3285
agroover
by: agroover | last post by:
I can't seem to figure out how to get rid of the errors. I recieve the following error when I leave the Grade.SetFocus in my code... Microsoft Access can't move the focus to the control Grade GRADE.SetFocus - Highlighted when I hit debug on the error message Private Sub C_Click()
0
1374
by: trint | last post by:
I have several GridViews that call a fuction, when clicked, called "getSelected". The very last thing I want getSelected to do is to SetFocus on a FormView (FormView1). Here is how I have this working now: SetFocus(FormView1); BUT, eventhough it goes to FormView1 on the page, it's focus point is like 3 rows lower on the screen of FormView1 than what I want. I want
4
1712
by: trint | last post by:
I have SetFocus(GridView1) set to the gridview. However, it just goes to the left edge of the control instead of making it visible in the center of the aspx page. Any help is appreciated. Thanks, Trint
0
8917
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
8761
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,...
1
9200
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
9142
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
8148
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
6022
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();...
0
4525
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
3238
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
2680
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.