|
Sounds vague - are they not all in one table? Querying with the 'order by' would solve that immediately.
You could also populate a sorted collection with the resultsets and it would automatically do the sorting for you. I know in java there is a Treeset, I'm sure there is an equivalent in .NET...
http://www.c-sharpcorner.com/Code/2002/June/CollectionObgOrdering.asp
--> is a URL you may find useful.
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
I've been hearing a lot of buzz lately about the XQuery language, and how it's supposed to be the next "Big" thing. My question is why? Why learn yet another XML language that, from what I've seen of it, is just as cryptic as XSL, when I can quickly import XML to a .NET DataSet, and run SQL query's against it? It seems to me that XQuery is just going to be one of those buzz words that non-technical people look for when posting technical job requirements.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Jamie Nordmeyer wrote:
Why learn yet another XML language that, from what I've seen of it, is just as cryptic as XSL, when I can quickly import XML to a .NET DataSet, and run SQL query's against it?
Couple of reasons.
You may not want the overhead of having to use a DataSet and the whole SQL parser.
The DataSet is not a public standard as such, so using it locks you down to MS. XQuery at least is an open, public standard.
XQuery is wonderfully suited to XML, as it should be. You can do things with XQuery to an XML file that you cannot do through a DataSet and SQL.
How many versions of SQL do we now have? Quite a lot with each having it's own idiosyncracies. XQuery is a strict standard.
XQuery can be run on the client side with compliant browsers. Can't do that with SQL.
And many more.
Really you should not be comparing XQuery and SQL. They are different tools for different jobs.
And yes, it is a big buzzword, just as XML is. But at the same time it is a lovely query language to work with IMO.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"Winning an argument on the internet is like winning a gold medal at the Special Olympics -- even though you're the champ, you're still a retard." - Kuro5hin.org Wrong but still funny
|
|
|
|
|
Hey, thanks for the reply, Paul. 2 points that you mentioned sealed the deal for me to learn it: 1. The DataSet is not a public standard as such, so using it locks you down to MS. XQuery at least is an open, public standard. 2. XQuery can be run on the client side with compliant browsers. Can't do that with SQL. As for the DataSet being tied down to Microsoft, that should hopefully change soon with MONO. Of course, from what I've seen of it thus far, MONO still has a ways to go before completion.Again, thanks for the pointers.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
I am attempting this function:
IF tellere = "1" AND modelID <> "%HT" THEN mIDe2="error"
I assumed that the "%" would act as a wild card, allowing me to take what the user inputs, look to see if it ends in "HT" and if it does, OK, and if it doesn't, return an error. I was wrong, the "%" doesn't work as a wildcard here. How would I accomplish this?
|
|
|
|
|
Robby wrote:
I assumed that the "%" would act as a wild card,
* Someone correct me if I am wrong but...
I think you are confusing SQL with ASP. As far as I know there is no wildcard for IF statements in ASP.
So in SQL you could do: SELECT * FROM [table] WHERE tellere = 1 AND modelID <> '%HT'
What you could do in ASP though is to use the INSTR func to return whether the specified string is in the var.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"Winning an argument on the internet is like winning a gold medal at the Special Olympics -- even though you're the champ, you're still a retard." - Kuro5hin.org Wrong but still funny
|
|
|
|
|
Using the history object, I can navigate "back" and "forwards". BUT what I'd like to do is just to find the URL of a page in the history and NOT navigate to it. Is it possible please?
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
This violates security policies set by JavaScript. NS will let you have it; however, if requested. With IE, AFAIK you're out of luck when getting URLs more than one deep unless you invisibly track this with fames or something.
In NS...
<script>
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
history.previous[1];
history.previous[2];
...
</script> BTW, you better not use this info for anything malicious!
Jeremy Falcon
Imputek
<nobr>"C# is the answer to a question nobody asked." - Chris Losinger
|
|
|
|
|
Thanks. That's what I thought the answer would be. I just writing some CGI programs, and wanted to cut down on the parameter list. Ahh well.....
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
|
I am developing a Web Image Viewer so that our customers can view images that we have scanned for them from anywhere.
I am trying to access the image (jpeg) files that are stored on another machine on the network from my ISAPI extension but I cannot.
I have shared the Image folder, giving permissions to everyone, and have mapped a drive letter to it on the local machine, so the path to the Images looks like:
V:\Images\Archived\fiename.jpg
I have trapped the System error message, using FormatMessage( )and get "Access Denied".
If I have the Images on the same machine as the Web Server, it works OK e.g. D:\Images\Archived\filename.jpg
Any ideas??? Any help would be greatly appreciated.
Many thanx.
code dope.
|
|
|
|
|
|
thanx...I'll give it a go.
code dope.
|
|
|
|
|
Hi,
I'm writing a ISAPI program for a company project. The project requires that I don't use a database to save the user input. Instead I want to write the user data into a disk file on the server using CFile, is this possible?? I tried using CFile and writing it into a directory on the server that has write permissions, however all I get is a Exception in filecore.h.
Thanks for your help!!
|
|
|
|
|
Hello,
I have a rather nasty problem. I have an aspx page. This page loads an web user control using LoadControl. The control that is loaded also does a loadcontrol to load another control. And then this Control does again a loadcontrol. The Controls contain tables. By using findcontrol I can find the right tablecell to add the control to. On of the controls that is loaded by antoher control contains a checkbox, and when this one gets loaded I get an error saying that I must have a form with runat-server attribute. This is ofcourse present in the aspx page that starts all the dynamic loading.
so, summarized:
I have ControlA, ControlB, and ControlC
My aspx page loads ControlA, ControlA then loads ControlB and finds the right cell to add to the control colletion of that cell. Then ControlB loads ControlC and does also a findControl, but since ControlC has a <asp:checkbox runat="server"/"> the error "Control '_ctl0__ctl0__ctl1__ctl0' of type 'CheckBox' must be placed inside a form tag with runat=server. " occurs.
Is there a solution to this problem?
grtz
Henk
|
|
|
|
|
This is not really a strictly topical question, but this seemed the most appropriate forum to use.
I need a regular expression that would fail if a string:
a) contains white space
b) contains any non-textual character or 0-9 (i.e. not a-b, ê..., etc)
I have figured it out for white space, 0-9, and a-b, but cannot for the life of me figure out the last part. I have read more documentation than most people read books in a month and I just don't get it. How?
Is the only way to use a really long [abcde....êçå...]?
One 18yrs male, red and white, good condition; daily servicing required. £500 collect ono.
|
|
|
|
|
Can't you simply do the following?
[a-zA-Z\xC1-\x259]+ , or whatever range you need? I'm not sure I'm understand the question entirely, but I think this is how you'd do it. Don't know what Regular Expression parser you're using, but Javascript only supports the standard ASCII set (0x00 - 0xFF).
Hope this helped.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Where is that darned :idiot: iocn when you need it?
Thanks for slapping me into gear!
One 18yrs male, red and white, good condition; daily servicing required. £500 collect ono.
|
|
|
|
|
I am currently trying to develop the website design area of my own company. In order to be able to do this realistically I need some good reference sites.
With this in mind I am currently offering a limited time, free web site design service. Go to http://www.salamandersoftware.biz/services/freeweb.htm and fill in the form or send an email detailing your requirements to freeweb@salamandersoftware.biz.
The offer will probably be open for a week or two and I will then review the submissions and choose probably four or five sites to develop. I'm looking for a good mixture, so low-graphics, database-driven, graphical UI, etc. Let me know what you're looking for (possibly with URL of sites you like the look-and-feel of) and I'll see what I can come with
This offer is limited to the initial web site design and implementation and does not include ongoing maintenance or re-design. Submission of a design request does not guarantee acceptance under this offer, though all requests will be reviewed.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
1. Allow the user to use 2 windows of the same screen
at the same time with the same session, what
application issues would crop up and would you handle
it?
2. Allow the user to use 2 windows as above expect
that the screen instances will work off different
sessions
3. How do you programmatically create and delete
sessions?
|
|
|
|
|
1. Allow the user to use 2 windows of the same screen
at the same time with the same session, what
application issues would crop up and would you handle
it?
2. Allow the user to use 2 windows as above expect
that the screen instances will work off different
sessions
3. How do you programmatically create and delete
sessions?
|
|
|
|
|
Is there a function to perform navigation to a different frame?
I am talking about something like "Server.Transfer(...)", but one that also takes as a parameter the target frame.
Thanks
|
|
|
|
|
Has anyone either written the ASP specification in EBNF or knows about someone who has? I would be very grateful if anyone could point me towards any resources regarding this.
With best regards,
Daniel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
I want to catch mouse over event for ASP.NET datagrid.I think I should handle some java code.Is there any suggestions?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Try this one:
<asp:TemplateColumn>
<ItemTemplate>
<span onmouseover="--your_javascript_code--">
--your_content--
</span>
</ItemTemplate>
</asp:TemplateColumn>
Enrico
|
|
|
|