ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a ASP.NET Expert!

Join 307,035 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 2,272 people online right now. Registration is fast and FREE... Join Now!




InputBox

 

InputBox, How come my inputbox don't pop out client side?

johnzeear

26 Jun, 2009 - 07:50 AM
Post #1

New D.I.C Head
*

Joined: 26 May, 2009
Posts: 9

How come my inputbox don't pop out client side? Instead, i pops out server side? Here's my code for the inputbox:

CODE
Password = InputBox("Please Input your Password", "Password Input")


I'm using xampp for publishing the my website to the net, does it have anything to do with the inputbox?

User is offlineProfile CardPM
+Quote Post


Jayman

RE: InputBox

26 Jun, 2009 - 11:01 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,570



Thanked: 237 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Because an InputBox is a Windows Forms control, where as you are trying to create a web application.

You need to use either Javascript or some other type of ASP.NET control to receive input from the user.
User is offlineProfile CardPM
+Quote Post

johnzeear

RE: InputBox

26 Jun, 2009 - 05:26 PM
Post #3

New D.I.C Head
*

Joined: 26 May, 2009
Posts: 9

umm, do you have any idea on how to do that? I mean if it is not too much to ask, a tutorial? biggrin.gif
User is offlineProfile CardPM
+Quote Post

PsychoCoder

RE: InputBox

26 Jun, 2009 - 05:41 PM
Post #4

I Code, Therefore I am
Group Icon

Joined: 26 Jul, 2007
Posts: 14,920



Thanked: 517 times
Dream Kudos: 11525
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
JavaScript Input Box smile.gif
User is offlineProfile CardPM
+Quote Post

johnzeear

RE: InputBox

26 Jun, 2009 - 06:15 PM
Post #5

New D.I.C Head
*

Joined: 26 May, 2009
Posts: 9

thanks, but how do i insert it in vb.net code in asp.net

i have functions all over written in vb.net code so how do i use the javascript in it?
User is offlineProfile CardPM
+Quote Post

johnzeear

RE: InputBox

27 Jun, 2009 - 03:02 AM
Post #6

New D.I.C Head
*

Joined: 26 May, 2009
Posts: 9

Alright, now i got my javascript working, but how do i get the value entered to it? Here's my code:

CODE
myLinkButton1.Attributes.Add("onclick", ("java script:jsInputBox('" & TextBox1.ClientID & "', '") + TextBox1.ClientID & "')")


this is for the javascript to work on vb.net in asp.net

CODE

<script language="javascript" type="text/javascript">
    function jsInputBox()
    {
       var tlink=prompt("Enter Password Here","");
       return(tlink)
    }


and this is the javascript
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 08:39AM

Live ASP.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

ASP.NET Tutorials

Reference Sheets

ASP.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month