|
Hello all,
I have a site in asp.net+vb.net and sqlserver.It runs very slow,mainly home page takes 3-4 minutes to load.What can be procedure to speed the site.
Thanks
|
|
|
|
|
That's like asking "I have a car that doesn't run what is the procedure to make it go?"
The answer could be as simple as put some gas in it, or it could be as complex as you need to replace the engine, and there are thousands of things in between.
What have you done so far to identify which parts are slow? Does it run as slow on the local server as it does accessing it remotely?
|
|
|
|
|
Hi,
On local machine it runs very well fast and smooth ,when i upload it on production machine then it runs very slow.
Thanks
|
|
|
|
|
Hi
you need to read Ulra Fast ASP.NET
i did - its great
3-4 minutes
start by loading the page with out a db connection , then you can see if its db or server related
MyDevBank.com
|
|
|
|
|
I have a form within an HTML page.
As you can see from the code, it is hardcoded to post to an address 'sales@anycompany.co.uk'.
I also have a drop down box selecting the type of contact, Sales, Contractor etc.
I would like to email to a different address dependant upon which contact type is selected.
ie a sales type is emailed to sales@anycompany.co.uk, a contractor type is emailed to colin@anycompany.co.uk etc
How can I achieve this selection within HTML?
(Can I do this?)
<form action="mailto:sales@anycompany.co.uk&cc=david@anycompany.co.uk"
enctype="text/plain" method="post">
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
<input name="Customer Name :" size="60"
style="background-color: #FFFFCC; text-align: left;" type="text" value="Name" /><input
name="Telephone Number :" size="60"
style="background-color: #FFFFCC; text-align: left; width: 202px; margin-left: 42px;"
type="text" value="Tel No." /></p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 12px; width: 655px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Please use our contact form to make any enquiries.</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Type of enquiry?</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
<select id="SelectContactType" name="ContactType">
<option value="Sales">Sales Enquiry</option>
<option value="Contractor">Contractor Enquiry</option>
<option value="Technical">Technical Enquiry</option>
<option value="Other">Other</option>
</select></p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Your Question...</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 62px;">
<textarea rows="3" cols="2" id="TextArea1" name="S1"></textarea></p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 9px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 9px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 9px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Finally, Your Email Address...</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
<input name="Customer Email Address :" size="60"
style="background-color: #FFFFCC" type="text" />
<input id="Button1" type="submit" value="Submit" /></p>
<p align="center">
Press the Submit Button and we will contact you shortly with details, prices
etc.</p>
</form>
Thanks.
to see what has been uploaded so far click here[^].
Thanks in advance.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Never tried it (never had reason to) but you may be able to handle the changed event of the dropdown and set the form's action with JavaScript
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks, I was unsure if it was even possible in HTML.
I shall have a poke at that.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
As Mark has said ...
"handle the changed event of the dropdown and set the form's action with JavaScript"
One way to accomplish that follows.
add onchange handler to drop down
<select id="SelectContactType" name="ContactType" onchange="setAction(this)">
add this script ...
<script type="text/javascript">
setAction = function(context){
frm = document.forms[0];
frm.action = "mailto:" +
context.options(context.selectedIndex).value) +
"@anycompany.co.uk&cc=david@anycompany.co.uk"}
</script>
|
|
|
|
|
Even better, Cheers.
Sorry for delay, I was watching the footy.
Trying it out now.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Just to get this straight, so that I fully understand the process...
I put the jscript into the header.
This calls the 'value' expression in the drop down menu, adds it to the 'mailto' and then adds the rest of the address and sends.
I need to change only the 'value' in the drop down to the correct email recipient, and the 'anycompany' to my own.
If that is correct, I have done it, and hopefully it will be fine.
Cannot check until I get to work tomorrow!
Thanks once more for your time on this.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
David, you might want to run a script that checks if customer has entered anything otherwise this is what will be sent out if somebody just hits the submit button thoughtlessly.
Customer Name :=Name
Telephone Number :=Tel No.
ContactType=sales
S1=
Customer Email Address :=
modified 1-Aug-19 21:02pm.
|
|
|
|
|
In the HEAD...
<script type='text/javascript'>
function notEmpty(elem, helperMsg)
{
if(elem.value.length == 0)
{
alert(helperMsg);
elem.focus();
return false;
}
return true;
}
</script>
In the Form...
<input type='text' id='S1'/>
<input type='button'
onclick="notEmpty(document.getElementById('S1'), 'Please Enter a Value')"
value='Check Field' />
Would this work?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
I would be inclined to ask
(1) Have you designed, or wanting to eventually design, the pages of your website for dynamic content (all or at least most pages)
(2) Is it to be served, eventually, by dynamic created web pages on the server
(3) Are you, or are there plans to, capturing and validating data into a database
If yes to any of them, and more questions you might ask, then your small script, irrespective if it works or not, will not do. Apologies if this sounds rude, that was not the intention.
For client-side dynamics and validation, have a look at jQuery and some jQuery plug-ins. They really are rather excellent. But don't rely upon client-side validation. Do that validation etc on the server as well.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
1) Maybe, but very little planned
2) Pass
3) Possibly, but I have no requirements yet.
To be honest, I am not overly good at this yet, and am still learning.
I understand that you weren't being rude, and I am always pleased to get advice and help.
So thanks anyway, and I am sure that when new things come along I will ask recieve help when I have to grumpily announce that I have no idea what I am doing!
(One of the main reasons for CP after all!)
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
>>I put the jscript into the header.
yes
>>This calls the 'value' expression in the drop down menu, adds it to
Yes
>>the 'mailto' and then adds the rest of the address
yes
>>and sends.
No, it's sent when the submit button is clicked.
(but only if client has email installed and OK's the sending)
>>I need to change only the 'value' in the drop down
>>to the correct email recipient, and the 'anycompany' to my own.
Sounds right to me.
Good Luck.
|
|
|
|
|
Cheers.
I did mean 'OK's to send', I realise it would only send on the onclick.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi Guys,
Please explain me how to configure Eclipse 3.4 with JBoss 5.0 server.When am try to configure getting an error as Missing classpath entry.
Give me the details regarding this issue.
Thanks,
Ram's.
|
|
|
|
|
I am pulling out my hair! All I want is for my method to be called in the body onload event. I am currently getting an "object expected" error when calling the external javascript function. I have given up, and hope that someone here can explain to me why the following works in every browser known to man except internet explorer:
tester.html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script type="text/javascript" src="tester.js"></script>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<title>Test Application</title>
</head>
<body onload="testFunc();">
<h1>Test Application</h1>
</body>
</html>
tester.js
function testFunc() {
alert('foo');
} Thanks for any assistance,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Works for me (in IE8) and looks okay. Perhaps try:
<script type="text/javascript" language="javascript" src="tester.js"><script>
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
(I apologize for the shortness of this answer, but I am currently at work. I was looking for an answer to my own question and I thought I might be able to help you with this)
Do you have the requirement that you *MUST* use the strict doc type def? At least for debugging purposes, try switching over to the Transitional DTD and see if your problem "magically" disappears.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
If it DOES disappear, and you have a "strict.dtd requirement", then you need to investigate which rule of the strict.dtd you have violated.
If you're developing with VS2008, put a breakpoint inside testFunc and see if you actually enter the method on pageLoad.
You also might want to test out switching your script to be written within a script block on the page rather than loaded from file. If that works, then you've got a problem with your file hooks.
<script type="text/javascript">
function testFunc(){
alert('foo');
}
</script>
...
<body onload="testFunc();">
If that doesn't work, then try switching out your double quotes to be single quotes just for gits and shiggles.
I know it's not super specific to the effect of "Oh. I know exactly what's causing that" but I hope I pointed you in a couple directions that might let you figure it out for yourself. Good luck!
"I need build Skynet. Plz send code"
|
|
|
|
|
Hi,
You guys would have seen the image cropping tool which has a selection option (marque tool) created in javascript.
[URL="http://marqueetool.net/examples/"]http://marqueetool.net/examples/[/URL]
Like this i want to get all elements under a selection.
For example in windows we have mouse group selection of files and folders by dragging the mouse to select multiple files. Like that i need to get all the elements under a selection in javascript. I can try other gimmicks but if there could be a simple tool then i can speed up my work.
Todays beautiful moments are
tomorrows beautiful memories.
http://vikku.info
modified on Friday, April 2, 2010 2:04 AM
|
|
|
|
|
In a window, to select multiple files or folders that are near each other, you may drag the mouse pointer to create a selection around the outside of all the items that you want to include, to do a similar thing in a web page you first create a div and size and position it, then compare it's coordinates to the objects on the page .
|
|
|
|
|
That's a good idea.
So, i need to do a recursive dom parsing or to use document.all if it is anywhere on the screen.
or if it is inside a layer for example a table or a div then i get all the elements inside it and have a compare with its left and top properties. That is get the coordinates and check it with the selection boundary. And we can filter out the elements which we need to work on using the className attribute. Nice. This will work. thank you.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
|
Oh yes and in another discussion i got that answer but i want it to be of core javascript. thank you.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|