|
I am writing a load balancer for my web farm. Each request made to my web application need to go though the load balancer, which will first check availability of host machine and will then route request to available machine. Now my web-applilcation is using forms that need to post back to server. Again load balancer need to intercept this post-back to see which machine is available and then route this request to that machine.
http://MyLoadBalancerIP/MyApp -> http:// FirstHostMachineIP/MyApp
http://MyLoadBalancerIP/MyApp -> http:// SecondHostMchineIP/MyApp
Any idea how this could be done?
|
|
|
|
|
|
Hi all,
Can anybody help me to print the repeater data from asp.net page? I am binding two columns of the table in repeater. It is including the background color, which is fetching from the database. I am really stucked in this. Some javascript functions not printing the color or the table.
My repeater is below.
<asp:Repeater ID="repeaterTT" runat="server">
<HeaderTemplate>
<Table border="1px" id="tblTT" cellpadding="0" cellspacing="0" style="border-color:Black;"
width="100%">
<tr>
<th>
Location</th>
<th>
Times</th>
<th>
Sunday</th>
</tr>
<tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center">
<%# DataBinder.Eval(Container.DataItem, "facility_name")%>
</td>
<td align="center">
<%# DataBinder.Eval(Container.DataItem, "TT_TIME")%>
</td>
<td align="center"
style='background-color:<%# DataBinder.Eval(Container.DataItem, "session_color")%>'>
<%# DataBinder.Eval(Container.DataItem, "session_sun")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
|
|
|
|
|
|
Use order by clause in select query
|
|
|
|
|
hey please tell me the exact orderby query...
thanx..
|
|
|
|
|
Ordering by assceding
select * from tablename order by columnname ASC
Ordering by desceding
select * from tablename order by columnname DESC
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
This guy keeps posting the same question in multiple forums and has no clue how to use Google.
Blog link to be reinstated at a later date.
|
|
|
|
|
thnanx a lot friends..my problem was solved..
|
|
|
|
|
You are a complete tool.
Blog link to be reinstated at a later date.
|
|
|
|
|
My Paranoid Hubby wrote: a complete tool.
Yep. Should have seen the questions the OP was asking about not being able to see SQL Server, and the walk through how to work with Services.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I have a gridview where each row's cells contain textboxes (for providing I/O into the gridview) The problem I need to solve, I think, is with textboxes that make up the cells of the grid. When I select one of the textboxes that make up the cells of the gridview, then I want the whole row, each of the row's textboxes, to be highlighted in yellow showing that row as being selected.
Thanks,
Steve
|
|
|
|
|
Steve, ever heard of theDataGrid Girl?[^] For everything you wanted to know about the asp.net datagrid.
led mike
|
|
|
|
|
A great resource. It has helped me with many problems. Shame about the name
Bob
Ashfield Consultants Ltd
|
|
|
|
|
The problem I was having was not being able to set a skin dynamically to a control after Page_OnInit. I posted a new question coving that so just disregard this.
Thanks,
Steve
|
|
|
|
|
Hey.
I have a search page containg 2 buttons and 2 textboxes.
I have a javascript that cathces the enter-key event and triggers the respecting button, as
in TextBox1 to Button1 and TextBox2 to Button2.
My problem is that when I enter the page, the Button2 is allways in focus, no mather if I have the TextBox1 in focus or
click on a CheckBox that is allsow have on the page.
So when I hit the enter-key, the Button2.click event is allways triggerd.
Does anyone know how to get around this.
Thanks
Thomas
|
|
|
|
|
I had to replace the Buttons with LinkButtons
|
|
|
|
|
set UseSubmitBehavior = true in Button property
|
|
|
|
|
set UseSubmitBehavior=True in Button property
|
|
|
|
|
i have one xml file and this file is displayed in gridview.and i want delete the row in gridview by using templete field.plz any one know help me.
|
|
|
|
|
Dear All,
I have created a custom attribute class in app_code as:
[System.AttributeUsage(System.AttributeTargets.Class,AllowMultiple=false)]
public class Arrtib : System.Attribute
{
public Arrtib()
{
if (HttpContext.Current.Session["UserId"] == null)
{
HttpContext.Current.Server.Transfer("~/Login.aspx");
}
}
}
And i have used this attribute as follows.
[Arrtib]
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
the basic idea behind that is "if user is not log in then request for this page (default.aspx) will redirect to login page."
this works fine in when we request default.aspx first time.
but after login and once accessing the default.aspx page and then log off. (in log of i have cleared the session.)
now if we request for the same page it should call the custom attribute constructor and redirected to login page.
BUT..... ya BUT attribute constructor is not executing.
Try to help for this problem.
Thanks in Advance.
|
|
|
|
|
hai all,
I am storing some values in an arry like following
Dim arr(10) as double
din i,j as integer
i=10
j=7
arr(1)=2
arr(2)=i*j
arr(3)=i/j
arr(4)=i+j.....
like this i am storing some expression value in arr(index).
But when i am debugging ,i couldn't see the value at runtime of perticular array data(arr(1),arr(2),arr(3),arr(4)).
I want to see the value what is going in the arr(index).How can i do this ?
I want to store in this pattern only.
Any solution please let me know.waiting for reply.
Thaks in advance.
kissy
|
|
|
|
|
hi Kissy16
but you declared your Array as an integer. You cannot declare an array and assign different datatype. rather use a string than integer.
hope this helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi Guys,
I have a doubt on Master page content page merging.
1) Which life cycle of the http request does this happens ?
2) Logically the pageload of the master page has to execute before the content page.
How ever it looks vice versa. Which is the correct way?
Thank you for your support
Sree
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Content pages load after Masterpages
Formerly know as .netman
|
|
|
|