Showing posts with label buttons. Show all posts
Showing posts with label buttons. Show all posts

Saturday, March 31, 2012

text box commands...i think

ok, so i have a textbox and 5 buttons, 4 list different things, and one is the search button...

no when i click enter, and i have text in my tetbox, the page loads, but doesnt do anything, yet when i click search the search function runs..

how do i make it so when a user hits enter on there text box, it runs that function...

Thanks, JustinPlace a simple html textbox in your form, make it hidden.

<input type="text" style="display: none;">

This way, pressing enter should submit the form.
but i dont use <form method="post" action="blabla">

Thanks, Justin
You have to have a form on your page if you're going to make the page work.

Text box on same line as Radio Buttons

Using ASP.Net1.0
How can I get "Type of degree" and the following text box on the same line
as the radio buttons for "CollegeCompleted"?
I have tried <div style="float:left">, which works well for me in other
areas, but not in this case.
<HR>
College Name <span style="margin-left:162px;">
City/State <br>
<asp:TextBox id="College" columns = "35" runat=server/>
<asp:TextBox id="CollegeCity" columns = "35" runat=server/>
<br>Last Year Completed
<asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
Runat=server>
<asp:ListItem><font size="2"> 1</asp:ListItem>
<asp:ListItem><font size="2">2</asp:ListItem>
<asp:ListItem><font size="2">3</asp:ListItem>
<asp:ListItem><font size="2">4</asp:ListItem>
<asp:ListItem><font size="2">5</asp:ListItem>
</asp:RadioButtonList>
Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
<HR>On Aug 17, 6:40 pm, "dancer" <dan...@.microsoft.com> wrote:
> Using ASP.Net1.0
> How can I get "Type of degree" and the following text box on the same lin
e
> as the radio buttons for "CollegeCompleted"?
> I have tried <div style="float:left">, which works well for me in other
> areas, but not in this case.
>

> College Name <span style="margin-left:162px;">
> City/State <br>
> <asp:TextBox id="College" columns = "35" runat=server/>
> <asp:TextBox id="CollegeCity" columns = "35" runat=server/>
> <br>Last Year Completed
> <asp:RadioButtonList id="CollegeCompleted" RepeatDirection="horizontal"
> Runat=server>
> <asp:ListItem><font size="2"> 1</asp:ListItem>
> <asp:ListItem><font size="2">2</asp:ListItem>
> <asp:ListItem><font size="2">3</asp:ListItem>
> <asp:ListItem><font size="2">4</asp:ListItem>
> <asp:ListItem><font size="2">5</asp:ListItem>
> </asp:RadioButtonList>
> Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
>

Hi dancer,
You should add RepeatLayout="Flow" to RadioButtonList:
<asp:RadioButtonList id="CollegeCompleted"
RepeatDirection="horizontal"
Runat=server RepeatLayout="Flow">
<asp:ListItem><font size="2"> 1</asp:ListItem>
<asp:ListItem><font size="2">2</asp:ListItem>
<asp:ListItem><font size="2">3</asp:ListItem>
<asp:ListItem><font size="2">4</asp:ListItem>
<asp:ListItem><font size="2">5</asp:ListItem>
</asp:RadioButtonList>
Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
Regards,
Alexander Kleshchevnikov
MCP
www.klalex.com
That worked well. THANK YOU.
"seigo" <seigo.ua@.gmail.com> wrote in message
news:1187365869.355627.265430@.w3g2000hsg.googlegroups.com...
> On Aug 17, 6:40 pm, "dancer" <dan...@.microsoft.com> wrote:
> Hi dancer,
> You should add RepeatLayout="Flow" to RadioButtonList:
> <asp:RadioButtonList id="CollegeCompleted"
> RepeatDirection="horizontal"
> Runat=server RepeatLayout="Flow">
>
> <asp:ListItem><font size="2"> 1</asp:ListItem>
>
> <asp:ListItem><font size="2">2</asp:ListItem>
>
> <asp:ListItem><font size="2">3</asp:ListItem>
>
> <asp:ListItem><font size="2">4</asp:ListItem>
>
> <asp:ListItem><font size="2">5</asp:ListItem>
>
> </asp:RadioButtonList>
>
> Type of Degree: <asp:TextBox id="DegreeCollege" runat=server/>
> Regards,
> Alexander Kleshchevnikov
> MCP
> www.klalex.com
>

Tuesday, March 13, 2012

TextBox and Buttons

Hi!

I have a page with a textbox with a OnTextChange property, and two buttons (save and cancel).

In the OnTextChange method I would like to know which button was clicked (save or cancel), and suggestions how to check for that?

- LasseTake a look at a similarpost made couple of days ago
the method-OnTextChange for adding text into the textbox,how can i get the handle of the button,i cant understand your words(ps:sorry for saying this).
may be it can solve by the js