problem with get value from textbox after get it value in load page
hi every one
i have problem with my web site
when i get textbox value in load page
and Changed textbox
the page do not take last value . it take value in load page
this is code:Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
TextBox1.Text = "aa"
End SubProtected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
when i press button
message write "aa" while i changed the textbox
please if enyone knowen help me
&nbs...VB.net add textbox values together to get total
Im using visual studio 2005 vb.net. sql express, im a newbie and im basically trying to create a customer calculator. Ive got this code, basically i want to add the integer values of each of my text boxes together and then display them in a textbox called textbox1. I think i have the code write to do the calculation but im stuck on how to get it to display the total in the textbox once ive hit the calculate button, ive tried several ways, the page posts back, i get no errors but nothing in textbox1 toocan you take a look and help me out please.
Thanks and Kind Regards
&...How to get the value of a textbox that has been added to a template field in a gridview. VB.Net
I have a gridview that shows products, description, price. I have added a Buttonfield and a TemplateField that has a Textbox with the id QuantityTextBox.What I am trying to do is get the value of the Quantity TextBox in the RowCommand event of the gridview. I can get the price but need to get the quantity also. To get the price I used
ItemPrice = Server.HtmlDecode(row.Cells(5).Text)
My template field is cell 6 but the above routine does'nt work.
Any help would be greatly appreciated.Dan5150www.5150creations.com
Hiuse this: VB: Protected Sub GridView1_RowCommand(ByVal ...POST GET GET GET GET... WTH?
I'm at a loss to explain this... I have an ASPX page that I can't
always navigate to. When I developed the app (it's Starter Kit
Portal-based), I did it on my LAN and have had no trouble accessing the page.
However, upon deployment, I see the following behavior:
1. POST request goes out looking for MyForm.aspx
2. GET request for MyForm.aspx
3. GET request for MyForm.aspx
X. GET request
Sometimes, the page finally loads. Other times, it just ends up
blank. Many times, it doesn't load at ALL the first POST - I just get a
"The pa...getting value from string (VB .net)
HiJust a quickie (i hope) - i'm trying to get a value from a string but not sure what method to use.Eg Dim myString As String = "(ng) nottingham"How would i get the value between the parentheses - ng? The values are either going to be a single or two characters if this helps?I can think of a work around using myString.IndexOf() but i'm sure there must be a specific function for this problem? thanks
You could loop through the three or four characters, use the Substring method and trim/remove the parens, or you can use regular expressions.Brian"Trust in the Lord a...How do I get the value from this combo box in vb .net...
In asp .net I have it under control however in vb .net its not quite the same. I have a dataadapter that I pop with a ds. bind it to the combobox. Now I'm trying to get the selected value and I'm thinking I have to do a ctype but don't know what the param's are. can someone please help... Here is the code:
myConnection.Open()myDataAdapter = New SqlDataAdapter(strSQL, myConnection)
Dim myDataSet As DataSet = New DataSet()
Dim myDataView As DataView = myDataSet.Tables("ListingStatus").DefaultView
lstStatus.DataSource = myDataView
lstStatus....Get the column value from a DataGrid
Hi,I have a datagrid with 6 columns. I am trying to retrieve the value of a column and pass it to a variable. I am not sure what I doing wrong here since the code I am using is not pulling any value from the column. This is an example of what I am trying to do. Dim column_value As Stringcolumn_value = DataGrid1.Items(0).Cells.Item(4).Text Please correct me if I am wrong. Thanks.
Use a GridView control instea...getting values from script in vb to url in form
This is in masterpage.master.
' run a query here
' assign x and y to values from row returned
This is further down in the master page.
<form runat="server" id="form1">
' how to get x , y from sub in master into that url instead of 2 and 3?
clic...How can I get value from ObjectDataSource in VB script?
I want to get the "Amount_L" in VB script, how should I code?
I have a bit of javasript that writes a value to a text box. The text box is read only.
Textbox code:<input type="text" id="txtColor1" runat="server" readonly="readonly" size="6" />
Code behind:string color1 = txtColor1.Value
Anyo...Getting viewstate value from readonly textbox in .NET2 (VB)
I have been trying to get the scope Identity after inserting a record using an ObjectDataSource.
I can't find what event, or how to get the value that the scope identity returns.
Here is my Sproc.
ALTER PROCEDURE dbo.[YourCompany_LanCustomer_Insert]
...Get the value of a business rule from a model in the repository VB.NET
I open a repository connection, and iterate over its
ChildObjects collection. When I find a repository model, I
drill down on its ChildObjects collection, looking for
business rules, as in the following fragment:
For Each child As PdRMG.BaseObject In CType(parent,
If child.ClassName = "Business Rule" Then
If CType(child, PdRMG.StoredObject).Name = "The one I
am looking for" Then
'Get the Business Rule Value and do something with
My problem is: How do I acces...getting start with vb.net and crystal repots(web form)
I use Crystal Report9 in Visual Studio.NET 2003.....
Example at Northwind database
I want a application that.....a form include a combobox that contain CustomerID.....If I choose one CustomerID and click OK button....a Report will display information about this Customer......I think that must use Paramater.....how to do that ????
(How do I start to coding --please step by step or sample)
please help me !!!
Thank you so much!!!
I have Dropdownlist when I choose the 'month'--> the all data of this field will show
I use this
Private Sub ddlMonth_Sel...