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 SkipVought 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: ISPrincess
  • Order by date
  1. ISPrincess

    Datagrid Textbox and Javascript syntax problem

    I agree that we need to stick with a method, my original method WAS to update a textbox within a datagrid row, but not knowing javascript and also beginning to realize my own issues between server/client side, we ended up with the textarea solution you had some up with on the other thread. Once...
  2. ISPrincess

    Cant get color set in HTML Javascript

    I have started a new thread on this http://www.tek-tips.com/viewthread.cfm?qid=968509&page=1 PH I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo. In morse code. -Emo Phillips
  3. ISPrincess

    Datagrid Textbox and Javascript syntax problem

    I can fill in the text box within the grid in javascript with this: document.getElementById('datagrid1_0_isSelected').value = '1'; So how can i do it by NOT hardcoding the index ( i am sure my syntax is incorrect): document.getElementById('datagrid1_' + SRow.itemIndex +...
  4. ISPrincess

    Cant get color set in HTML Javascript

    Let me know if I should start a new thread. If I can set the value of a textbox client-side and read it server-side, then why cant I imbed a textbox in the grid and set that to '1' client-side and the read through the rows of the grid for that value server-side? I think you trying to get that...
  5. ISPrincess

    Cant get color set in HTML Javascript

    This is exactly what I have been trying to do All day today in some fashion or another. What it all came down to was that I did not have runat=Server in my asp:textbox control! This code works! And I am very glad you posted it, I know it will help others as well. I have seen a great deal of...
  6. ISPrincess

    Cant get color set in HTML Javascript

    Thanks! This does seem to be doing something similar to what I would like to do. Is it possible for you to post both the HTML and the Server Side code? PH I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo. In morse code. -Emo Phillips
  7. ISPrincess

    Cant get color set in HTML Javascript

    That is exactly what I need to do: TGreer: If, for example, you want to know WHICH row was selected, in order to do further processing, you'll have to add something to the ViewState for server code to look at. The grid (which will be a multi-select grid) can get quite large and a post-back...
  8. ISPrincess

    Cant get color set in HTML Javascript

    I am sorry - I still cannot "read" the contents of isSelected once the "submit" type button was clicked on the vb.net server code. Help! PH I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo. In morse code. -Emo Phillips
  9. ISPrincess

    Treeview: tree does not appear / data does

    I can barely remember but I know you have to install that Microsoft.web.ui.webcontrols and there was some twist to that. I am sorry I cannot remember the exacts on that but if you search it here or on google I think you can find it. Also, be sure that you add microsoft.web.ui.webcontrols.dll...
  10. ISPrincess

    Cant get color set in HTML Javascript

    I have had and am having an afternoon of meetings so as soon as I can get back on this and have a moment I will definetly visit your site and other sponsors! Since I beleive you have given me all the information I need (and then some!) I give you a star (wish I could give you 10). Again, thank...
  11. ISPrincess

    Cant get color set in HTML Javascript

    I guess the topic name s/b something like Perpetuating Client Side Datagrid Row selections back to Server. But I did not know I would not be able to capture the Rows.backcolor on the server. This is how this whole nightmare started. Per your request I posting simple HTML and vb code-behind...
  12. ISPrincess

    Cant get color set in HTML Javascript

    I am working on it now. I am not sure exactly what this line is doing: var txtID = btnID.substring(0,startPos) + txtName + btnID.substring(startPos+btnName.length,btnID.length); I do not have a button (cmdAddToShip) for user to click on. My onclick event is for the row assigned in the...
  13. ISPrincess

    Cant get color set in HTML Javascript

    tgreer said: I'll code up a little example for you, if that would help. Yes, please!!! Thank you !@ PH I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo. In morse code. -Emo Phillips
  14. ISPrincess

    Cant get color set in HTML Javascript

    I cannot change the table contents because at design time it is a datagrid. At run time it becomes a table. I do see what you are saying though it makes sense. Can you help me just alittle more? 1. Could I do what you suggest in an attribute added in the VB.net code? similar to...
  15. ISPrincess

    Cant get color set in HTML Javascript

    Wow. If it isnt obvious by now, I am self-taught and my teacher is aweful ;) - So I will TRY to answer what you have asked. The datagrid is a the asp.net datagrid control. I just found out a few days ago that it renders itself as <TABLE><TR> etc in the HTML. So I cannot answer Do you give...
  16. ISPrincess

    Cant get color set in HTML Javascript

    I had the highlighting all done server side before but due to postbacks I need to make the highlighting client side. Do you know of anything at all that I can set client side that I can equate back to the VB.Net server side? ie: Can I change the text of a cell in the grid using Javascript...
  17. ISPrincess

    Cant get color set in HTML Javascript

    The javascript works fine, but I cannot get VB.net code to be able to access or do not know what property of the datagrid's row to access in order to find out if the backgroundcolor or backcolor has been set to LightSteelBlue. If I were to change this javascript to set .CurrentStyle instead of...
  18. ISPrincess

    Cant get color set in HTML Javascript

    Very sorry about all that. I am confused as I am sure you can see. Here is the Javascript to highlight a row in Datagrid: function HighlightRow(SRow) { //Begin Function var bg = SRow.style.backgroundColor; SRow.style.backgroundColor = ( bg == '#b0c4de' ) ? '#ffffff' : '#b0c4de'; }...
  19. ISPrincess

    Cant get color set in HTML Javascript

    I have posted this in asp.net forum also, but since it involves Java, I wanted to put it here also. In Server VB: If dgMoves.Items(i).BackColor.Equals(System.Drawing.Color.LightSteelBlue) Then SetAlertMessage("Selected: " & i) End If never equates to TRUE. In server...
  20. ISPrincess

    What is BackColor of Selected Row?

    OK - I think I found the correct way to code this but still have a problem. If dgMoves.Items(i).BackColor.Equals(System.Drawing.Color.LightSteelBlue) Then SetAlertMessage("Selected: " & i) End If never equates to TRUE. In my HTML I have Javascript . (I had to use the...

Part and Inventory Search

Back
Top