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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gregburningham
  • Order by date
  1. gregburningham

    Dynamic calling of code when SelectedIndexChanged

    Thanks Borvik - Just did that ..... In fact I think I've just sussed it ! You have to set AutoPostback = True Thanks again, Greg B
  2. gregburningham

    Dynamic calling of code when SelectedIndexChanged

    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
  3. gregburningham

    Displaying an Alert Message in ASP.NET

    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
  4. gregburningham

    Displaying message boxes in ASP.NET

    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...
  5. gregburningham

    Checking the Page.isValid property on the form

    Hi - Yeah this is the problem - I'm not sure how to test the status of validation at client side rather than server-side - any ideas? Thanks Greg B
  6. gregburningham

    Checking the Page.isValid property on the form

    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...
  7. gregburningham

    Displaying a text & linebreaks in a textfield

    Thanks this works - shame I can't get rid of the scrollbar - I'll look into this ! Thanks again ! Greg B
  8. gregburningham

    Displaying a text & linebreaks in a textfield

    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...
  9. gregburningham

    Displaying a text & linebreaks in a textfield

    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
  10. gregburningham

    Displaying a text & linebreaks in a textfield

    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
  11. gregburningham

    Displaying a text & linebreaks in a textfield

    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...
  12. gregburningham

    Displaying a text & linebreaks in a textfield

    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...
  13. gregburningham

    Converting type DataRow to Control

    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...
  14. gregburningham

    Converting type DataRow to Control

    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...
  15. gregburningham

    Looping through controls on a form

    THANKS for being patient ! - It works ....!
  16. gregburningham

    Looping through controls on a form

    Thanks for that One more syntax error: "child.Enabled" property is not allowed for some reason ? (The rest is now correct) Greg B
  17. gregburningham

    Looping through controls on a form

    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
  18. gregburningham

    Looping through controls on a form

    Thanks very much for your quick responses - I'll give them a go now ! Greg B
  19. gregburningham

    Looping through controls on a form

    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...
  20. gregburningham

    Populating a DataTable from a DataReader

    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 <...

Part and Inventory Search

Back
Top