Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InputBox Function ????

Status
Not open for further replies.

thendrickson

Programmer
Apr 14, 2004
226
US
This is probably pretty dumb, but I have not yet found the fix for my problem

I am developing a web based app using ASP.Net with vb6 code behind.

I want to use the input box function but the input box diplays minimized for some reason (or perhaps behind the web form??)

Basically I have a web form with a number of command buttons

from one of these buttons I want to have the inputbox pop up then process whatever the use enters.
Code:
Dim dteInspect As String

dteInspect = InputBox("Please enter date inspected in format 'dd/mm/yyyy'.", "Input date", "03/06/07")

I then do some validation and change the string to a date and call a SQL procedure.

Works fine except for the input box being minimized.



 
I think I just figured it out.

I do not believe I can use either an Inputbox or a message box with a web app.

I will use plan B.

 
I am developing a web based app using ASP.Net with vb6 code behind.
why would you not use a managed language like VB.Net or C# (or any of the other .net managed languages)?

I want to use the input box function but the input box diplays minimized for some reason (or perhaps behind the web form??)
you cannot use win forms controls in asp.net. popups, modals and the like are client scripting events which requires javascript. there are a variety of client scripting libraries, jquery, prototype, dojo, moo tools.

(or perhaps behind the web form??)
a webform is an abstract concept. it is a template to render html. a webform is not displayed like a winform is with desktop applications.

I would also recommend learning the differences between asp.net and webforms.
asp.net is framework for servicing response & request, that's it. It's a pipeline with multiple extension pionts to tie into to process the request (or reponse) at various points.
webforms is a framework that runs on top of asp.net. all it does is render html.

webforms is not your only choice for rendering html. you can also use frameworks like MSMVC, Monorail, or roll your own (I wouldn't recommend this).

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Thanks Jason. You have been a big help

I am using Visual Studio 2008
This my first web application other than a 5 day training course 2 years ago.

The vb6 was a typo. I have programmed vb6 since 2001. But I am actually using VB.Net for the code behind since my company has chosen that and I have had some experience experimenting with VB.net

I have a tight time factor to complete this application so if any knows of a good code example to create a popup. I would appreciate the link.

Again, thanks.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top