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 TouchToneTommy 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: olypost
  • Content: Threads
  • Order by date
  1. olypost

    Dropdownlist - Number of rows displayed

    In ASP 1.1, I have a dropdownlist with, say, 30 list items defined. When the dropdown is invoked, only the first 11 list items are displayed, the other 19 items you need to scroll down to select. Is there a way to configure the dropdown so that all 30 list items appear once you press the...
  2. olypost

    Page spills over to next page

    I'm developing a few reports with the Crystal Reports version shipped with Visual Studio 2003. For some reason, when I do a print preview on my report output, it continually shows Page 1 of 2, with Page 2 completely blank, indicating that Page 1 is extending down beyond the page limit. This is...
  3. olypost

    XML Output

    I'm new to sql server and I simply need to get data out of a sql server table into XML format using FOR XML AUTO, ELEMENTS. When I use the query analyzer or enterprise manager, the XML appears as a stream, for example: <Customers><CID>100</CID><CO>Name</CO></Customers><Customers><CID>...
  4. olypost

    CSS Generator?

    Hi, Does anyone know if there's a utility or something in VS that will take an existing html file without any CSS and class ID references at all, and generator all the CSS needed? I have a page that's been in development and I've added style properties to each control individual to see how it...
  5. olypost

    Display set to None doesn't fully work

    I have an html button control that I want to hide based on a certain value. When my page first loads, the display is set to none. Then I do: if (str == "NO") { document.getElementById('gob').style.display = "none"; } else { document.getElementById('gob').style.display = "block"; } The...
  6. olypost

    Rangevalidator - Clearing error text

    I have a rangevalidator on a textbox control that is firing correctly for me. I get my error text to display. What I'd like to do is click on a 'clear field' button that will clear out all textbox entries on the page, and also the error text from the rangevalidator. How do I clear the...
  7. olypost

    Datagrid: slow postback

    I have a datagrid with a column that holds my button columns: update, edit and cancel. I'm able to get them to work, no problem. My problem is, for some reason, when I click any of the 3 linkbuttons, the page momentarily shows a blank rectangle (only for a split second, seems to be a <div> or...
  8. olypost

    Server value in an html control

    Is it possible to call a javascript function in an html control (thru onclick, for example) and passing as a parameter to the javascript a server control dropdownlist value? My html control: <INPUT id="btnDone" onclick="hidedivddl();" type="button" value="Done"> The value I want to pass is a...
  9. olypost

    Server value in an html control

    Is it possible to call a javascript function in an html control (thru onclick, for example) and passing as a parameter to the javascript a server control dropdownlist value? My html control: <INPUT id="btnDone" onclick="hidedivddl();" type="button" value="Done"> The value I want to pass is a...
  10. olypost

    Wrong background color

    I have the following script that is called in a checkbox control in a datagrid (did a attributes.add in the onitemdatabound event to 'assign' it to the checkbox). Here's the javascript: function colorRow(e) { if (!e) e = window.event; var srcEl = e.target || e.srcElement; var curElement =...
  11. olypost

    Datagrid: Can't get onprerender to work

    I have a datagrid w/several controls, one of which is a dropdownlist. I can databind the list, select one and save, no problem. My problem is: When the page loads for the first time, I'd like my dropdownlists to default to the value saved for that particular column for each record shown in...
  12. olypost

    Datagrid: Can't get onprerender to work

    I have a datagrid w/several controls, one of which is a dropdownlist. I can databind the list, select one and save, no problem. My problem is: When the page loads for the first time, I'd like my dropdownlists to default to the value saved for that particular column for each record shown in...
  13. olypost

    Datagrid: Multiple Rows Per Dataset Row

    If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over two datagrid rows so the user doesn't have to scroll horizontally. Essentially, I want to wrap a datagrid row (not text in...
  14. olypost

    Datagrid: Multiple Rows Per Dataset Row

    If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over two datagrid rows so the user doesn't have to scroll horizontally. Essentially, I want to wrap a datagrid row (not text in...
  15. olypost

    Dropdownlist - display different record

    I have a client-side button that I want to call a javascript function via onclick. All I need to do is reset a dropdownlist back to the first record in the list. Tried: document.forms['myform'].elements['mydropdownlist'].selectedIndex = 0; and tried...
  16. olypost

    Datareader: Can't get HASROWS to work

    I need to query a sql server table, and if the query returns no rows, then submit a second query. The only column returns is a binary value, datatype of ntext. Dim conn As String = "my connection string" Dim cnn As New SqlConnection(conn) Dim cmd As New SqlCommand("select binary_col from t1...
  17. olypost

    Datagrids: Hiding and displaying in same place

    Hi, I would like to have 5 datagrids on the same page in such a way that they are all placed exactly in the same position on the page. Clicking a tab button would display the first datagrid, a second tab button the second datagrid, etc. (ie., show only one datagrid at a time) How can you...
  18. olypost

    Dataset To Bind On Another Page

    Hi, I have 2 pages. On the first page, I've created and filled a dataset. Now I need to go to a different page to display the contents of the dataset. I can't seem to get the dataset to bind to a datagrid on the 2nd page. (the grid is blank). Tried session variable, didn't work. Seems...
  19. olypost

    Can't show blinking cursor when page opens

    Hi, I have a very simple asp.net web form page with 3 textboxes and a submit button. When I open this page, there is no cursor appearing in any of the 3 textboxes. When I open the page in a browser, I can manually mouse-click into any of the textboxes, and then the cursor appears (but not...
  20. olypost

    Object reference not set to an instance of an object

    Hi, I'm very new to ASP.net. I'm attempting to write a simple web page that connects to sql server to insert a new row after getting a value entered in a textbox field. The problem is, I keep getting the error: "Object reference not set to an instance of an object.", and it points to a...

Part and Inventory Search

Back
Top