That's exactly how you should do it, you can have a class member dataset that you keep within the scope of your form. It looks like your dsStockCode is already a member of your page, right?
End-users do not need all that you listed, read the following:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/vsredistdeploy.asp
http://www.microsoft.com/downloads/details.aspx?familyid=262d25e3-f589-4842-8157-034d1e7cf3a3&displaylang=en
http://support.microsoft.com/default.aspx?scid=kb;en-us;324733
Don't use Request.Form to retreive values from a previous page, create properties or use the querystring.....here's a sample http://www.xtremedotnettalk.com/showthread.php?t=78434
Here are a few parameters...
toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400, top=100,left=100
get a second line with the backslash and n ie...
"First line\nSecond line"
The reason your page is disappearing is that it's rendering the client message then doing a postback to the server. Also if you want to ask the user for confirmation...
var name = confirm("Press a button")
if (name == true)
document.write("You pressed OK")
else
document.write("You pressed Cancel")
You can place a Reset button on the form BUT the problem with that is if you change a textbox's value during postback the reset will consider that new value as the default value. ie...
First time you load a page....
text1.Text = ""
On postback you cahnge the value because of some condition on the server...
text1.Text = "Hello"
Clicking the Reset button now will set text1's value to "Hello"
Long story short, use tate's method above.
As I stated in my PM, I understand that your intent is not to be malicious in any way but we cannot continue this conversation in public.
If someone wants to provide help to Arch4ngel then send him a PM. http://www.xtremedotnettalk.com/private.php?do=newpm&userid=34166
Thank you.
The linkButton has server events and the hyperlink does not. You need to use Javascript for the popup window eitherway so it will be done on the client.
The way to do it is add an OnClick to the control (hyperlink) to use window.open('myPage.aspx')
Some JS samples http://www.w3schools.com/js/tryit.asp?filename=tryjs_placenewwindow
and
http://www.w3schools.com/js/js_examples.asp