Click here to Skip to main content
15,905,682 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: convert pointer to a hand Pin
gottimukkala25-Apr-08 21:04
gottimukkala25-Apr-08 21:04 
GeneralRe: convert pointer to a hand Pin
ptvce25-Apr-08 22:00
ptvce25-Apr-08 22:00 
QuestionCrystal Reports pritning problem Pin
Uma Kameswari25-Apr-08 20:25
Uma Kameswari25-Apr-08 20:25 
AnswerRe: Crystal Reports pritning problem Pin
Vasudevan Deepak Kumar30-Apr-08 1:48
Vasudevan Deepak Kumar30-Apr-08 1:48 
GeneralRe: Crystal Reports pritning problem Pin
Uma Kameswari2-May-08 21:27
Uma Kameswari2-May-08 21:27 
Questionwhat is the problem while it browsed in IE 7 with another tab in same window of IE 7 Pin
hiren dave25-Apr-08 20:07
hiren dave25-Apr-08 20:07 
AnswerRe: what is the problem while it browsed in IE 7 with another tab in same window of IE 7 Pin
Vasudevan Deepak Kumar30-Apr-08 1:50
Vasudevan Deepak Kumar30-Apr-08 1:50 
QuestionHow Can I store GridView in database? Pin
vishalcodeproj25-Apr-08 20:04
vishalcodeproj25-Apr-08 20:04 
GeneralRe: How Can I store GridView in database? Pin
N a v a n e e t h26-Apr-08 5:10
N a v a n e e t h26-Apr-08 5:10 
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 
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 
Hi,

I tried both Page.SetFocus(..) and Form.DefaultFocus = ..

They work fine, the problem is: I have a LinkButton that shows and hides the panel. The focus works if the panel is initially visible - then if the link is clicked to hide it, the focus doesn't come back when the panel is visible again.
On the other hand, if the panel is not initially visible - then the focus never works. Here's my code, the first one in the Page Load:
<br />
        if (Page.IsPostBack)<br />
        {<br />
            if (pnlSearch.Visible == true)<br />
            {<br />
                Page.SetFocus(txtSearch);<br />
                //form1.DefaultFocus = "txtSearch";<br />
            }<br />
        }<br />
    protected void lnkSearch_Click(object sender, EventArgs e)<br />
    {<br />
        pnlSearch.Visible = !pnlSearch.Visible;<br />
        if (pnlSearch.Visible == true)<br />
        {<br />
            Page.SetFocus(txtSearch);            <br />
            //form1.DefaultFocus = "txtSearch";<br />
        }<br />
    }

Part of the problem could be - I am using AJAX's UpdatePanel.

I am embarrassed to ask these trivial questions.

Ekjon
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 

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.