|
Is this doable? How?
Please help!
|
|
|
|
|
i am coding in VBScript. i am coding for an online survey. for error handling (eg if the user forgets to fill out a field), is it possible to ensure all fields have been filled out BEFORE clicking the submit button? i wish for the user to be notified via a MESSAGE BOX, how would i go about this(using VBScript)?
thank you!
|
|
|
|
|
This doesn't work very well using VBScript - I've been down this rocky path before. However, contrary to popular opinion, VBScript & good ol' pain in the butt Javascript work very nicely on the same page.
Don't kill yourself trying to do something we all believe should have been integrated nicely into VBScript but wasn't. Just build your whole page in VBScript, but get your submit button to call a traditional javascript validation function.
You will sleep better this way
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+++
|
|
|
|
|
i have a series of checkboxes and radio buttons. when the user submits the information it goes to another page, where it is validated. however, if there is a mistake in the data, a hyperlink brings the user back to the original page. however, the checkboxes and radio buttons are back to their default state - how do i fix this? (i have used the session variable for the text boxes). here is an example of the checkboxes and radio buttons:
4. How would you describe your role within the organisation?
DecisionMaker
Buyer
Advisor
User
Implementer
Please indicate your organisation’s primary business category:
Consultants/SoftwareHouse
Government Agency
Construction/Manufacturing/Distribution
Wholesale/Retail Trade
Finance/Insurance/Real Estate
Service/Communications
|
|
|
|
|
Instead of going back, make your script generate html output containing a new form with the previously entered data filled in. That way you can also easily highlight the fields that contained errors
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
i have two cmd buttons:
one "submit" that goes to another page.
the 2nd is a "reset" button. how do i make a msg box appear ("are u sure you want to reset this form?"), if the "reset" button is hit? (i am programming in VBScript)
thank you!
|
|
|
|
|
Make the button as normal button i.e.,
In the onClick event call a function, where in use confirm to diplay the msg box. If the user clicks the OK button call form.reset() to reset the form.
|
|
|
|
|
I give up. I've been beating my head against a wall for 6 months trying to get a trivial page to work, and I still don't know where to begin. Using InterDev I created a project, added a calendar control, then tried to access it using a script to read the user selections. Nothing works, and after arduously searching the miserable excuse for documentation that comes with InterDev, I'm no closer to finding a way to do it than I was the day I started. I won't even try to describe the futility of finding a way to access the database that is also part of this simple project - there's a lot of verbiage, but no information.
Can anyone recommend a text that actually contains useful information (not the ridiculously useless examples Microsoft provides) about implementing ASP? Bonus points will be awarded for anything that references InterDev - I've already discovered that it's worthless, but it's all I have and buying something else isn't in the budget. All I can find is material about ASP.NET, and that's not an option. Thanks!
|
|
|
|
|
Roger Wright wrote:
Can anyone recommend a text that actually contains useful information
4GuysFromRolla.com[^] is a very good resource for ASP.
Roger Wright wrote:
Bonus points will be awarded for anything that references InterDev
I think you have the wrong end of MS's marketing hype stick here. Interdev to me is just a text editor. It does syntax highlighting and project management, and not much else. I would not use the form designer (WYSIWYG thing) for any real world ASP apps and I would not let Interdev do any code creation as it does a poor job of it. Don't listen to the MS marketing about Interdev, it is vastly overrated really and is hardly an "RAD IDE for ASP."
Remember you can write ASP pages in Notepad if you wanted, just like C++.
If you need help send me some question asking for what you want. e.g. How do I list a database table? How do I insert data etc.
|
|
|
|
|
Thanks, Paul! InterDev sucks, but it has been effective for basic HTML stuff, and the CSS Editor really helped me to grasp the CSS concepts - that's probably the only thing that actually works, though. It's so tantalizing, though. "Ooh, there's a control I need - I'll just drag it over like the instructions say. Oh, and it will create a db for me, too! I'll just pop one into my project and use it there!" Then I discover that there's no way to use either one! I assume there's some magic going on in the global.asp file, but it isn't documented well enough to discover what it is. I even tried Themes once, but that was nothing short of a nightmare! The project had to be abandoned and started again from scratch, because the Theme was sticky, and after removing it, it kept returning.
Thanks for the site - it looks great, and I'll spend some time there studying. And I'll be emailing you - thanks for the offer!
|
|
|
|
|
Roger Wright wrote:
"Ooh, there's a control I need - I'll just drag it over like the instructions say
Yeah. It is the same as in creating a Windows App. Sure you can use the drag-and-drop controls, but once you get past the basics you realise what a bad job they do.
Roger Wright wrote:
I even tried Themes once
Oh you poor bugger. I actually send an email to all new guys working here to "avoid Interdev themes at all costs, even for examples, samples, prototypes or just scrap projects."
I think MS actually realised what a joke Interdev was and so threw in Themes, FrontPage Server Extensions and those drag and drop widgets. I so hate seeing _vti folders in my web projects, brings tears to my eyes and then laughs of happiness as I delete them.
|
|
|
|
|
Paul Watson wrote:
I so hate seeing _vti folders
You mean I can dump them? What the heck are they for? And why does every project, no matter how simple, need to have its own copy of every html control script ever produced?
Just in case I win the Lottery this week, what web authoring tool do you recommend?
|
|
|
|
|
Roger Wright wrote:
You mean I can dump them?
If you are not using FrontPage Server Extensions then yes, go ahead.
Roger Wright wrote:
What the heck are they for?
Support files and folders for the FrontPage Server Extensions crap.
Roger Wright wrote:
And why does every project, no matter how simple, need to have its own copy of every html control script ever produced?
Because they want you to use FPSE.
Roger Wright wrote:
Just in case I win the Lottery this week, what web authoring tool do you recommend?
LOL this will seem very odd but I actually do use Interdev (well, VS.NET now.) It does a good job of syntax highlighting and it leaves your code alone well enough. Plus I get it with our MSDN subscription.
Dreamweaver MX is a good editor and it comes with Homesite which is also excellent.
Look, Interdev is fine if you leave all the "helpful" features alone and just use it as a big text editor with project management tools. It integrates nicely with Visual SourceSafe which is also useful.
But I would never pay money for Interdev (yes, yes people will say but I do because I buy MSDN. I buy MSDN for the other cool stuff, not Interdev.)
|
|
|
|
|
I have "Professional Active Server Pages 3.0" (authors : Homer, Sussman, Francis) - WROX.
It is a very complete book with almost everything about ASP pages.
Michela
|
|
|
|
|
Damn! I saw that book on the computerbooksdirect.com website last night and considered ordering it, but today it's gone!!!! Thanks for the recommendation, though - I'm sure Amazon will be able to find it.
|
|
|
|
|
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.
|
|
|
|