|
here is my selection
SELECTOR="SELECT * FROM MYTABLE WHERE MYDEF LIKE '%"& search &"%' ORDER BY MYDATE"
I want to list the records by date but not old to new..wanna list recods ffrom new date to old ..would someone help?i do not have much time now.
--jcalone--
|
|
|
|
|
Hi
All you need is to add the keyword desc
SELECTOR="SELECT * FROM MYTABLE WHERE MYDEF LIKE '%"& search &"%' ORDER BY MYDATE desc
|
|
|
|
|
the default is ascend, you want to descend, just append the string "DESC"
thus your new SQL is:
SELECTOR="SELECT * FROM MYTABLE WHERE MYDEF LIKE '%"& search &"%' ORDER BY MYDATE DESC"
Thinking-Asking-Thinking
|
|
|
|
|
It appears that a Web Service thread is safe unless you either Thread.Sleep() or create a new thread. Is that correct? I was worried that a second client could enter a [WebMethod] while the first client was doing things such as working with Hashtables or the Registry (both of which are suppose to be very thread unsafe. Therefore I wrote the following two WebMethods below to check out whether the threads would switch if Test() was called by one client and test1() would be called by another and the threads didn't appear to switch. Test() loops for a long time (about 20 seconds) while creating 10 entries in a Hashtable and reading the Registry 10 times. Test1() should immediately return a value. I start Test() with one client and then immediately start Test1() with a second client and the second client doesn't return until the first client completes which makes me think that the threads are safe. If I place a Tread.Sleep(1) in Test(), the second client returns immediately indicating that the thread will switch with a Thead.Sleep().
[WebMethod]
public int Test()
{
Hashtable x;
RegistryKey RegKey;
string Value;
string Path;
x = new Hashtable();
for(int i=0; i<10; i++)
{
for(long l=0; l<300000000; l++)
{
}
x.Add(i, "1234567");
Path = "Software\\MyTest\\MyTest\\Net\\Configuration\\"+i.ToString();
RegKey = Registry.CurrentUser.OpenSubKey(Path, true);
if(RegKey == null)
{
try
{
RegKey = Registry.CurrentUser.CreateSubKey(Path);
}
catch (Exception e)
{
e = e;
return(0);
}
}
Value = Convert.ToString(RegKey.GetValue(i.ToString(), ""));
RegKey.Close();
}
return(5);
}
[WebMethod]
public int Test1()
{
return(1);
}
|
|
|
|
|
Take a look at the Monitor class in System.Threading
|
|
|
|
|
I have a table as the sole element of a page, is there a way to have it as close as possible to the borders of the page ?
I can set the left margin to a negative value but that doesn't seem right :
{margin-left: -5px}
I'd like to have my table fit as much as possible the inside of the page "frame"; now, there's too much padding.
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
If I understand correctly...have you tried this???
<table cellpadding="0px" cellspacing="0px">
Make sure you set margin: 0px in the body tag
How do I print my voice mail?
|
|
|
|
|
Hockey wrote:
Make sure you set margin: 0px in the body tag
leftmargin
There is nothing new under the sun, But there are lots of old things we don't know. - Ambrose Bierce
|
|
|
|
|
No I meant margin: 0px but I forgot the style="margin: 0px"
My bad...
How do I print my voice mail?
|
|
|
|
|
Hockey wrote:
How do I print my voice mail?
Few s/w available on the internet, that can convery aduio to text... Use them
There is nothing new under the sun, But there are lots of old things we don't know. - Ambrose Bierce
|
|
|
|
|
I really gotta change that sig of mine...it's actually meant to be a joke, or atleast it was 5 or so years ago...but I guess the technology esixts now to do it, so it's lost it's humor.
Cheers
How do I print my voice mail?
|
|
|
|
|
Does anybody know of a GOOD image editing component for webpages? I need at least the following functionality:
Pasting
Resizing
Cropping
Saving/uploading (to server)
.asp/.aspx supported
Other bonuses might include adding caption bubbles to the images, but is not critical.
Thanks
|
|
|
|
|
Hi
check :
http://www.aspjpeg.com/
http://www.aspjpeg.com/manual.html
you can download a trial version.
|
|
|
|
|
Hi,
I have been asked by our clients to create a customer feedback form which will be contained and distributed in an email. Once this form is submitted it will generate a reply email containing the form responses.
It's not something myself or any of my collegues have done before in ASP, so I'd like to know if it's possible first.
At the moment I have a test ASP script which sends a HTML form via email. The form action is set to post to another ASP script which will build a table of results and send back to our clients.
Thanks in advance.
|
|
|
|
|
I have used dreamweaver MX to design website. I have used templates to manipulate pages.
Now, I am goin' to change some html to asp.net ... so have decided to use Visual Studio.net.
Can anyone give me a good suggestion to bring that site to develop in visual studio and still use dreamweaver to design site.. using templates.
Thanks.
|
|
|
|
|
Is anyone can give an example of the website where comboboxes and/or checkboxes made in color? Not just thre background color, border in color as well. Your help is appreciated!
Nick
|
|
|
|
|
|
Thank you Tomas,
Great information!
Anything like that on combobboxwes?
Do you know any website where colored checkbox is implemented?
Thank you.
Nick
|
|
|
|
|
hii,
i create a datagrid and there is a hyperlink column which is related to a database i want to get the index of the row which the user selected in the datagrid
and send more than one query string with the datanavigateformatstring property of the hyperlink column.
Eng.Nashwa
|
|
|
|
|
Hi all,
I have a gif image on a html page, the gif contains multiple frames (similar to avi).
I hope different frames can link to different pages.
that is:
when user clicks first frame, popup a page related to first frame.
when user click second frame, popup a page related to second frame.
and so on.
is this possible?
if yes, how to implement the task?
thx
includeh10
|
|
|
|
|
No, not possible.
You could maybe try using a timer which fires at the same interval as your animated GIF, but that wouldn't work under all circumstances and probably would become unsynch'd quite easily.
Your best to use static JPEG's or PNG's and just change the source attribute every x number of seconds and at the same time change the href for the anchor encompassing it.
Something like:
var link_array = new Array();
var idx_array = 0;
link_array[0] = "http://www.somedomain.com";
link_array[1] = "http://www.someotherdomain.com";
link_array[2] = "http://www.anotherdomain.com";
function rotBanner()
{
document.getElementById('banner_link').href = link_array[idx_array];
document.getElementById('banner_image').src = "banners/banner"+(idx_array+1)+".jpg";
idx_array++;
setTimeout("rotBanner()", 5000);
}
<a target="_blank" href="http://www.defaultdomain.com" id="banner_link">
<img src="banners/banner1.jpg" id="banner_image" onload"rotBanner()" />
</a>
Cheers
How do I print my voice mail?
|
|
|
|
|
We know for sure that our problem come from the call to submit. It works fine on most of the computer, but for some there nothing to do. Like the submit do nothing. Please help us.
<br />
script = "javascript:"<br />
script &= "window.dialogArguments.hidEdited.value='illustration';"<br />
script &= "window.dialogArguments.hidEditedParam1.value='" & Request.QueryString("sectionsorpages") & "';"<br />
script &= "window.dialogArguments.hidEditedParam2.value='" & Request.QueryString("p") & "';"<br />
script &= "window.dialogArguments.hidEditedParam3.value='" & CType(e.Item.FindControl("imgPhoto"), ImageButton).CommandArgument.Replace("\", "\\") & "';"<br />
script &= "window.dialogArguments.submit();"<br />
script &= "window.close();"<br />
script &= "return false;" <br />
CType(e.Item.FindControl("imgPhoto"), ImageButton).Attributes.Add("onclick", script)<br />
<br />
<br />
I am a javascript newbie
|
|
|
|
|
First thing I noticed and have to question is your choice of operators when concatenating strings.
&=
I may be wrong, but in most languages this is not used to concatenate strings, but rather it's a bitwise AND assignment.
Try using +=
This looks like ASP or something so it may very well use different operators for concat.
Assuming you used the right operator, the first line...
Why does it have javascript ???
I would suggest either getting rid of it completely or adding a semi colon and see what happens.
javascript would become javascript:
It appears as though your code is being directly assigned to an event handler, so I can't see any reason why a javascript: protocol would be needed.
HTH
Cheers
How do I print my voice mail?
|
|
|
|
|
I dont know why the : doesnt show but its really here in our application.
For the rest it's because the onClick must be assigned at run-time because the controls are not here until then (we are binding image to a Datalist).
Anyway we think we have find a way to resolve our problem. It appears it was an update with JScript or something similar.
I am a newbie
|
|
|
|
|
Hi,
I am trying to download a file from server using WebRequest object. The following is my algorithm.
1. Create a WebRequest object
WebRequest req = WebRequest.Create(<url>);
2. Set the method to the request object
req.Method = "GET";
3. Set the current user credentials
req.Credentials = CredentialCache.DefaultCredentials;
4. Get the response
WebResponse res = req.GetResponse();
5. Get the response stream
Stream inStream - res.GetResponseStream();
6. Save the stream to the local file.
GetReponse takes lot of time and I want to optimize the same. Can anyone suggest me what settings I can make so that I can reduce the time. I will be downloading the files from within the intranet.
Thanks for any suggestions
V. Srinivas
|
|
|
|