|
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
|
|
|
|
|
HockeyDude wrote:
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...
So when are you going to give us the link to your site?
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
When I have to money to pay for some spaceage...
I found a really realiable ISP and their super cheep and it's Cdn currency...so it's even better for me anyways...
Although...I may not post my URL cuz I say some things which are un-called for now and then and my bio isn't very professional...it's me!!!
I like being able to be myself but my tiny(but hopefully) growing business would not jive well with my persoanl profile...sure I could change it...and I might just do that, but for now i'm content.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Personally thats no reason not to give us links to your site; the other way around would be a valid reason tho (putting links on your site to specific things on CP about you)
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Perhaps...but you must remember, this is competition territory...any good ideas I have...I don't much feel like having robbed from me by some BBD(Bigger better deal) company.
I don't mind sharing, but unless I feel I have something to offer the programmer community it's senseless to link back to my site...where ideas could potentially get stolen and made bigger and better by a larger biz.
i'm thinking of selling software online through my site...if I did that I would no dought post a link to my website, but until then...I really can't get over the fact that some promotional idea's I use to get clients would be stolen and used...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
|
do an alert( myArray[i].DivID );
are you getting a read ID from that?
It doesn't seem right.
|
|
|
|
|
Did that...it's returning what I would have expected
SoAndSoMyID1
SoAndSoMyID2
...and so on
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I figured it out thanx!
My array is actually structured like this:
DivID
Caption
ID
DivID is null if no ID is available, I was forgetting to test the ID for null before trying to display the division...and ironically the first element of the array was null, so the script was failing before I had any chance of seeing output so I figured it was getElementById..
Thanx for you time!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I’ve build a simple test C# Web Application using beta version of Visual Studio .NET. It’s a one Web Form with text label on it using all project defaults. It works fine on my PC. But when I copied it to my web server, I’ve got following error within Web.config file:
------------------------------------------------------------------------------Parser Error Message: File or assembly name System.Web, or one of its dependencies, was not found.
Line 44: <httpHandlers>
Line 45: <add verb="*" path="*.vb" type="System.Web.HttpNotFoundHandler,System.Web" />
------------------------------------------------------------------------------
Couldn’t find System.Web.dll on a web server?
When I deleted <httpHandlers> section from Web.config file, I’ve got another error:
------------------------------------------------------------------------------Exception Details: System.MissingMethodException: Method not found: Void System.EventHandler..ctor(System.Object, UIntPtr).
Source Error:
Line 41: private static System.Collections.ArrayList __fileDependencies;
Line 42:
Line 43: public Test_aspx()
------------------------------------------------------------------------------
Looks like System.EventHandler constructor could not be found.
Any idea what is happening? Is it my fault or it’s a problem with ASP.NET setup on a web server?
I also tried to run an aspx file that doesn’t use Web forms and it works.
Any help would be greatly appreciated.
Leydel
|
|
|
|
|
one of 2 things:
a) the server is v1 and you are beta2, they are not compatible.
b) the server is beta2 as well, but just set up wrong.
|
|
|
|