Showing posts with label helloi. Show all posts
Showing posts with label helloi. Show all posts

Wednesday, March 28, 2012

text control as hidden field?

hello
I would like to have text control "appear" as hidden on the page. Now the only way to make it invisible is to set its width and height to zero or set special style.
I tried to change the atribute "type" to "hidden" but then i always have both types: "text" and "hidden" even if i run Attributes.Clear() method before i render.
PS. I add the control dynamically in code , not on the design screen.

Regards
Pawel Palasz
pawel.palasz@dotnet.itags.org.echarris.comIf you're talking about the ASP.Net Textbox - - it has a Visible property - - just set it to False or True whenever you'd like, in your code.
Try this one


<asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 94px; POSITION: absolute; TOP: 98px;" runat="server"></asp:TextBox>

And from the code behind simply set the "display" style of the TextBox


TextBox1.Style.Item("display") = "none"

Thursday, March 22, 2012

Text with gaps?How ?

Hello
i have to do a work for english teaching. I have to present a text with gaps. The students fill the gaps (textboxes?) with works an i need to avaliate the ansewers. Any ideas?The html Element creates non breaking space.

Textboxes would be a good idea; you can by using a style to remove the borders, so it would seem part of the text flow.

Some ppl uses a list that you have to order according to the blanks order, other prefer images and drag & drop it in its right location.

I don't know if i was helpful.


just use the <asp:TextBox...> and catch the posted value...

Not sure what the issue is?


My problem is how can i show the text and the textboxes to fill . I need to show one text page with empty textboxes to fill. I want to use a database access with the text and the correct answeres because the user needs to create more problems.

Please checkhttp://www.esab.pt/mediateca/esab/alunos/fichas/ficha.asp?npergunta=1

I did that in asp and now i don't want questions 1,2,3... but i want one text with gaps. Not easy i know...

Maybe it's better to do it in html and save the file name in my database access. After read the html file


blah blah blah <asp:textbox...> blah blah <asp:textbox...> blah blah...

That's all there is to putting a textbox in the middle of a line of text...


Thanks Curt but it seems not so easy because i have do save the exercice in a database access ( i don't write the exercice i'm only the programmer guy). Maybe its more easy to make one html file with a check button and open the html file on my webform (How can i do this i have to think). Please checkhttp://www.rsc-northwest.ac.uk/acl/courseGenieQuestionTypes/page_08.htm


Huh? Not sure I follow...

Are you saying you want to save the QUESTION in the db also, and then insert boxes to let the students fill it in?

You need to take one thing at a time here and not try to post all the issues at once.. work on getting the text to display... then work on using the .AddControl() method, then worry about capturing the inputs...


Sorry Curt
My english not help me a lot... but i liked what i heard from you. AddControl() it's a good idea. Getting text from database (one field)+Addcontrol()+get more text+AddControl()... When i get the text where can i write it? (on a label?)

textbox

hello

I need a text box the enables input numbers from right to left. does any
know of such a control?

yoramo.You can achieve this through css:
Put the following between the <HEAD></HEAD> tags in your html view. ( or use
a style sheet )
<style>
..sample {text-align: right;}
</style
In the designer, assign the textbox's "CssClass" = sample;
You should be good to go.

David Young

"yoramo" <yoramo@.[NOSPAM]hotmail.com> wrote in message
news:OGHAhi17DHA.1596@.TK2MSFTNGP10.phx.gbl...
> hello
> I need a text box the enables input numbers from right to left. does any
> know of such a control?
> yoramo.
thats not what i need.
i need to be able to key in numbers from right to left.
example: "123" should be key in '3','2','1'

"dm_dal" <REMOVE_THIS.dmy75252@.yahoo.com> wrote in message
news:eigBSu17DHA.2416@.TK2MSFTNGP10.phx.gbl...
> You can achieve this through css:
> Put the following between the <HEAD></HEAD> tags in your html view. ( or
use
> a style sheet )
> <style>
> .sample {text-align: right;}
> </style>
> In the designer, assign the textbox's "CssClass" = sample;
> You should be good to go.
> David Young
> "yoramo" <yoramo@.[NOSPAM]hotmail.com> wrote in message
> news:OGHAhi17DHA.1596@.TK2MSFTNGP10.phx.gbl...
> > hello
> > I need a text box the enables input numbers from right to left. does any
> > know of such a control?
> > yoramo.
Ok...you want to reverse the order in which the values are typed in?

Let me chew on that a little and I'll get back with you.

David Young

"yoramo" <yoramo@.[NOSPAM]hotmail.com> wrote in message
news:elwLh217DHA.3380@.tk2msftngp13.phx.gbl...
> thats not what i need.
> i need to be able to key in numbers from right to left.
> example: "123" should be key in '3','2','1'
>
> "dm_dal" <REMOVE_THIS.dmy75252@.yahoo.com> wrote in message
> news:eigBSu17DHA.2416@.TK2MSFTNGP10.phx.gbl...
> > You can achieve this through css:
> > Put the following between the <HEAD></HEAD> tags in your html view. ( or
> use
> > a style sheet )
> > <style>
> > .sample {text-align: right;}
> > </style>
> > In the designer, assign the textbox's "CssClass" = sample;
> > You should be good to go.
> > David Young
> > "yoramo" <yoramo@.[NOSPAM]hotmail.com> wrote in message
> > news:OGHAhi17DHA.1596@.TK2MSFTNGP10.phx.gbl...
> > > hello
> > > > I need a text box the enables input numbers from right to left. does
any
> > > know of such a control?
> > > > yoramo.
> >
You may need to create a custom textbox that does some JavaScript
manipulation on the client side. Handling the key events and adding the new
keystroke to the beginning of the existing string. Not being a guru at
JavaScript I can't give you details, but the concept should hold.

-- Jim --

"yoramo" <yoramo@.[NOSPAM]hotmail.com> wrote in message
news:OGHAhi17DHA.1596@.TK2MSFTNGP10.phx.gbl...
> hello
> I need a text box the enables input numbers from right to left. does any
> know of such a control?
> yoramo.