Click here to Skip to main content
15,887,344 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generaldropdownlist loses its style on other control postback event. Pin
mohd imran abdul aziz25-Apr-08 18:47
mohd imran abdul aziz25-Apr-08 18:47 
Generaldynamic bind GridView Pin
jason_mf25-Apr-08 16:14
jason_mf25-Apr-08 16:14 
GeneralRe: dynamic bind GridView Pin
vishalcodeproj25-Apr-08 19:30
vishalcodeproj25-Apr-08 19:30 
GeneralRe: dynamic bind GridView Pin
jason_mf25-Apr-08 20:31
jason_mf25-Apr-08 20:31 
AnswerRe: dynamic bind GridView Pin
samMaster25-Apr-08 20:18
samMaster25-Apr-08 20:18 
Generalcreating an output file and manipulating the data in the output file Pin
Programmer9925-Apr-08 12:23
Programmer9925-Apr-08 12:23 
GeneralRe: creating an output file and manipulating the data in the output file Pin
Christian Graus25-Apr-08 20:23
protectorChristian Graus25-Apr-08 20:23 
GeneralSubmit Button and TextBox Pin
Ekjon25-Apr-08 10:19
Ekjon25-Apr-08 10:19 
I am using the regular technique of using a 2nd TextBox on my page so when the user presses Enter key, it automatically invokes the Submit buttons click event - but its not working. I also want to send the focus to the textbox when a link is clicked that displays this whole panel. Here's my code:
<br />
   <asp:Panel ID="pnlSearch" runat="server" CssClass="pnlsearch"><br />
	        <asp:Label ID="lblSearch" runat="server" Text="Station Name:" CssClass="lblsearch"<br />
	            TabIndex="0"></asp:Label><br />
	        <asp:TextBox ID="txtSearch" runat="server" CssClass="txtsearch" Width="190px" TabIndex="1"<br />
	             OnTextChanged="txtSearch_TextChanged"></asp:TextBox><br />
	        <asp:TextBox ID="TextBox1" runat="server" style="visibility:hidden;display:none;" /><br />
	        <asp:Button ID="btnSearch" runat="server" CssClass="btnsearch" Text="Search" Width="79px" <br />
	             TabIndex="2" OnClick="btnSearch_Click" /><br />
	    </asp:Panel><br />
    protected void lnkSearch_Click(object sender, EventArgs e)<br />
    {<br />
        pnlSearch.Visible = !pnlSearch.Visible;<br />
        if (pnlSearch.Visible == true)<br />
        {<br />
            txtSearch.Focus();<br />
        }<br />
    }<br />
    protected void txtSearch_TextChanged(object sender, EventArgs e)<br />
    {<br />
        btnSearch.Focus();<br />
    }<br />


Any help?
Thanks.

Ekjon
GeneralRe: Submit Button and TextBox Pin
AlexeiXX325-Apr-08 14:10
AlexeiXX325-Apr-08 14:10 
GeneralRe: Submit Button and TextBox Pin
Ekjon25-Apr-08 19:02
Ekjon25-Apr-08 19:02 
GeneralRe: Submit Button and TextBox Pin
AlexeiXX326-Apr-08 7:20
AlexeiXX326-Apr-08 7:20 
GeneralRe: Submit Button and TextBox Pin
Ekjon26-Apr-08 8:19
Ekjon26-Apr-08 8:19 
GeneralCreating a Menu with the Menu object Pin
dptalt25-Apr-08 8:40
dptalt25-Apr-08 8:40 
AnswerRe: Creating a Menu with the Menu object Pin
samMaster25-Apr-08 23:44
samMaster25-Apr-08 23:44 
GeneralRe: Creating a Menu with the Menu object Pin
dptalt28-Apr-08 9:19
dptalt28-Apr-08 9:19 
QuestionPersonality Profilling with ASP.NET? Pin
Taurian11025-Apr-08 4:55
Taurian11025-Apr-08 4:55 
AnswerRe: Personality Profilling with ASP.NET? Pin
Krazy Programmer25-Apr-08 6:08
Krazy Programmer25-Apr-08 6:08 
JokeRe: Personality Profilling with ASP.NET? Pin
Taurian11025-Apr-08 9:27
Taurian11025-Apr-08 9:27 
QuestionChanging Date Format Pin
munklefish25-Apr-08 4:40
munklefish25-Apr-08 4:40 
GeneralRe: Changing Date Format Pin
Taurian11025-Apr-08 5:25
Taurian11025-Apr-08 5:25 
GeneralRe: Changing Date Format Pin
Blue_Boy25-Apr-08 9:17
Blue_Boy25-Apr-08 9:17 
GeneralRe: Changing Date Format Pin
munklefish28-Apr-08 0:24
munklefish28-Apr-08 0:24 
GeneralRe: Changing Date Format Pin
Blue_Boy28-Apr-08 0:45
Blue_Boy28-Apr-08 0:45 
GeneralRe: Changing Date Format Pin
munklefish28-Apr-08 0:50
munklefish28-Apr-08 0:50 
GeneralDiv inside another div not sizing correctly in the user control Pin
gottimukkala25-Apr-08 4:14
gottimukkala25-Apr-08 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.