473,396 Members | 1,942 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,396 software developers and data experts.

IDC script to ASP.NET

Tat
I wonder if somebody can give me a hint on how to convert an IDC script to
asp.net.
I have an asp.net application with one idc script.
I know .Net, but I've never worked with IDC, so bear with me. The server
calls my web application to dump data into database.
That's somewhat like the IDC file looks like:
Datasource: MyDatabase
Username: sa
Password: mypassowrd
SQLStatement:
+ INSERT MyTable
+ (transaction_number, receipt_number)
+ VALUES
+ (%transaction_number%, %receipt_number%)
I also submit to the party that will dump data the password and the user
name and protect this page. How do I
do it in .NET? I use forms authentication (SSL protected login page) for
other pages. I have to submit to the side that will be dumping data login
credentials, domain name, and the page that will execute scripts.
Please assist on how to handle setting the credentials and how to use
asp.net when they call the page on the other side.
Do I have to put the code for inserting values into database on page_load?
How do I grab this values from code-behind? How do I set the username and
pwd?
Thanks


Nov 19 '05 #1
3 3340
Tat,
I developed web applications with IDC and HTX before using ASP. IDC is
very basic, and it would be a good idea to just rewrite those pages. That
being said, in the values clause of that SQL statement, you find
%transaction_number%. That is getting a field from the request object and
the form that submits to this .idc file will have a form field named
transaction_number. i.g. <input type="text" name="transaction_number"/>.
Of course, if you change the previous page to submit to a page like
page.aspx, then you can retrieve this value with
Request["transaction_number"]. You can retrieve these values in Page_Load
or at any other time and make an ADO.NET call to perform this insert SQL
statement. Of course, in your connection, just set your username and
password for the database. Each .idc file also has a template file, .htx
that takes values from the .idc file.

IDC and HTX was really hot as a very early way to develop functional web
apps with IIS on WinNT. A quick google search will unearth several of them:
http://www.google.com/search?sourcei...TF-8&q=idc+htx

Let me know if this helps you.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Tat" <th**************************@hotmail.com> wrote in message
news:7c********************@magma.ca...
I wonder if somebody can give me a hint on how to convert an IDC script to
asp.net.
I have an asp.net application with one idc script.
I know .Net, but I've never worked with IDC, so bear with me. The server
calls my web application to dump data into database.
That's somewhat like the IDC file looks like:
Datasource: MyDatabase
Username: sa
Password: mypassowrd
SQLStatement:
+ INSERT MyTable
+ (transaction_number, receipt_number)
+ VALUES
+ (%transaction_number%, %receipt_number%)
I also submit to the party that will dump data the password and the user
name and protect this page. How do I
do it in .NET? I use forms authentication (SSL protected login page) for
other pages. I have to submit to the side that will be dumping data login
credentials, domain name, and the page that will execute scripts.
Please assist on how to handle setting the credentials and how to use
asp.net when they call the page on the other side.
Do I have to put the code for inserting values into database on page_load?
How do I grab this values from code-behind? How do I set the username and
pwd?
Thanks

Nov 19 '05 #2
Tat
Jeffrey,
Thanks a lot.
How do I go about authentication that I mentioned. I have to submit the
credentials for accessing that file. I can't do the forms authotication,
right? Because it's a software that will be posting to the file. How do I
approach that the file that will replace IDC will have to check credentials
prior to execution of the SQL query.
I have to submit the user name and the password (not for db, for the .aspx
file access).
Thanks,

"Tat" <th**************************@hotmail.com> wrote in message
news:7c********************@magma.ca...
I wonder if somebody can give me a hint on how to convert an IDC script to
asp.net.
I have an asp.net application with one idc script.
I know .Net, but I've never worked with IDC, so bear with me. The server
calls my web application to dump data into database.
That's somewhat like the IDC file looks like:
Datasource: MyDatabase
Username: sa
Password: mypassowrd
SQLStatement:
+ INSERT MyTable
+ (transaction_number, receipt_number)
+ VALUES
+ (%transaction_number%, %receipt_number%)
I also submit to the party that will dump data the password and the user
name and protect this page. How do I
do it in .NET? I use forms authentication (SSL protected login page) for
other pages. I have to submit to the side that will be dumping data login
credentials, domain name, and the page that will execute scripts.
Please assist on how to handle setting the credentials and how to use
asp.net when they call the page on the other side.
Do I have to put the code for inserting values into database on page_load?
How do I grab this values from code-behind? How do I set the username and
pwd?
Thanks

Nov 19 '05 #3
Tat,
You'll have to develop a custom way to authenticate that if you can't
use Windows authentication(if you aren't on a domain). You could use a
password that the caller has to pass to be considered legitimate. In any
case, you'll have to decide that. Forms Authentication uses cookies and is
generally limited to an actual person logging in.

Did I answer your question?

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Tat" <th**************************@hotmail.com> wrote in message
news:Sd********************@magma.ca...
Jeffrey,
Thanks a lot.
How do I go about authentication that I mentioned. I have to submit the
credentials for accessing that file. I can't do the forms authotication,
right? Because it's a software that will be posting to the file. How do I
approach that the file that will replace IDC will have to check credentials prior to execution of the SQL query.
I have to submit the user name and the password (not for db, for the .aspx
file access).
Thanks,

"Tat" <th**************************@hotmail.com> wrote in message
news:7c********************@magma.ca...
I wonder if somebody can give me a hint on how to convert an IDC script to asp.net.
I have an asp.net application with one idc script.
I know .Net, but I've never worked with IDC, so bear with me. The server
calls my web application to dump data into database.
That's somewhat like the IDC file looks like:
Datasource: MyDatabase
Username: sa
Password: mypassowrd
SQLStatement:
+ INSERT MyTable
+ (transaction_number, receipt_number)
+ VALUES
+ (%transaction_number%, %receipt_number%)
I also submit to the party that will dump data the password and the user
name and protect this page. How do I
do it in .NET? I use forms authentication (SSL protected login page) for
other pages. I have to submit to the side that will be dumping data login credentials, domain name, and the page that will execute scripts.
Please assist on how to handle setting the credentials and how to use
asp.net when they call the page on the other side.
Do I have to put the code for inserting values into database on page_load? How do I grab this values from code-behind? How do I set the username and pwd?
Thanks


Nov 19 '05 #4

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

Similar topics

6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
1
by: Allen | last post by:
I am trying to add an additional photo/hyperlink to the company web site (I didn't create it) without any luck. The mouseover feature 'highlights' pics by swapping them with another pic using this...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.