473,404 Members | 2,213 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,404 software developers and data experts.

Can Classic ASP talk to C/C++?


I have a system written in classic asp and a lot of Javascript. Due to
its performance and security issue, we decided to re-write this big
module. I heard that C/C++ has a better support in performance and
security (relatively) but here comes my questions:

1. Can ASP talk to C/C++? Because from my experience I use C/C++
mainly for application console.

2. If I want to exclude most of the Javascript and use other
programming language instead, can ASP.NET do it? Is there any
compatibility issue between Classic ASP/ASP.NET/Javascript?

Thank you for reading this.

Jun 28 '07 #1
7 2147

<ta********@gmail.comwrote in message
news:11**********************@o61g2000hsh.googlegr oups.com...
>
I have a system written in classic asp and a lot of Javascript. Due to
its performance and security issue, we decided to re-write this big
module. I heard that C/C++ has a better support in performance and
security (relatively) but here comes my questions:

1. Can ASP talk to C/C++? Because from my experience I use C/C++
mainly for application console.
Through a COM interface yes. If you are truely are comfortable with C++
then its viable but only if you're a seasoned C++ developer. Otherwise
avoid this.
2. If I want to exclude most of the Javascript and use other
programming language instead, can ASP.NET do it? Is there any
compatibility issue between Classic ASP/ASP.NET/Javascript?
ASP and ASP.NET are very different things whilst its possible to coexist ASP
with ASP.NET the are significant hurdles to overcome when trying to port a
portion of an existing ASP app to ASP.NET. You could consider a complete
re-write to ASP.NET.

However possibly you are thinking of creating components to protect your IP,
..NET isn't great at that but is better then having all your code in open
script. You can do this with COM Interop layer to allo ASP code you access
..NET built components.

Whats the nature of your performance problems?


>
Thank you for reading this.

Jun 28 '07 #2
Bob Barrows [MVP] wrote:
ta********@gmail.com wrote:
>Thank you Anthony and Bob, I appreciate your opinion. :)

Let me elaborate more about my previous questions. The system that I
was asking is more like an instant note sending system only available
to our website members. The core is written in ASP/Javascript and it
could be included in any of our webpages when it's required for the
development. The security issue is because 50% of it was written in
Javascript, and it's visible when one choose to view source in the
browser, some people begin putting some malicious codes inside the
subject/content and thereby attempting to hack our system.

This sounds as if you are using dynamic sql to handle he user input.
As you are finding out this is a bad idea. You need to implement a
two-phase approach:
1. Validate all user input in server-side code. Do not depend on
client-side validation. If possible, identify malicious input and
kick the maliciouls users out of the system
2. Use parameters instead of dynamic sql

Here are some links about sql injection
Oops

http://mvp.unixwiz.net/techtips/sql-injection.html
http://www.sqlsecurity.com/DesktopDefault.aspx?tabid=23
http://www.nextgenss.com/papers/adva..._injection.pdf
http://www.nextgenss.com/papers/more..._injection.pdf

See here for a better, more secure way to execute your queries by using
parameter markers:
http://groups-beta.google.com/group/...e36562fee7804e

Personally, I prefer using stored procedures
http://groups.google.com/group/micro...fedf4e1efd63a6

And if you are using dynamic sql inside your stored procedure:
http://www.sommarskog.se/dynamic_sql.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jun 29 '07 #3
wrote on 29 jun 2007 in microsoft.public.inetserver.asp.general:
The core is written in ASP/Javascript and it
could be included in any of our webpages when it's required for the
development. The security issue is because 50% of it was written in
Javascript, and it's visible when one choose to view source in the
browser, ....
Despite the warnings given, you are still using the wrong terminology,
using the word "javascript" for "clientside javascript", while most readers
of this NG will understand "ASP/javascript" as "serverside javascript under
ASP".

In the same way, ASP itself being just a platform, the term ASP needs
elaboration on the serverside language used, and ASP does NOT stand for
"ASP vbscript" as such.

Using clientside javascript as part of any security scheme is a wrong
aproach, period. Clientside javascript should only be used for dynamic
features and for giving the user a helping hand on a [perhaps ASP
serverside language rendered] html page.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 29 '07 #4
Sorry for my late reply...

I have checked the schema of my notes table.

There is a primary key clustered on noteid with fillfactor=90 on
primary.
A FK to check if the receiver exists in our member table. on delete
cascade and on update cascade.
Three default constraints indicating note type, create date, and if
this note has been read.
No DB triggers associated with this table.

I wrote a sp "Add_Notes_sp " to insert into data whenever it's been
called for sending notes.
On my asp page, I simply called
conn.execute "Add_Notes_sp " & parameter1 & "," & parameter 2 & ...

If the fundamental problem results from the SQL server and DB schema,
then I would understand why it's no help to re-write in C++. If I took
the right idea - the system should be still slow since I still need to
call DB and sp after the rewrite.

Thank you very much for all your suggestions. I really appreciate
that.
Jul 3 '07 #5
wrote on 03 jul 2007 in microsoft.public.inetserver.asp.general:
Sorry for my late reply...
A reply?

This is usenet and not email,
and if you do not quote,
as is rightly required by Netiquette,
how are we to know what you are going on about?

Even a prompt reply would need some quoting.

I have checked the schema of my notes table.

There is a primary key clustered on noteid with fillfactor=90 on
primary.
A FK to check if the receiver exists in our member table. on delete
cascade and on update cascade.
Three default constraints indicating note type, create date, and if
this note has been read.
No DB triggers associated with this table.

I wrote a sp "Add_Notes_sp " to insert into data whenever it's been
called for sending notes.
On my asp page, I simply called
conn.execute "Add_Notes_sp " & parameter1 & "," & parameter 2 & ...

If the fundamental problem results from the SQL server and DB schema,
then I would understand why it's no help to re-write in C++. If I took
the right idea - the system should be still slow since I still need to
call DB and sp after the rewrite.

Thank you very much for all your suggestions. I really appreciate
that.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 4 '07 #6
Since most of us likely use Usenet clients that maintain the context of
ongoing threads, I'd think quoting to be pretty much a non-issue to all but
the most anal-retentive of us.

Isn't there anything in netiquette about posting to the Usenet for the sole
purpose of making a point about netiquette? If not, I'd call it a miserable
failure on the part of whomever its collective authors are, because posting
something that is 100% admonition and 0% content is perhaps the rudest thing
that happens here.

(To the OP, pay no mind to the 'netiquette police', his views are mostly his
own, and even if any are widely shared, no one else goes out of their way to
promote them.)
-Mark
"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn********************@194.109.133.242...
wrote on 03 jul 2007 in microsoft.public.inetserver.asp.general:
>Sorry for my late reply...

A reply?

This is usenet and not email,
and if you do not quote,
as is rightly required by Netiquette,
how are we to know what you are going on about?

Even a prompt reply would need some quoting.

>I have checked the schema of my notes table.

There is a primary key clustered on noteid with fillfactor=90 on
primary.
A FK to check if the receiver exists in our member table. on delete
cascade and on update cascade.
Three default constraints indicating note type, create date, and if
this note has been read.
No DB triggers associated with this table.

I wrote a sp "Add_Notes_sp " to insert into data whenever it's been
called for sending notes.
On my asp page, I simply called
conn.execute "Add_Notes_sp " & parameter1 & "," & parameter 2 & ...

If the fundamental problem results from the SQL server and DB schema,
then I would understand why it's no help to re-write in C++. If I took
the right idea - the system should be still slow since I still need to
call DB and sp after the rewrite.

Thank you very much for all your suggestions. I really appreciate
that.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 4 '07 #7
Mark J. McGinty wrote on 04 jul 2007 in
microsoft.public.inetserver.asp.general:
Since most of us likely use Usenet clients that maintain the context
of ongoing threads, I'd think quoting to be pretty much a non-issue to
all but the most anal-retentive of us.
Did you do a survey or do you define "most of us"
as the people that likely follow your idea's, Mark?

"anal-retentive of us"

Is this the preferred vocabulary on usenet-as-you-see-it?

Do you hink that an argument should be won
by degrading others with words like that.

If so, I pity you.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 4 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: P. Glassel | last post by:
I'm having problems getting session timeouts to change programmaticlaly under IIS6.0. This is unchanged code that ran as expected under IIS5.0. Anyone else run into this problem? Thx.
6
by: Keith E. | last post by:
Does any one know of resources or can you offer direction on how to use classic ASP as a web service client. I have found all kinds of stuff for the ASP.NET But, I need to be able tap into a...
0
by: obhayes | last post by:
Hi All, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
3
by: Mark | last post by:
Hi From what I understand, you can pass arrays from classic ASP to .NET using interop, but you have to change the type of the.NET parameter to object. This seems to be because classic ASP passes...
4
by: Tony | last post by:
I have a classic ASP application that determines whether a user is logged in by examining a Session Variable, Session("LoginId"). Once logged in there is a link to a new search page (.aspx) this...
5
by: Mark | last post by:
Hi all, I have a .NET webservice which I would like to consume from a classic ASP page. Furthermore, I would like to populate a recordset (if possible) with the data from the returned webservice...
3
by: MartyNg | last post by:
I have been looking online for pointers, and read mixed things. I was hoping if I post direct questions here, I could get some solid answers. I work for a small company with less than 10 web...
11
by: mase | last post by:
I've built a new ASP.NET web app with the CSLA framework. The site runs fine with a small number of users, but once there is any traffic the CPU spikes at 100%. I went through and made many updates...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.