Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - innertext, javascript, datagrid, database update

 
Thread Tools Search this Thread
Old 08-22-2005, 11:29 PM   #11
Default RE: innertext, javascript, datagrid, database update



"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==?=
  Reply With Quote
Old 08-23-2005, 08:57 AM   #12
=?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
 
Posts: n/a
Default RE: innertext, javascript, datagrid, database update
"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==?=
  Reply With Quote
Old 08-23-2005, 10:38 AM   #13
=?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
 
Posts: n/a
Default RE: innertext, javascript, datagrid, database update

"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 ... A readonly=true textbox would do just fine in
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==?=
  Reply With Quote
Old 08-23-2005, 02:17 PM   #14
=?Utf-8?B?THluZXJz?=
 
Posts: n/a
Default RE: innertext, javascript, datagrid, database update
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 ... A readonly=true textbox would do just fine in
> 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?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46