try using a datareader...
dim dr as datareader = DA.SelectCommand.ExecuteReader()
while dr.read()
textbox1.text = dr.item(0)
textbox2.text = dr.item(1)
end while
hth,
drew
There is also a great control from metabuilders.com that handles all the work! Check it out ---> http://www.metabuilders.com/Tools/DefaultButtons.aspx
This guy has some great controls and best of all... they're free!
There are many issues that may prevent you from debugging. Make sure that you are a member of the debuggers group. Make sure that you installed IIS before installing vs.net. Also, check to make sure that in the project properties under debugging, that asp.net is checked. Those are just 3...
I'm writing a module for the ibuyspy portal that allows users to enter a pop3 and smtp server, username, and password to check and send email. The problem that I am running into is that when create a loop to retrieve each message in the mailbox it executes the retrieve call too quickly, and...
Thanks for the responses. My page allows the user to select from several payment methods, and I then post the account information to a payment service web page that expects a post. I'm pretty sure that just removing the runat=server and adding 4 forms will get the job done.
Thanks,
Drew
I have a page that has 4 forms that submit to 4 different pages on 4 different web servers. In classic asp, this was easy. You just create 4 forms and point their action to the target pages, but in .net I have no idea how to accomplish this since pages post back to themselves. Anyone dealt...
When I wrote this app, all that I needed to do was open an existing excel spreadsheet and fire a macro that was already created within the spreadsheet. I called oBook.Application.Run("runMacros") which is the macro name for a macro that fires many smaller macros. I would explore...
I've been developing with asp.net using vb.net however I am new to application development. I am going to buy a book tomorrow, but I have a beginners question until I can get the book. I want to open one form and close another. I have tried:
Dim newForm As New form2()...
<script LANGUAGE="JavaScript">
<!--
function confirmSubmit()
{
var agree=confirm("Are you sure you wish to continue?");
if (agree)
return true ;
window.location = "page1.aspx"
else
return false ;
}
// -->
</script>
Here's some javascript that brings up a...
I am using a streamwriter, but it is causing my program to hang, which results in a timeout. This program has been working for months, now it is hanging. Has anyone encountered any problems like this? I get no errors other than a timeout. Please help!
Thanks,
Drew10
I have a usercontrol that has a property called CallingPage that tells me which page my usercontrol is on. The code looks like so:
<cc1:title id="Title1" runat=server CallingPage="0-1" />
The problem I am running into is that when I try to dynamically set the CallingPage...
Thanks,
That's what I figured. I've tried to implement an onkeyup javascript function that checks to see if the window.event.keyCode = 13 (the keyCode for the enter button), and then fire the event I want, but due to time restrictions, I gave up and moved the button further down on my page...
Why not just call one function that executes the sql statement and place the results in a datatable or arraylist and bind the dropdown with the datatable or arraylist as the datasource?
hth,
drew10
I have a login form with 2 textboxes(1 for username, 1 for password) and a submit button. Also on the form, above the login I have an imagebutton. When the user enters their login information and hits enter on the keyboard, the event for the imagebutton is fired, not the submit button. What...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.