Hi all
Is it possible to conditionally enable a textbox depending on the value held in a drop-down list? Ideally I want the event to fire (dynamically) as the value in the drop-down list changes (not after submission to the server)
Please can anyone advise me .... ?
Thanks
Greg B
How do I display a simple alert in ASP.NET when the user clicks a button?
Note: I don't want the alert to appear each time a different page is navigated to with forward and back ....
Thanks
Greg B
Please could someone explain why the following code doesn't work ? - I have a workaround but it's over-complicated
If (Not Page.IsPostBack) Then
Me.Button1.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")
End...
Hi
I am trying to conditionally display a label on screen if validation has failed on a form. For instance if a field has not been correctly entered a Summary Validator shows that field as invalid.
I would also like to display a label on the page if the field is invalid. I have tried...
I understand what your saying - In fact, the way to get around this scenario is simply to set Textbox3.text = "" at the beginning of the click event ....
The problem is still that I can't display text in a list fashion as in:
Message 1
Message 2
Message 3 etc,
(because line break...
Eventually with the addition of more textboxes there may be upto 5 or 6 lines displayed .....
Message 1
Message 2
Message 3
Message 4
Message 5
Message 6
If I set it to true I get an unwanted scrollbar ...(Is there any way of removing this?)
Even then the text does not appear as desired ...?
Thanks
Greg B
Public Class WebForm2
Inherits System.Web.UI.Page
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents TextBox2 As System.Web.UI.WebControls.TextBox
Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox
Protected WithEvents...
Hi
I am trying to write some text out to a textfield on an asp.net page.
I would like the text to be displayed in one textfields as follows:
- Message 1
- Message 2
- Message 3
Each string of text should be separated with some sort of line break character I assume. (I will build the string...
Thanks for the advice what I am actually doing is the following:
I am returning a text string eg. "ManagerDropDownList" from my table
I then want to compare this text string with any controls (ID's) on the form to see if a control with a corresponding ID exists - then I will set that...
Hi
I have some code where I read a list of data items from a DataTable. Each of these rows although stored as a string is also a Control on my page. I would therefore like to convert the row.column returned from my loop into a Control that I can set properties on (such as enabled=true) etc...
Hi
The Routine sent in from SHelton is almost there but for some reason VB.net is not recognising:
the following line :
For Each child As Control In ct.Controls
The "child As Control" is underlined in blue - what am I missing ?
Please help
Thanks again
Greg b
Hi all
I am writing an ASP.NET application and I want to be able to set a number of controls (textboxes and dropdown lists etc.) to property "enabled = false"
This is easy enough but at the moment I am doing this the slow way
ie. TestedDateTextBox.Enabled = False
Is...
Thanks Custom24
I have resolved it - you were right - The code that i posted did work OK .....
When I loop through the DataTable to read the data back I had <= instead of < and I was getting an error but as you can see I have amended the offending line !
While vRowCount <...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.