|
Hi, everyone!
My window.prompt window often displays at the top
left of IE window. I want to display it in the
center of IE browser.
I have searched MSDN but failed. How to do it?
Cheers,
George
|
|
|
|
|
well! i have a problem which is a bit different from the general mood of questions here!
I have a client server application for which i want to calculate that:
in order to serve 40 client connections (doing file transfers with average file size being 3MB),
for which the clients must be having a download speed of atleast 4KB/sec
how much bandwidth must be allocated at the server side so that it server those 40 clients well!
I want answer to this specific quiestion and if some one can give me a formula for this i'll be very thankful.
Auf Wiedersehen
|
|
|
|
|
An exact formula I can't provide, but a rule of thumb I use with decent results is to multiply the number of expected simultaneous client connections by the average acceptable download rate, then double it. In your case, the raw data rate required is 40 (#clients) X 4kbps (acceptable rate) = 160kbps. Since data packets are not pure data, and contain a significant amount of overhead, this rate won't be sufficient. Also, collisions will occur no matter how much bandwidth you allocate, so there has to be an allowance for retransmission of packets. Doubling the raw value has worked well enough for me, though it's probably overkill. In your specific case, I'd start with about 300kbps as a target value. If all the clients are not using the connection at the same time, 256k might be quite acceptable.
[EDIT]
I should mention that the above is idealized quite a bit, assuming a dedicated virtual circuit between each client and the server. If your network is based on hubs, every packet will be sent to every node, and the bandwidth requirement will be much higher. In a switched or routed environment this calculation is easier, as the switch will maintain a virtual connection for you. You really have to look at the topology you have and do the math for each segment on a case by case basis, then design for the worst case.
[/EDIT]
|
|
|
|
|
Is this a FAQ?
What is/are the best ways of migrating an ASP App to ASP.NET?
Cheers,
Davy
www.latedecember.com
|
|
|
|
|
Rewrite it entirely. Do not do what everybody says to do: "Just rename the file from .asp to .aspx. In order to make full use of the features of ASP.NET, you would want to rewrite the app entirely.
David Stone
But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*.
Shog9
|
|
|
|
|
David Stone wrote:
Rewrite it entirely.
Thought that may be the case
Thanks!
Davy
www.latedecember.com
|
|
|
|
|
I am having a BIG problem with something SMALL!!
I am trying to have my Databound field "NOTETEXT" WRAP, insted of expanding the table
to hold the full text. It seems to ignore my wishes!
(ignore the double <<'s need to display correctly in this msgboard)
<<asp:TableRow runat="server" CssClass="NoteBody" >
<<asp:TableCell runat="server" HorizontalAlign="Left" ColumnSpan="2" Width="200" Wrap="true" ID="Tablecell1"><<asp:Label Runat="server" ID="NoteBody" Text='<%# DataBinder.Eval(Container, "DataItem.NoteText") %>' />
<</asp:TableCell>
<</asp:TableRow>
The table that the above code lives in is set to Width "100%" in order to fully use the space provided by it's parent table..
I am postive I'm missing something obvious, but I'm WELL past the point of being able to SEE the obvious!
TIA.
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Hi,
I am using ASP (not .Net) to display a crystal report. The form on the page before takes two dates in the format 'dd/mm/yyyy'. It also reads in a Firm ID from a session variable (arb, but maybe useful info).
The problem comes with this line:
set crtable = session("oRpt").Database.Tables.Item(1)
How do I add the other 2 items? I've tried
set crtable = session("oRpt").Database.Tables.Item(1) & session("oRpt").Database.Tables.Item(2) & session("oRpt").Database.Tables.Item(3)
but apparently that is not the correct way to concatenate more than one item (I have this working for other reports with only one value being passed to the stored procedure)
If anyone knows the syntax for that line, please help!
Thanks!
The following statement about your geekness is true. The previous statement about your geekness is not true.
GCS/IT/P d- s: a- C++++$ UL+>++++ P+ L++$ E- W+++$ N !o K+ w++$ O---- M--
PS- PE Y+ PGP--- t !5 X- tv b+++ DI++ D+ G++ e++>e+++ h--- r+++
|
|
|
|
|
Someone please help me - this is killing me!
The following statement about your geekness is true. The previous statement about your geekness is not true.
GCS/IT/P d- s: a- C++++$ UL+>++++ P+ L++$ E- W+++$ N !o K+ w++$ O---- M--
PS- PE Y+ PGP--- t !5 X- tv b+++ DI++ D+ G++ e++ h--- r+++
|
|
|
|
|
Does anyone know why a .NET app sometimes just seems to "time out" if something takes a bit too long when the app starts?
I started my app in debug mode, and set a breakpoint inside the Page_Load() event. I had looked at a variable's value for about 10 seconds when the app just gave up and stopped running.
|
|
|
|
|
Could this possibly be due to working in a stateless environment?
Nick Parker
“Nothing is less productive than to make more efficient what should not be done at all.”
-Peter Drucker
|
|
|
|
|
This is just a web application project on my own machine. I have done nothing special regarding state.
In this project, this behaviour started after I installed Win2000 SP3 earlier today. Before I installed it, the project still loaded slowly (about 20 seconds), but at least the page loaded. Now it just gives up after about 10 seconds. I suspect that this service pack set a value somewhere, but that's just a guess.
This behaviour only occurs if I start my app from inside Visual Studio. (Whether I start it for debugging or not.) If I start the page from the browser, it loads fine (although slowly).
|
|
|
|
|
MS le Roux wrote:
This is just a web application project on my own machine. I have done nothing special regarding state.
That is fine, however you need to understand that in web applications there is no state, you data and variables etc. only exist when they are on the server, they (e.g. - variables...) don't just wait for you at the server forever, it returns to the calling machine even if it is local.
Nick Parker
“Nothing is less productive than to make more efficient what should not be done at all.”
-Peter Drucker
|
|
|
|
|
But the problem is not with variables or data - it's that if I start my app from within Visual Studio .NET, it spontaneously shuts down if anything takes a bit too long when it's loading. Yet the page does load correctly if you load it directly from the browser.
|
|
|
|
|
Hi
I'm new to the Web side of .NET, but how does one create "expandable" dataitem such as those in the forum (dynamic view)?
Thanx in advance
|
|
|
|
|
leppie,
There are several ways to do this here is a script that will work.
<script language="javascript">
function tierMenu(objMenu,objImage)
{
if (objMenu.style.display == "none")
{
objMenu.style.display = "";
objImage.src = "/pics/expand.gif";
}
else
{
objMenu.style.display = "none";
objImage.src = "/pics/collapse.gif";
}
}
</script>
<div align="left" onclick="tierMenu(menu1, img1);">
<img src="/pics/book.gif" id="img1" style="{cursor:hand;}" WIDTH="16" HEIGHT="16">
<font SIZE="2" COLOR="#006666" style="{cursor:hand;}" onmouseover="color='#669999'" onmouseout="color='#006666'">
<b>Display Text To Be Clicked</b>
</font>
</div>
<br>
<span ID="menu1" STYLE="display: none">
<font size="2">
This is the information that will show once the display text is clicked
</font>
</span>
Nick Parker
|
|
|
|
|
Thanx Nick, will have a look into it.
Tell me, is C# server-side, exclusively or can u run it on the client?
|
|
|
|
|
Server side only, you can run Javascript through the client. At least Javascript it still has the ; at the end of a line.
Nick Parker
“Nothing is less productive than to make more efficient what should not be done at all.”
-Peter Drucker
|
|
|
|
|
This is probably a dumb question (ducks) but I just wrote my first application to actually use a .NET Web Service to retrieve content. It was really very easy to do and I like it alot... but .NET is actually going a step further than I really need it to. In my case, I actually WANT the raw XML response that's coming back from the web service. However, .NET is appropriately using the WDSL to package the response into a member of variable of the specified return type... which is really nice... if I needed that. Can anyone help me get at the XML response itself?
|
|
|
|
|
using System.Net;
WebRequest webrequest = System.Net.WebRequest.Create("url");
WebResponse webresponse = webrequest.GetResponse();
etc ....
|
|
|
|
|
I am building a web application with three user controls on the default page. From the page the user enters some data and clicks a button. The click of the button assigns a modular level variable the entered data, which is then used to populate the three user controls. If incorrect data has been entered I want to set the visibility of the user controls to be false from the click event on the default page. The user control gets added on the load of the default page with the following code.
ContentPane.Controls.Add(Page.LoadControl("~/Modules/ucCustomers.ascx"))
I tried the following code, but have run into errors. I’m not sure if it is moving in the correct direction or not.
Dim ucCustInfo As Control = FindControl("~/Modules/ucCustomers.ascx")
ucCustInfo.Visible = False Also have tried:
Dim c1 As Control = LoadControl("~/Modules/ucCustomers.ascx")
c1.Visible = True
I appreciate any help you can provide me. If you’re a C# programmer and can help feel free to do it in C# I will port it.
Jason W.
|
|
|
|
|
After getting seriously frustrated I discovered a way to accomplish what I want. It isn’t exactly what I was trying to do but the results are the same and that is all that matters.
Answer: Rather then setting the visibility of the user control itself, I can set the visibility of the place holder that the control has been added to.
Jason W.
|
|
|
|
|
Let´s assume that I have a page with lots of trace code, being tested by the IsEnabled property of the Trace context. Something Like this:
<br />
If Trace.IsEnable = True Then<br />
Trace.Warn("Warning ! Page meltdown !")<br />
Trace.Write("Call thy fireman !")<br />
End If<br />
<br />
'*** Some Code Here<br />
<br />
If Trace.IsEnable = True Then<br />
Trace.Warn("More tracing")<br />
Trace.Write("More Messages")<br />
End If<br />
When I enable the trace, it will be display in the page or in the page file.. blá.. blá.. blá.
My question is: If I Disable the Trace, is the "IsEnabled" test code and the Trace.Write/Warn code included in the compiled version of the page ? If it is, does it impact much on performance ? Does anyone benchmarked a page with trace code and trace disabled ?
Mauricio Ritter - Brazil
Sonorking now: 100.13560 MRitter
I've gone sending to outer space, to find another race
|
|
|
|
|
"My question is: If I Disable the Trace, is the "IsEnabled" test code and the Trace.Write/Warn code included in the compiled version of the page ? If it is, does it impact much on performance ? Does anyone benchmarked a page with trace code and trace disabled ?"
The IsEnabled test and the Trace.Write code will be in compiled version of the page. But it won't affect performance that much. I only tested writing trace messages to a file, you can easily write over 20000 messages by multiple threads within a second.
|
|
|
|
|
Anonymously wrote:
by multiple threads within a second
How many ? I´m asking becuase my system have a extremly high access per second rate.
Mauricio Ritter - Brazil
Sonorking now: 100.13560 MRitter
I've gone sending to outer space, to find another race
|
|
|
|