Showing posts with label focus. Show all posts
Showing posts with label focus. Show all posts

Wednesday, March 28, 2012

Accessing same application on two different machines.

Hi All,

I have one situation I want some focus and answers to this. Please help me in this.

The situation is like this, There is one web application installed on two different machines.

Suppose if one machine is shutdown for maintaince, thne the user accessing the application

should be redirected to the second machine.


I am not very clear whether this will work. Its just a suggestion

A third machine has to be there to monitor the status of two machines and based on availability the request has to be redirected.


yes that is right, the user is accessing the application from third machine. I want to know how to redirect the user depending on the condition mentioned in post.

Hello,

There are very smart guys/girls, and solved your solution for a long times ago.

You can setup Web Farm, server clustering, free to use on the Windows Server Environment.

reference:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/deploy/confeat/webclust.mspx

Hope this solve your problem.

Wednesday, March 21, 2012

A form tag with runat=server must exist on the Page to use SetFocus() or the Focus propert

Hi there,

I have a Multiview control with Views. Right now I'm trying to set focus to a textbox using the Activate event of one of the Views, like this:

protected void vieSearchShipment_Activate(object sender, EventArgs e)
{
this.Setfocus(tbxShipment);
}

This is my Setfocus method:

protected void Setfocus(TextBox textBox)
{
(this.Master.FindControl("ScriptManager1") as Microsoft.Web.UI.ScriptManager).SetFocus(textBox);
}

But when I call the Setfocus() method from the View's Activate event, I get this exception:

A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property.

The textBox is inside the View and is visible, of course. So what am I missing?

Thanks in advance,

-Benton

Check your <form ... > to see if you miss the runat=server or not.

WS


hi

i got error when i use focus property like this

error:

Invalid operation Exception Unhandled by user code,

A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property.


my code:

protected void Page_Load(object sender, EventArgs e)
{
this.lgnUsers.Focus();
}

please help me



See the answer to your other post inthis thread.