![]() |
|
|
|||||||
![]() |
ASP Net - innertext, javascript, datagrid, database update |
|
|
Thread Tools | Search this Thread |
|
|
#11 |
|
"Lyners" wrote: > Got it Phillip. Now I am playing with the cssClass so it looks like the resr > of the datagrid. One question, How do I make the second textbox so that the > user cannot tab into it? I tried enable = no, but then the data doesn't get > posted back. I have it working the way I want, except for it tabbing into the > read only text box. TabIndex = -1 > > Thanks for everything! You are welcome. Phillip Williams http://www.societopia.net http://www.webswapp.com =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?= |
|
|
|
|
#12 |
|
Posts: n/a
|
"Phillip Williams" wrote:
> > "Lyners" wrote: > > > Got it Phillip. Now I am playing with the cssClass so it looks like the resr > > of the datagrid. One question, How do I make the second textbox so that the > > user cannot tab into it? I tried enable = no, but then the data doesn't get > > posted back. I have it working the way I want, except for it tabbing into the > > read only text box. > > TabIndex = -1 Actually TabIndex would only prevent tabbing in sequence but it would not prevent the user from typing in the textbox. I think that if you want to prevent the user from typing you would have to change (using the same Javascript) the value in a databound cell and create your own viewstate management for this cell by adding an <Input type="hidden" runat=server>. I modified our earlier adventure to look like this: http://www.societopia.net/samples/datagrid_4.aspx Phillip Williams http://www.societopia.net http://www.webswapp.com =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?= |
|
|
|
#13 |
|
Posts: n/a
|
"Phillip Williams" wrote: > "Phillip Williams" wrote: > > > > > "Lyners" wrote: > > > > > Got it Phillip. Now I am playing with the cssClass so it looks like the resr > > > of the datagrid. One question, How do I make the second textbox so that the > > > user cannot tab into it? I tried enable = no, but then the data doesn't get > > > posted back. I have it working the way I want, except for it tabbing into the > > > read only text box. > > > > TabIndex = -1 > > Actually TabIndex would only prevent tabbing in sequence but it would not > prevent the user from typing in the textbox. Ok, on second thought preventing the reader from typing in. I guess my second attempt is just another way of doing it. My apology for responding to myself twice. > I think that if you want to > prevent the user from typing you would have to change (using the same > Javascript) the value in a databound cell and create your own viewstate > management for this cell by adding an <Input type="hidden" runat=server>. > > I modified our earlier adventure to look like this: > http://www.societopia.net/samples/datagrid_4.aspx > > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?= |
|
|
|
#14 |
|
Posts: n/a
|
Thanks Phillip, worked great. It is exactly what I was trying to do.
"Phillip Williams" wrote: > > "Phillip Williams" wrote: > > > "Phillip Williams" wrote: > > > > > > > > "Lyners" wrote: > > > > > > > Got it Phillip. Now I am playing with the cssClass so it looks like the resr > > > > of the datagrid. One question, How do I make the second textbox so that the > > > > user cannot tab into it? I tried enable = no, but then the data doesn't get > > > > posted back. I have it working the way I want, except for it tabbing into the > > > > read only text box. > > > > > > TabIndex = -1 > > > > Actually TabIndex would only prevent tabbing in sequence but it would not > > prevent the user from typing in the textbox. > > Ok, on second thought > preventing the reader from typing in. I guess my second attempt is just > another way of doing it. My apology for responding to myself twice. > > > I think that if you want to > > prevent the user from typing you would have to change (using the same > > Javascript) the value in a databound cell and create your own viewstate > > management for this cell by adding an <Input type="hidden" runat=server>. > > > > I modified our earlier adventure to look like this: > > http://www.societopia.net/samples/datagrid_4.aspx > > > > Phillip Williams > > http://www.societopia.net > > http://www.webswapp.com > > =?Utf-8?B?THluZXJz?= |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Update : Original Prime Time Network Blocks - w/o/c | Porkys1982 | DVD Video | 0 | 12-10-2006 02:28 PM |
| New DVD database website | dvdloc8.com | DVD Video | 2 | 10-19-2004 06:59 AM |
| Re: Question about MS critical updates | John Coode | A+ Certification | 0 | 06-30-2004 06:08 PM |