|
any 1 have idea how too use the tree view in asp
i want too show all the files in tree view
and when the user click on any file open
the file
how can i use tree view in asp
looking forward for reply
|
|
|
|
|
hey all,
I've been writing some ASP.NET with VB.NET recently. So far I have *not* been able to publish things by copy/paste to my ISP, brinkster. So what I've ended up doing is modifying the VS.NET generated page, taking out the code behind and inherit directives and writing everything in one single page with embedded ASP.NET (a at the top).
This seems to do the trick.
When I'm running things locally though I've also noticed that a "View in Browser" doesn't work with the codebehind etc... and istead I have to use the "set start page" and let VS.NET compile everything first.
Am I just not deploying things correctly to my ISP? How can I compile things locally and then just copy them over to the server?
Thanks much,
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
http://hobbitwerk.brinkster.net/blog
|
|
|
|
|
Is there any way to detect when a form is submitted using the form.submit() method? Thanks.
|
|
|
|
|
From the client side...???
I've never tried it myself but
<br />
<input type="submit" onSubmit="alert('onSubmit detected');"><br />
should do the trick
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
and if you return false from the function you call in the onclick() event handler it wont do the submit
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
Hi All
Im using a DSN To connect to my SQL Database.And i thought when u use a DSN we dont have to give out the username and password in the connection string and that the DSN name would do..
But on the contray my application is working when i give the dsn name but also the username and password that i sued to create the DSN.
Now this is confusing me..
Dim Connection
Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "DSN=myDSN"
this does not work..
But
Dim Connection
Set Connection = Server.CreateObject("ADODB.Connection")
Connection.Open "DSN=myDSN;UserID=john;pwd=joker;"
now this works.
Any Suggestions..
Regards
PradhiP.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Well, yes you need, lol
Database drivers are not using username and password stored in DSN. Actually password is not stored in DSN, only the last used username.
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
I'm currently using PHP but I imagine ASP wouldn't be much different.
Everytime I call a script to process some form data...that script always either chnages the current windows HTML or opens a new window and generates HTML there...the problem I have with this is if you send 150 forms a day...it's really annoying having to click back or close the Thank you for responding window each time you send data to the server.
So I have come to the conclusion I have 2 options, but would like to know if another exists...
1) I could use the META tag to redirect the PHP back to the original HTML page after so many seconds.
2) I could program some trivial JScript to reload the HTML page after the onLoad event has been fired.
My question is this...CO in it's URL's often has the filename of another ASP script in it's URL encoded paramters...what are the scripts doing with this filename paramter..??? Anything like the above..? or is there a way for your server scripts to redirect browsers using a function call...?? I'm thinking this can't happen, but I could be wrong...
[modify] - Actually...what I would like to know is acn PHP act like Perl so that nothing changes and scripts are just exectued on the server side of things..???
Thanx
Cheers!
Cool we finally have HLEing for html...;P
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
One solution would be to have just a single php page. When it's opened normally it displays your form. If it's given post information it processes the information, displays some kind of thankyou message, and re-displays a new form
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
I thought of that also, but I was hoping I could somehow avoid this. Looks like thats not gonna happen using PHP...ah well.
Thanx again.
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
How do I use Oracle functions from my ASP code???
what doesnt work.....
sSQL = "<fn_sme_insert>(12,'blynch@gasoplus.com.mx','','Test','from asp','','','','220702 000000',0,0) FROM dual"
I need help badly with this...
|
|
|
|
|
Anonymous wrote:
How do I use Oracle functions from my ASP code???
what doesnt work.....
sSQL = "(12,'blynch@gasoplus.com.mx','','Test','from asp','','','','220702 000000',0,0) FROM dual"
I'm not sure that I can help you directly if this has anything to do with Oracle because I use MS SQL Server professionally, however because Oracle is a relational database you will need to create a SQL statement that is valid. Does Oracle support stored procedure like MS SQL Server? I guess I am not really sure of what you are doing here, could you explain?
Nick Parker
|
|
|
|
|
I have a form that when the user presses <enter> the form is submitted. I don't want to stop this.
What I would also like to do is in particular edit/input boxes, I'd like to trap the <enter> keypress and run a javascript function.
Anyone know how to do this please?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Jeremy Davis wrote:
I have a form that when the user presses the form is submitted. I don't want to stop this.
I assume you mean you do want to stop this. If so then just put onsubmit="return false;" in your FORM element.
Jeremy Davis wrote:
What I would also like to do is in particular edit/input boxes, I'd like to trap the keypress and run a javascript function.
Use the onkeypress event. e.g. <input type="text" onkeypress="return dojavascriptfunction()" />
Then whenever a key is pressed in that edit box, it will call the JavaScript function called dojavascriptfunction.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Thanks. In particular I want to trap the <enter> key and no others. How could I use the onkeypress method to do this?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Sorry! If you write <ENTER without <code> tags, it obviously disappears in the message. In particular I want to trap the <ENTER> key and no others. How could I use the onkeypress method to do this?
|
|
|
|
|
Jeremy Davis wrote:
Sorry! If you write tags, it obviously disappears in the message. In particular I want to trap the key and no others. How could I use the onkeypress method to do this?
LOL relax.
So you want to check if the user pressed the ENTER key. No problemo.
In the previously mentioned function put this code:
if (window.event.keyCode==65) alert ('A pressed !')
That will trap for the A key. Not sure what the ASCII/ANSI keycode is for enter, you need to look that up.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Sorry about the last two emails with missing words. I really should use "preview" first! If you write without tags, it obviously disappears in the message.
Anyway I want to trap the key and no others. How could I use the onkeypress method to do this?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
I'd like to validate as XHTML strict, I really, really would. But...
I can't get around a few things.
The first is that it doesn't like my language="JavaScript" attributes. Can I get away with just they type="text/javascript" part? That is, will the browser assume JavaScript unless tolds otherwise? I'm targeting IE/NS 4+ or so. I've heard about a <meta> tag somewhere for setting the default scripting type, but can't remember the syntax (or indeed if it's even useful at all).
The worst (IMO), is the lack of support for the target attribute of the <a> tag. Can I open links in new windows without resorting to JavaScript foolery? Surely the W3C hasn't gone that far...
Other than that, I'm completely XHTML Strict compliant!!!
Now if someone would tell me about this XHTML 1.1 stuff...
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Using XHTML Strict is not easy and I wouldn't count on that old browsers accept type="text/javascript", but it's the only valid way. The meta command defines the same and only saves the type declaration in the script tags:
<meta http-equiv="content-script-type" type="text/javascript"/>
The target attribute is defined in the 'Target Module' of XHTML. I'm not sure how to import these modules to the XHTML DTD but I think this violation is really acceptable!
Have fun!
P.S.: What really sux is the deprecation of the style attribute!
|
|
|
|
|
Domenic [Geekn] wrote:
The worst (IMO), is the lack of support for the target attribute of the tag. Can I open links in new windows without resorting to JavaScript foolery? Surely the W3C hasn't gone that far...
You shouldn't need to open a new window from an <a> element. If you ever do need to open a new window then yes using JavaScript is ok, but it shouldn't originate from an <a> element, it is not expected behavouir for a link.
HTML is meant to structure a document. The W3C is moving HTML back to doing that, veering away from the application path that Netscape and IE sent it on.
Other technologies will then be used for the application side (e.g. XSL:FO.)
p.s. Saying all that, being XHTML Strict compliant is not worth it. Transitional is a good target to head for, especially in the real world.
Domenic [Geekn] wrote:
Can I get away with just they type="text/javascript" part? That is, will the browser assume JavaScript unless tolds otherwise? I'm targeting IE/NS 4+ or so. I've heard about a tag somewhere for setting the default scripting type, but can't remember the syntax (or indeed if it's even useful at all).
Didn't know about that, but on checking yes XHTML 1.0 Strict does not allow the language attribute. Weird.
Guess text/javascript will have to be the indicator. Though this sucks when it comes to IDEs which pop-up intellisense based on the language attribute.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
HTML is meant to structure a document. The W3C is moving HTML back to doing that, veering away from the application path that Netscape and IE sent it on.
I guess so. It just made more sense for external links not to take the user away from my site, but I suppose it is important to keep the document structured.
Hehe, you should see how structured I have my documents: they're XML files containing a mix of my own custom elements and XHTML, like so:
<?xml version="1.0" encoding="utf-8"?>
<Page xmlns="/PageWriter/TemplateSchema.xsd" xmlns:XHTML="http://www.w3.org/1999/xhtml">
<Head>
<Title>Home Page</Title>
<Image Width="225">/Images/PageTitles/HomePage.gif</Image>
</Head>
<Body>
<XHTML:p>
Blah Blah Blah <XHTML:em>Blah!</XHTML:em>
</XHTML:p>
<XHTML:p>
Hers's a link: <Link Href="/Creations/" Status="The Creations"
Comment="Go to the home page for my Creations, random C++ and C# programs I make in my
free time which you quite probably will find useful.">random C++ and C#
programming</Link>. More text.
</XHTML:p>
<Section Name="Sample">
This section is outputted with a title of "Sample."
</Section>
<Spacer Width="10" Height="50" />
<ASP.NET>Response.Write("Pretty cool, huh?");</ASP.NET>
<News>
<NewsItem Date="7/23/2002">
News for 7/23/2002.
</NewsItem>
<NewsItem Date="4/17/2002">
News for 4/17/2002.
</NewsItem>
</News>
</Body>
</Page>
Which gets transformed into a combo of XHTML and ASP.NET code. What do you think? I'm pretty proud of it myself...
Paul Watson wrote:
Guess text/javascript will have to be the indicator. Though this sucks when it comes to IDEs which pop-up intellisense based on the language attribute.
Don't get me started on IDEs... they hate XHTML. I wonder if I could write an addin for VS.NET to make it like XHML and output valid XHTML everywhere? Hmm...
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Domenic [Geekn] wrote:
I guess so. It just made more sense for external links not to take the user away from my site
Well there is a lot of thinking on that matter and it is split 50/50 on whether new windows make sites stickier or not. I personally feel they don't.
Domenic [Geekn] wrote:
What do you think? I'm pretty proud of it myself...
Looks pretty sweet. You going to publish your system so that other people can use it sometime?
Domenic [Geekn] wrote:
Don't get me started on IDEs... they hate XHTML. I wonder if I could write an addin for VS.NET to make it like XHML and output valid XHTML everywhere? Hmm...
Well from what I know of at least the ASP.NET web controls is that you can sub-class them and write the valid XHTML code for them.
So then you have two versions of the web control. One, your sub-classed one, outputs valid XHTML while the other, the MS default one, outputs crap.
Various people have said they are going to do this, but nobody has yet done it. Will be cool when they do (it seems a bit of a job though, something you need stacks of time for.)
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
You going to publish your system so that other people can use it sometime?
That's the plan; once I complete at least a first draft of my website with it. I'll make sure to write an article for CP on it when I do.
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
I need to scroll to a link when my page loads.
How could i do it from JavaScript?
rechi
|
|
|
|