![]() |
| |||||||
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
| Sponsored Links |
| ||||
| Rather than use a JS alert -- why not build the page so it displays a friendly NO Records Found message in place of the usual results?
__________________ Wolffy ------------------------ Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary. |
| The Following User Says Thank You to Wolffy For This Useful Post: | ||
Rebelle (June 20th, 2008) | ||
| ||||
| I agree with Wolffy. JavaScript alerts are kind of tacky... and what happens if a user has a browser that either does not support JavaScript or has JavaScript turned off?
__________________ jmurrayhead Did I help you out? Make me popular by clicking the icon!If you found a post helpful, please click the button in the lower right-hand corner of the post.Powered by ASP.Net |
| ||||
| [set offtopic on] Which begs the question I've never had the time (pronounced gumption) to research. Since ASP.NET makes extensive use of Javascript -- what if the client has JS turned off? |
| ||||
| Sorry just want to make sure I understand completely.... so I took out the javascript and replaced it with this: Code: Response.Write "No Records Found!" Thanks again! ![]() |
| ||||
| I think some things will stop working, like the LinkButton, but other than that, everything will be run server-side. |
| ||||
| Quote:
![]() |
| ||||
| Yes, TestResults page has the link, when the link is clicked, if records are returned it displays the BOMResults in a new window (so both pages stay open) but if no records, just notify there are no records (TestResults stays open). ![]() |
| ||||
| OK, I was looking for some code that did this, but I must have deleted it. What I was thinking was this. If your BOMresults page finds no records, it can execute a JS function in the TestResults page that could (for example) display the No Records Found alert and then just close. The visual result being that BOMResults just goes away. It was the snippet that does 'execute a JS function in the [opening] page' that I can't find. |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
| Sponsored Links |
| ASP.NET Resource Index a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer. Free Web Directory Including Chats and Forums Resources, Offer automatic, instant and free directory submissions. | URLZ Web Directory URLZ Web Directory Free Web Directory - Add Your Link The Little Web Directory | Free Web Directory Pegasus free web directory is a free directory organised by categories. Web Directory & SEO Services dirroot web directory |