ASP Equivalent Of VB InputBox Function
Mar 4, 2009
VB has a function InputBox() that will prompt the user to enter a single value, then click OK. Is there a parallel functionality in ASP.NET, that will get the browser to pop up some kind of input box to return a single value? If not, how do you recommend I achieve this effect?
View 3 Replies
ADVERTISEMENT
Sep 8, 2011
I don't know if this is the right place to start, but I'm using Visual Basic 2010. I'm doing the IMY Solution. Basically I'm calculating the new hours for each pay. The inputBox function allow users to enter the raise percentage. The problem for raise percentage is how can I set the name constant correctly. It asks to create a named constant for the "Raise percentage: " message.
Here is the code
Option Explicit On
Option Strict On
Option Infer Off
Public Class frmMain
' class level variable to enter percentage
[Code] ......
View 14 Replies
Sep 18, 2010
Is their anyway to have the inputbox function reflect a password character while typing in a value instead of regular characters?
View 16 Replies
Jun 22, 2010
I have an assignment that asks me to:
1. create a button
2. when that button is clicked, an inputBox will appear to ask the user how many words they will enter.
3. then display an inputBox for each word.
For example, when the first inputBox appears, I enter "3" (meaning that I will enter 3 words).Then there should be 3 more inputBox (each inputBox allows me to enter only 1 word)After I enter the third word, there will be no more inputBox.How can we FLAG (stop) the inputBox, or let the inputBox know when to stop showing up?
View 1 Replies
Jul 23, 2009
I have VBA as a namespace in the vb6 code and i would like to know if there is a way of making .net know what there is, is there a specific application namespace? I have been guessing but haven't had any luck (the beauty of the help boxes, if only i knew more of the language)
If you're not living on the edge, you're taking up too much room
View 1 Replies
Jun 22, 2010
Tell vb.net equivalent of following method:
CODE:
Which on build in visual studio 2005 gives an error.
View 2 Replies
Apr 3, 2010
In Access if a query were to compute the sum of different fields where there is a likelihood of one or more fields being NULL, you use something like NZ. Is there any equivalent Function for handling NULLs in VB .NET?
I'm use the code below to retrieve the SUM of the column "BudgetAmt" from my DB but get InvalidCast Exception was unhandled error because the BudgetAmt and/or AllocationPersonnel holds no data:
Dim strSbCode As String = cboSubSubOrg.SelectedValue.ToString
Dim budgetYr As Integer = CInt(cboBudgetYr.Text)
personBudget = CDec(transDetailsDT.Compute("SUM(BudgetAmt)", "FundSource = '02101' AND DataSource = 3" _
[Code].....
View 6 Replies
Jun 1, 2010
I'd like to know if something like this pseudo code:
myVar = "functionName"
call someObject.(myVar evaluation)
which would then be equivalent to:
call someObject.functionName
is possible in VB. I know this is done in some other languages using a GetProperty method.
View 1 Replies
Nov 17, 2009
What is the C# equivalent function of IsNumeric() in VB.. If possible include an example.
View 4 Replies
Aug 22, 2010
im trying to port a small bit of code from c to vb.i dont know if this is c# or objective c or what.anyway, a line of the source i need to port is
for x = 1 to 31
a$ = LTrim(Str$(x))
i know what to do for the first line, but the second line doesnt make sense to me. what is LTrim supposed to do to x? also, what is the equivalent function for LTrim?
View 3 Replies
May 10, 2011
What is the C# equivalent of this VB code?
Private Declare Auto Function InternetSetOption Lib "wininet.dll" (ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As IntPtr, ByVal lpdwBufferLength As Integer) As Boolean
View 1 Replies
May 24, 2011
Does VB.NET have a function to get the quotient like you can in excel.
Quotient(12, 6)
View 3 Replies
May 27, 2010
tell vb.net equivalent of following method:
C# Syntax
public class RecentPosts : Control
{
[code].....
View 3 Replies
May 9, 2009
As a non .net programmer I'm looking for the .net equivalent of the old vb function left(string, length). It was lazy in that it worked for any length string. As expected, left("foobar", 3) = "foo" while, most helpfully, left("f", 3) = "f".
In .net string.Substring(index, length) throws exceptions for everything out of range. In Java I always had the Apache-Commons lang.StringUtils handy. In Google I don't get very far searching for string functions.
Edit:@Noldorin - My first encounter, although it took me several seconds to do the same in c#:
[Code]...
Note the static class and method as well as the this keyword. Yes, they are as simple to invoke as "foobar".Left(3). See also c# extensions on msdn.
View 6 Replies
Jun 18, 2012
what is the equivalent of Access DMin and DMax function in VB.net?
View 1 Replies
Jan 23, 2010
In cell A1 of Sheet2 I have the following text [code]how to I get VB to recognize that the 4<sup>th</sup> character of the string has character code 63?
View 3 Replies
Aug 31, 2009
I have an Excel VBA function that takes a number of optional parameters, including an optional Range:
Function DazBeta(A As Range, Z As Range, _
B As Integer, _
Optional Freq As Integer = 1, _
Optional c As Double = 0, _
Optional r As Range, _
Optional Pct As Boolean = True, _
Optional Label As Integer = 1)
I am translating to VB.NET, and it's the optional Range that is giving me grief because VB.NET does allow optional Ranges. Or rather, optional parameters must provide a default value. What is the recommended way to change the VB.NET function signature so that the code is callable from an Excel cell as a UDF? (The VB.NET implements a UDF, the assembly is registered as a COM server, and the Excel spreadsheet is told of this server and type library, allowing the VB.NET code to be called from an Excel spreadsheet cell.) I have other compilation problems, so I have not been able to explore this. I am thinking that accepting an optional Object (default value Nothing) might work and then I could cast the Object to a Range. Alternatively, if there were a default value that could be specified with an optional Range, that would work, too.
View 1 Replies
May 23, 2012
This question is similar to How to emulate MySQLs utf8_general_ci collation in PHP string comparisons but I want the function for vb.net rather than PhP.Recently I make a lot of supposedly unique key.Some of the keys are equivalent under UTF8 unicode collation.For example, look at these 2 key:
byers-street-bistro_38.15-79.07
byers-street-bistro_38.15-79.07
If I paste that into front page, and look at the source code you'll see
byers-street-bistro__38.15_-79.07
byers-street-bistro__38.15_-79.07
Note: In stack overflow they still look different.I know it's not the same. I guess even in stack exchange it doesn't show. Say I have 1 million such records and I want to test whether 2 string WILL be declared the same by MySQL UTF8 collation. I want to know that before uploading. How do I do that.So vb.net think that those are different keys. When we created mysql query and upload that to database, the database complain it's the same key. Just one complain and the upload of 1 million databases will be stuck.We don't even know what the hell is ? Where can we look that up anyway?Anyway, I want a function that when given 2 strings will tell me whether they will count as the same or not.If possible we want a function that convert strings into their most "standard" form.For example, seems to encode nothing and the function would recoqnize all those nothing character and eliminate that.Is there such thing?So far this is what I do. I need something more comprehensive.
[code]...
View 2 Replies
Mar 9, 2011
Quick question on the InputBox. I am just learning this, what is the code to "read" commands that are placed from the Inputbox? I can do this in the command line: System.Console.Writeline(), System.console.Readline()
I just would like to know how read the line from the inputbox. Also when I debug my script do I -always- need to have the command prompt in the background?
View 1 Replies
Mar 22, 2012
I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.
So far I have this --
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
[CODE[...
View 14 Replies
Jan 31, 2011
I want to execute the code that is passed as a string to my function, the code will be passed at runtime. This is an example code that may be passed as a string to my function. p is a dataset, which is declared and has some values, this code is executed in a asp.net page
p.Tables(0).Rows(0)("disp_status") = "Approved by CEO";
p.Tables(0).Rows(0)("status") = "Approved";
Session("fnc") = "generate po";
[Code]...
View 1 Replies
Mar 3, 2010
Heres my code under the console application[code]...
How do I keep the inputbox up until the user guesses the right answer?
View 1 Replies
May 22, 2010
i'm making a multi-line text box, i need somone to add input in a InputBox, and it to write it to a setting (My.settings) but, i need each input to start with a new line, i've tried chr(10) + chr(13), but nothing works!
View 3 Replies
Mar 20, 2009
[code]......If someone leaves the txt2 empty.... and they click the button how can I pull up another inputbox like for <= 0?
View 3 Replies
Nov 5, 2010
How do you make an Inputbox without a title?
I know you can do it this way:
inputbox("Please answer a question", " ", "")
This way you put a space in the Title property.
But is there another way to do this without putting a space in the Title property?
Maybe there is an inputbox without a title in vb.net?
View 2 Replies
Mar 19, 2010
Heres my code so far:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code].....
View 2 Replies
Jul 30, 2011
I'm making a key mapper in VB 2010, trying to capture keys pressed in the input box (tab, escape, backspace, space, caps, shift, ctrl, mwheelup, mwheeldown etc... non-alphanumeric keys).
View 1 Replies
Feb 22, 2009
how can i check if ok was clicked in a inputbox? works fine with msgbox:
Dim Confirm = MsgBox("Are you sure?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Action Confirmation")
If Confirm = MsgBoxResult.Yes Then
'code
End If
but it returns an error with inputbox Conversion from string "" to type 'Double' is not valid.
View 2 Replies
Jun 13, 2011
I have a problem with inserting a multiple selection option into my Inputbox.
IDEA: First the user chooses an excel file which he wants to open and then the sheet he wants to be read.
I can manage everything else except making the sheet selection a multiple option one.
At the moment the name of the wanted Excel sheet is typed into the text field in the inputbox. But I want the textfield to be a dropdownlist which would be populated with this:
With ComboBox1
For i As Integer = 1 To XL_WB.Worksheets.Count
Dim nimet As Excel.Worksheet = XL_WB.Worksheets(i)
[Code]....
how to create an Inputbox with Textfield --> ComboBox ??
View 6 Replies
Feb 17, 2010
I'm playing around with the Select Case structure and have the following code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim colour As String = InputBox("Please enter the name of a colour.", "Colours")
[code].....
View 2 Replies