I am making an online form (literal form) that needs to have a certain function: when the user enters a 5-digit number, the form should automatically query the MS SQL DB and retrieve information associated to that number and populate other form elements (text boxes, etc.) accordingly.
So say the # was 12345 and in the DB, the record matching 12345 has name=Fred. So, when I enter 12345 into the form textbox, the name text box should be automatically populated with Fred in it.
If this is not easily achievable, I guess a submit button beside the 5-digit number text box can do.
I am still learning my way around ASP.NET and Visual Studio 2005, however I have ample experience with HTML, CSS, JavaScript, C/C++. The ASP.NET app is to be written in C#.
I created an image button called "pic1" with the OnClick feature. When clicked it runs "btnClicked". In the sub "btnClick", how would I get information? One example is to get the button tooltip. I tried this: request.form.item("pic1.tooltip"). That did not work.
I want that when i click on SUBMIT button of my form, all the information of the form should be mailed to particular email ID. How can i add that functionality using .net framework 3.5 & visual studio 2008.
This is a newbie question, and yes I have searched the web and the Help section. How do I display non-Bound information on the forms? Perhaps I should explain a little better.I have a form where I use dropdowns and other items to insert and update fields. These fields work correctly.
I have a <div> tag in html page in asp.net as shown below: <div id="DestAdd" runat="server"></div> The above tag store information like "Jurong West". The following code store the address in its innerHTML: document.getElementById("DestAdd").innerHTML = DestRoadName; I would like to retrieve the information "Jurong West" stored in the <div> tag in code-behind: string retdata = DestAdd.?
in a web page i can fill a form and after submit a was redirected to a confirmation page and there, i must confim and then it's submited.
i'm creating a bot for filling the form but i idn't know how to do it in just one step. this means to send information and confirm withoud waiting for loading confirmation form and then confirm that.
I'm using asp.net - I need to grab live data from a website. Here's an example:
[URL]
That website provides live data share prices. I need code to retrieve the share price from the website and display it in my own page. I know you can get share price widgets online but all I need is a simple way to retrieve the share price values.
Every morning we get a few hundred emails from our various customers servers that tell us how their backup went that previous night. Somebody has to go through these and fill out an excel spread sheet. I would like to automate this, we have our own server running a .NET application so i can schedule something every morning.
There are two main parts. The first is i want to know how to create a table that has customers down the left and dates accross the right, they are called pivot tables in access but not sure how to recreate them in MSSQL and to do it on the fly as i dont want to have to sit there entering 100's of days at a time.
The second is that differnt customers use differnt backup solutions, so i want to write some code that scans a particular mailbox in exchange, looks for emails that have come in in the past 12 hours, look at the from email address and match that to one in the database, then according to the subject line it will be able to identify what type of backup solution it is, e.g. if it says "Backup Exec Job completd Sucessfully" it knows its backup exec and will look for a particular text (completed successfully, completed with exceptions, no media etc) and can insert that, or if its a differnet backup solution then go and look at a specific place in that email for it.
I want to produce a relatively simple webpage which would contain a drop-down list and a button. When the user makes a selection on the drop-down list and clicks the button (or image), the page would query a SQL database and output the results of that query to an iFrame that would be embedded in the lower half of the page. I've managed to figure out the necessary code for populating the drop-down list by using a stored procedure, and I've managed to figure out a way of having the resultset displayed on a second page but I want to now finesse it and get all of the information displayed on a single page.
My development PC crashed, due to a faulty drive, and im sitting up my site on a new pc, (the website runs on a different domain than the one i develop on)
I've copied the data over and im using Visual Studio Express addition 2008.
My problem is this, the site no longer detects who i am and one groups im a member of in the domain. It still works on the "primary" network but not on the development network, even though iv copied it straight over.
Which table does contain information about web parts?
For example: if I minimize web part zone and I again connect to my web application (even after server restart) this web part zone still will be minimized.
I am sending data to a database as the result of a click but if I hit the refresh button, the data is resent. Is there a way to stop the data being resent?
I have an aspx form that is meant to add a new prescription for a doctor system. I've created the database and dataset needed, but the problem is that the doctorID and patientID has to be able to select from the database, not entered in as a plain text. The form look something like this (I did this in DetailsView in MS Visual Studio 2010):
as you can see, only the prescription details needed to be entered in and the doctorID and patientID needed to be selected from the database (in a dropdown list maybe) and it shouldnt allow any text to be entered in. I did the above tables using a DetailsView in Microsoft Visual Studio 2010. However I can't seem to make the doctor and patient ID field be dropdown box which allow me to choose the current doctor and patient in the Doctor and Patient table in the databse. Can anyone tell me how to do it with Design View in Visual Studio?
In my project Online Travel Agency, I want that if my employee add a new package in database then newly added package will be shown on package.aspx page dynamically with new tag, so how can i do it.
I am using two custom validator to validate EMAIL (should not be reused) & a captca image (text).Everything is working fine except that the displayed are not dynamic even though I set the displaystatus as DYNAMIC.
Test:
1. Enter email already registered
2. Enter invalid captcha text
both displays error. fine for now. but again.
1. Enter email NOT registered
2. Enter invalid captcha text
the error message at the email is still displayed as 'the email is arlready registered'. How can I remove the message for the email?
can i get information about the computer that enter my page , like the currently logged user on that computer and the ip address . and if i can get the currently logged user name , isn't that considered as security risk .