+ Reply to Thread
Results 1 to 6 of 6

Thread: use text box instead of table column

  1. #1
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    471
    Rep Power
    4

    use text box instead of table column

    hi
    below is code in loop displaying data.after submit this data will go to next page.i dont want to use seprate hidden fields for catching this data.what i wanted to do is this data will be in text field .Fields("ProductCode").Value .
    but user dont get to know this is text box.it look alike column which is not editable.
    hope it make some sense.
    Code:
    Response.write  "<TD>" & .Fields("ProductCode").Value & "</TD>"
    Response.write  "<TD >" & .Fields("ProductDesc").Value & "</TD>"
    
    Love is physical attraction and mental destruction

  2. #2
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    can't you just make it a readonly textbox? this way it won't be able to be edited.
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  3. #3
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    471
    Rep Power
    4

    i can . but in a single row a lot of text boxes.design will not look good.i have seen some where they had used some sort of css with text box.so that text box look a like table column.

    hope it make some sense.

    Thank so much mehere.
    Love is physical attraction and mental destruction

  4. #4
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    you could use css ... something like this:
    Code:
    <input type="text" name="txtBox" value="Hello" style="background-color:grey;BORDER:none;">
    
    set the background color to the same color as the page background.
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  5. #5
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    471
    Rep Power
    4

    looking great but now problem is with background color of text box.actually i m using class for alternate row color. like this
    Code:
    Response.write  "<TR class=""listrow" & lCounter Mod 2 & """>"
    Response.write  "<TD><Input type=text value=" & .Fields("ProductCode").Value & " style=""background-color:how to set;BORDER:none;""></TD>"
    
    can u suugest me how to set color at bold part.

    Thanks dear.
    Love is physical attraction and mental destruction

  6. #6
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    471
    Rep Power
    4

    ok gotted now .like this
    Code:
    If(lCounter Mod 2 = 0) Then
    									sTextBoxStyle = "#D7E3ED"
    								Else
    									sTextBoxStyle = "#F0F4F7"
    								End If 
    								Response.write  "<TR class=""listrow" & lCounter Mod 2 & """>"
    								Response.write  "<TD><Input class=""textboxrow" & lCounter Mod 2 & """  type=""text""  value=""" & .Fields("ProductCode").Value & """  name=""txtSuppliersProductCode""" & lCounter &""" style=""background-color:"&sTextBoxStyle&";BORDER:none;""></TD>"
    
    Thank u so much mehere.
    Love is physical attraction and mental destruction

+ Reply to Thread

Similar Threads

  1. Ambiguous column error
    By Rebelle in forum Microsoft SQL Server
    Replies: 1
    Last Post: November 5th, 2008, 11:37 AM
  2. edit with text box
    By guddu in forum JavaScript Programming
    Replies: 10
    Last Post: August 20th, 2008, 12:15 PM
  3. Dynamic dropdown not fit in column
    By guddu in forum ASP Development
    Replies: 6
    Last Post: August 19th, 2008, 01:27 PM
  4. Concatenation of Column Data function
    By AOG123 in forum Access Database Samples
    Replies: 0
    Last Post: March 25th, 2008, 07:53 AM
  5. Concatenation of Column data function....
    By Lauramc in forum SQL Code Samples
    Replies: 0
    Last Post: March 17th, 2008, 01:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO