473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Opposite Statement

12
Hi everyone,

Is there a way in ASP I can make a switch? For example I need to make a link to sort a recordset either ASC or DESC. I can accomplish this with some javascript but it gets a little complicated when I add my AJAX function.

Can ASP handle an opposite condition? I'm thinking an if statement within a Case? As you can tell from my scattered post i'm completely lost on this and any help is much appreciated :)
Nov 7 '08 #1
1 1857
jhardman
3,406 Expert 2GB
Hi everyone,

Is there a way in ASP I can make a switch? For example I need to make a link to sort a recordset either ASC or DESC. I can accomplish this with some javascript but it gets a little complicated when I add my AJAX function.

Can ASP handle an opposite condition? I'm thinking an if statement within a Case? As you can tell from my scattered post i'm completely lost on this and any help is much appreciated :)
you mean you want to know how to write a "select case" in asp?
Expand|Select|Wrap|Line Numbers
  1. select case request("sortOrder")
  2.    case "ASC"
  3.       query = query & " Order by " & sortField + " ASC"
  4.    case else
  5.       'do whatever else
  6. end select
Let me know if this is what you are looking for.

Jared
Nov 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: achrist | last post by:
The yield statement looks to be a big step toward some kind of lightweight concurrency-oriented programming in python. Is there any similarly nice way to do the opposite of yield, just sit around...
15
by: Greg Schmidt | last post by:
We all know that one trick in dealing with old browsers is to add extra bits of content with class="old", where old is defined as display:none in a style sheet that is @imported so that old...
4
by: Greg Ennis | last post by:
If I run the following code: Byte bytes = System.Text.Encoding.ASCII.GetBytes("test"); return BitConverter.ToString(bytes); I get the string "74-65-73-74" back. My question is, what is the...
6
by: bradleyp | last post by:
Hi all, I have a table (tblCodes) that has two fields: 'ID' and 'Code'. A small portion of the table is as follows: |-------------| | tblCodes | |-------------| | ID | Code |...
5
by: Tony | last post by:
Hi, I am looking for the opposite of wm_close, I assume it's possibly wm_open but no info comes up with that term. so, what is the opposite of WM_Close Any ideas welcome Tony
9
by: pranav.choudhary | last post by:
Hi I am new to python. I wanted to know if there is an opposite of "import"
4
tolkienarda
by: tolkienarda | last post by:
hi all i have an if statement but i need to use the oppsite of isset like isn'tset only i know that isn't right is it like !isset or isset! or somthing totaly different eric
11
by: igor.tatarinov | last post by:
Given a bunch of arrays, if I want to create tuples, there is zip(arrays). What if I want to do the opposite: break a tuple up and append the values to given arrays: map(append, arrays, tupl)...
4
by: abev | last post by:
I am checking to see if a form is already set to an instance but I have only been able to do this backwards. What is the opposite of this statement? 'Hide IO form If...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.