473,626 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple beginner's question

Hi there,

I'm a very experienced C++ developer but a relative newcomer to web
development and a raw neophyte in the ASP.NET arena. I have a very simple
scenario that hopefully someone can help me with. I have a 3rd-party HTML
form with a single (submit) button and a number of (static) hidden fields
(all values hardcoded). The form is pure HTML (no ASP or ASP.NET whatsoever)
and it simply posts its data to a 3rd-party site when the button is clicked
(i.e., the form's "action" attribute is set to the appropriate URL
accordingly). This site then reads its data from the hidden fields on the
form. I now want to re-write this form using ASP.NET but I'll add a single
dropdown list. The form should then get posted back to my own server instead
where I can now set (or dynamically create) these hidden fields based on the
users' selected dropdown value. I then want to post the form back to the
original 3rd-party site just like the original form handled it (but the
hidden fields were now filled in by my server - they're no longer
hardcoded). I can wire up the submit button's event handler in ASP.NET and
check the dropdown list but I'm not sure what code I should be calling to
dynamically create these hidden fields and then post the form to its
original 3rd-party site. Can anyone show me the basic code to get me
started. Thanks very much.
Feb 25 '08 #1
2 1230
It sounds to me like you should find a basic book on ASP.NET before you
attempt to actually write any sites or pages. I am not attempting to insult
you by any means (before I took my first course on ASP.NET, I couldn't do
anything, but I can do most things now), but if what you are trying to do is
as simple as what it sounds like, you need to know how to do the basic
things such this before ASP.NET will be any use to you. Here is my personal
favorite for ASP.NET books, it is example-based and teaches you everything
from the pure basics to almost all features that exist in ASP.NET:

ASP.NET 2.0 Unleashed by Stephen Walther

Almost everything I know either came from this book or experience, and it
gives the code in VB.NET and C# (the C# code is only on the cd). Many people
have recommended this book to me, and it is probably the best book I ever
bought.
--
Nathan Sokalski
nj********@hotm ail.com
http://www.nathansokalski.com/

"Jack" <no_spam@_nospa m.comwrote in message
news:eY******** ******@TK2MSFTN GP06.phx.gbl...
Hi there,

I'm a very experienced C++ developer but a relative newcomer to web
development and a raw neophyte in the ASP.NET arena. I have a very simple
scenario that hopefully someone can help me with. I have a 3rd-party HTML
form with a single (submit) button and a number of (static) hidden fields
(all values hardcoded). The form is pure HTML (no ASP or ASP.NET
whatsoever) and it simply posts its data to a 3rd-party site when the
button is clicked (i.e., the form's "action" attribute is set to the
appropriate URL accordingly). This site then reads its data from the
hidden fields on the form. I now want to re-write this form using ASP.NET
but I'll add a single dropdown list. The form should then get posted back
to my own server instead where I can now set (or dynamically create) these
hidden fields based on the users' selected dropdown value. I then want to
post the form back to the original 3rd-party site just like the original
form handled it (but the hidden fields were now filled in by my server -
they're no longer hardcoded). I can wire up the submit button's event
handler in ASP.NET and check the dropdown list but I'm not sure what code
I should be calling to dynamically create these hidden fields and then
post the form to its original 3rd-party site. Can anyone show me the basic
code to get me started. Thanks very much.

Feb 25 '08 #2
It sounds to me like you should find a basic book on ASP.NET before you
attempt to actually write any sites or pages. I am not attempting to
insult you by any means (before I took my first course on ASP.NET, I
couldn't do anything, but I can do most things now), but if what you are
trying to do is as simple as what it sounds like, you need to know how to
do the basic things such this before ASP.NET will be any use to you. Here
is my personal favorite for ASP.NET books, it is example-based and teaches
you everything from the pure basics to almost all features that exist in
ASP.NET:

ASP.NET 2.0 Unleashed by Stephen Walther

Almost everything I know either came from this book or experience, and it
gives the code in VB.NET and C# (the C# code is only on the cd). Many
people have recommended this book to me, and it is probably the best book
I ever bought.
Thanks for the recommendation. However, I need to fast-track my
understanding so I don't have the time (unfortunately) to wade through a
lengthy book right now. In spite of appearances, my conceptual and
mechanical understanding is already strong-enough to unravel most examples.
A few lines of code is worth a thousand words (and in fact, my site is
already well underway).
Feb 25 '08 #3

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

Similar topics

10
3206
by: martin | last post by:
Hello, I just got the SUN Java IDE. (Netbeans IDE 3.5.1) Very very nice, and I worked myself through the tutorial (about making a colorswitch). Now, When I compile it gives no errors at all. So far so good. But when I want to execute, it askes to "set project main class". The only option it displays is the default project. But the "okay" button won't highlight. I cannot select anything else, nor can I roam directories to select
8
2000
by: Bshealey786 | last post by:
Okay im doing my final project for my first computer science class(its my major, so it will be my first of many), but anyway im a beginner so im not to great with C++ yet. Anyway this is the error msg that im getting: "Error executing cl.exe" this is the code that I have, but I know whats causing it, ill just show you the whole thing first though //file: Quadratic
7
1495
by: Steven | last post by:
Hello, First, let me state that I am trying to learn asp.net, so I am a beginner. Now on to the issue. I have a webform with a single Textbox and a FileSystemWatcher monitoring a directory for OnCreate events. I am trying to change the text in response to an OnCreate event. I would like to change the Forecolor to red, from black. Apparently, this is not as easy to do as in vb.net. I have tried the direct approach in the OnCreate...
1
5135
by: c_beginner | last post by:
yes, this is my how work question. Since I am lack in getting an assistance with my lab work I put this in this advance group. Sorry for the trouble I am making. Write a program to calculate the simple interest. #include<stdio.h> int intrest(int rate,float amount); int main(void) {
3
1890
by: Rangy | last post by:
Hi, I've decided to take the plunge and move from tables to a pure css layout. I still "think" in tables when I do my layouts and I was wondering the following: I have a simple, standard two column layout: header nav content
10
4443
by: Roman Zeilinger | last post by:
Hi I have a beginner question concerning fscanf. First I had a text file which just contained some hex numbers: 0C100012 0C100012 ....
9
2379
by: =?Utf-8?B?S2VsbHk=?= | last post by:
I am from classic asp and learning asp.net. In the past, once I have a recordset retrieved, I can use it wheneve and wherever I want. For example, I know my recordset contains something like rs("firstname"), I can do <%=rs("firstname")%anywhere in the web page. How do we achieve it in asp.net? Sorry for the simple question, but please help.
4
1537
by: a | last post by:
Dear all vb.net developer I want to know the time I need to master vb.net? I'm beginner
2
3519
by: nicholas08 | last post by:
I am new to programming and trying to work on a simple console app. I am making a simple Library Management system where the user/admin can manage members and item. Attaching the menu so it's clear to understand what I am saying. http://i475.photobucket.com/albums/rr116/nicholasCsharp/Untitled.jpg So far I have only looked at Item and Member Management (option 1 and 2) Few question I had: 1. In terms of the design approach I am taking. One...
0
8259
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8637
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8358
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7188
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4195
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.