|
|
Sweet...All I needed to hear...
Same domain yup...
I'm not specifiying any default's
No shttp, domain, path...nothing, just name=value pairs and the date of course.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Sir,
Instead of making manually refesh page (Clicking on refresh icon on browser)
is there any command available in ASP for automatic refresh page?
Pls Help Me
waiting for reply.
|
|
|
|
|
With ASP? it is a server side language. You cannot from server refresh client's browser
You can write Javascript out to browser with ASP, which (JS) will refresh browser when you need it
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Not ASP, but plain HTML... You could add the following tag inside the <head> tag:
<meta http-equiv="refresh" content="60">
(content is the number of seconds)
|
|
|
|
|
add this sentence at the head of file
|
|
|
|
|
One more thing.
I think this makes sense, but can I call a perl script (or asp for that matter) that resides on my website, from another website all togather...?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Don't ask me about web services and SOAP, but one easy way to do it is just to get whatever ASP page is running on one website to make a simple HTTP request (using GET or POST to pass parameters if necessary) to the other server, and just parse the output.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Thats all I wanted to do...I just wanted to know if it was possible...or if I was going to get some stupid access error or something.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
When I ftp files to a server anybody could download them right...?
I would have to chmod the file thingies in order to prevent unwanted downloads...?
I couldn't do this with a JScript file though because then the browser wouldn't be able to render the document properly correct...?
When would I use file restrictions...? On a database which I wanted no one to have access to...?
You would write a intermeditae script to access the info in the database instead...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
A JScript file is downloaded by the browser, so you need to set permissions on that, the same as the permissions on your HTML pages.
Since a database is only accessed from the server (from the PHP pages or something) then you only need to allow access to it from the server, not from the outside world.
Generally speaking, any file you dont want to allow someone to download, dont put it in an accessable directory. Since for a database that is accessed from PHP, it really doesnt matter where the files are (it has access to the file system of the machine)
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
My problem is this:
I have a webform with a lot web controls(inputs,ckeckboxes etc).
When I submit the form to I want to be made some client operations before sending to server: i want to modify a hidden input or the value of a input control in some way.
How do I make this? It is posible to add an onsubmit() event handler to webform although it is a form which have runat="server" and make all what i need in hat handler?
( )
thanks.
|
|
|
|
|
In some web pages when you right click on some pictures the popup menu doesn't let you to save that picture.How can I do it?I never use html or javaspript before,so can avybody tell me the EXACT CODE?
Thanks
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I'll look when I'll come home (if someone won't do it before). But what for you need it? It won't hide the source from someone who want to steal your picture.
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Philip Patrick wrote:
But what for you need it?
I don't want it for myself,some one ask it form me.
Philip Patrick wrote:
It won't hide the source from someone who want to steal your picture.
It doesn't matter if you can show the to disable "save as picture" and change popup menu.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
|
One thing that often frustrates me about Word is the brain-dead way it creates HTML from a word doc. Instead of a simple set of <p>'s, it creates <p align="left">, or <p class="MSOMonstrosity"> or, more often <span areallyhugelonglistofclassattributes>. Clean out all this crap and it displays exactly the same.
So - I'm now moving pages that have been handcoded with complicated stuff like:
<table cellSpacing=0 cellPadding=1 border=0 width="100%">
to be more ASP.NET friendly, so it becomes:
<asp:Table BorderWidth=0 CellPadding=1 CellSpacing=0 Width="100%">
Personally I love the new format. What really drives me nuts is when the output is straight out of the Word Bible of rendering HTML:
<TABLE id=SearchNavBar_tblSiteToolbar
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-COLLAPSE: collapse; BORDER-RIGHT-WIDTH: 0px"
cellSpacing=0 cellPadding=1 border=0>
I've been looking through some of the pages I use - many of which are table intensive, and pages (which are already fairly large) are now threatening to become 50% bigger simply because the HTML renderer for the WebControls isn't smart enough to leave out superfluous styles.
Please someone tell me I'm missing something obvious here and that there is a way to keep WebControls lean and mean.
cheers,
Chris Maunder
|
|
|
|
|
Chris
This would mean that Code Project .NET would be faster than the current site at the server side, but at the client side it will be slower cause the HTML is now bulkier
Nish
If I am awake and my eyes are closed, it does not necessarily mean that I am thinking of naked women.
|
|
|
|
|
That's what I have to ensure doesn't happen (the slowness, not the speed).
Initial runs show the ASP.NET pages run about 5X faster than my old ASP pages. w00t!
cheers,
Chris Maunder
|
|
|
|
|
When I use the CssClass attribute, the style tag goes away (when using grid positioning it appears again, for obvious reasons). But this can lead to problems with older browsers (if you care).
Other solutions could be:
1. Using the LiteralControl (I know, I know, this defeats some of ASP.NET's strenghts; but for sheer performance, this can be useful in some VERY large pages).
2. Deriving your own Table .NET server control, that renders minimal attributes (only those you need). It's pretty easy.
Crivo
Automated Credit Assessment
|
|
|
|
|
Possibly the LiteralControl will be the way I'll go, though deriving a new Table control and ensuring it behaves may be a wiser solution.
And while I'm at it I guess I can make it actually cross browser compatible (for things like thin borders and such), as opposed to the current implementation that just throws it's hands up in puzzlement.
Hmm - I see a new article in the making
Thanks Daniel!
cheers,
Chris Maunder
|
|
|
|
|
Chris,
There really is no way to keep WebControls lean and mean, but IE does an outstanding job of rendering the gargantuan amount of HTML that ASP.Net spits out. Especially IE6! Gee, I wonder why that is? Could Microsoft have optimized IE6 to play well with .net?
Anyway, if you just insist that everyone use IE, then we won't really have a problem loading the aspx pages!(Sorry Nish, I know you have to use UNIX.)
In fact, I ran tests with the ACT(Application Center Test). When I handcode database access to SQL Server(Dimming a SQLDataAdapter, etc...) my page runs slower than when I drag a SQLDataAdapter onto the page and go through the wizards, even though the latter generates so much more code in the codebehind file than the other.
David Stone
dstone@newcenturytitle.com
"I am but mad north-northwest, when the wind is southerly I know a hawk from a handsaw." -Hamlet
|
|
|
|
|
Hi guys,
I need help using Visual Studio :P I have 2 questions i guess most newbies have on their minds
Q1)
This error is kinda annoying. I need to change Codebehind to src and change the contents of inherits in the solution explorer to make the code behind work. For example:
Page Language="vb" AutoEventWireup="false" Codebehind="databaseconnect.aspx.vb" Inherits="localhost.databaseconnect"
to
Page Language="vb" AutoEventWireup="false" src="databaseconnect.aspx.vb" Inherits="databaseconnect"
But when i do these changes in visual studio.net i can't go to design mode anymore--i need to change it back and forth to go to design mode. Any explaination?
Q2)
In "class view" mode, Len Mid and Random functions dont work. Visual Studio.net does recognize those functions but when u compile it, it errors.
It gives me this error:
Compiler Error Message: BC30451: Name 'Mid' is not declared.
Thanks,
Bobby
|
|
|
|
|
var x = window.event.x;
var y = window.event.y;
var obj = document.elementFromPoint(x, y)
if(obj.id == "Popup"){
status = "Keep showing POPUP";
}
else{
status = "Timer for hding POPUP";
setTimeout("menuControl.HideAll();", 2000);
}
the following is mapped to the onmousemove event
HideAll() hideas all the divisions
This doesn't make sense...when the mouse is over the specially labeled popups with div id's 'Popup' the timer is supposed to stop, but when the mouse is over something that isn't like the document.body or another element that isn't id'ed Popup...the timer should kick in and call HideAll() to remove the specially labeled Popup's from display
What actually happens is the popup will show...but only for a split second(shorter and shorter it seems) and then disappear???
The code is a for a drop down menu, if that helps...
Any ideas...?
Thanx again!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I figured out another solution...thanx anyways!
I finally completed my cool drop down menu...I can finally proceed with my friggen site. I'll actually maybe score clients...up til now i've onoly had a few...and only because they knew I was competant...with my own site up...
Sweet!!!
Anyways...my menu has some short falls, here they are:
IE 4+ ONLY, but soon will support NS if client base requests it.
No sub-items on the popup menus.
I did however implement it in such a way that it'll make it way easier for newbies(friends I often get to help out) to deign an a website with drop down menus...
What are your opinions about the short falls...?
Are the sub-items really nessecary...?
They way I designed it would make it quite hard to add that feature.
Otherwise it's totally customizable...I love it...i'm so proud of myself...2 days...and i developed a drop menu...all JSCript...I don't even enjoy programming in JScript...C++ is so much better and more flexible and compilers make all the difference in the world.
I got stuck for 3 hours on my menu because I was missing a single quote...it kept crashing...try catching that in notepad...
I later used VC++ editor, but syntax hilites only make a small difference.
Speaking of which...does any one know of any good editors out there for JScript only...that interpret code and catch errors like missing single quotes...?
I've tried the MS Script debugger, but didn't like it at all.
I'm going to download something a friend suggested called FSA Script debugger...? I think anways...
Any ideas...?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|