Click here to Skip to main content
15,891,529 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionchange language Pin
brettokumar22-Sep-08 4:17
professionalbrettokumar22-Sep-08 4:17 
AnswerRe: change language Pin
Caio Kinzel Filho22-Sep-08 4:29
Caio Kinzel Filho22-Sep-08 4:29 
QuestionTextbox causing strange positioning bug in IE6 Pin
Mel Padden22-Sep-08 3:46
Mel Padden22-Sep-08 3:46 
QuestionThe connection name 'MyConnection' was not found in the applications configuration or the connection string is empty. Pin
enthusiastic47722-Sep-08 3:06
enthusiastic47722-Sep-08 3:06 
Questionasp.net application in mono project Pin
UD(IA)22-Sep-08 3:03
UD(IA)22-Sep-08 3:03 
AnswerRe: asp.net application in mono project Pin
Caio Kinzel Filho22-Sep-08 3:56
Caio Kinzel Filho22-Sep-08 3:56 
GeneralRe: asp.net application in mono project Pin
Krazy Programmer22-Sep-08 19:36
Krazy Programmer22-Sep-08 19:36 
Questionrefresh gridview on parent form after modal child form closed [modified] Pin
johland22-Sep-08 2:36
johland22-Sep-08 2:36 
hi
i've got a gridview on a parent webform. after closing a child form that was opened in modal mode i want the gridview to be refreshed. now i have tried several things that dont work and i dont know why:
1. tried to use: __doPostBack(buttonName,'') in javascript methode but nothing happened.

this is the code i have used:

code behind:

protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
            return;
//btnNewChore:the button that activates the modal dialog
//btnRefresh: the button that shld activate the gridView refreshing
        
btnNewChore.OnClientClick = "javascript:OpenChild( theURLOfTheChildForm, btnRefresh.ID)";
        
    }


 protected void btnRefresh_Click(object sender, EventArgs e)
    {
               gridViewChores.DataBind();
    }


Javascript:

function OpenChild(theURLOfTheChildForm,targetButton) 
    {
    
        var winSettings = "center:yes;resizable:no;dialogHeight:300px"
        var returnValue = window.showModalDialog(URL, "", winSettings );
      
            if (returnValue == null)
            {
              window.alert("NO chore was created!");
            }
            else
            {
             __doPostBack(btnName,'');
            }

2.i've also tried to use
document.all("btnRefresh").click();
instead of __doPostBack but i've got an error :document.all("... not an object etc...

Thank you in advance for your help

yohay

modified on Monday, September 22, 2008 9:12 AM

AnswerRe: refresh gridview on parent form after modal child form closed Pin
ToddHileHoffer22-Sep-08 5:03
ToddHileHoffer22-Sep-08 5:03 
AnswerRe: refresh gridview on parent form after modal child form closed Pin
kenexcelon22-Sep-08 11:56
kenexcelon22-Sep-08 11:56 
Questionread image from the bitmap Pin
dews turner22-Sep-08 1:53
dews turner22-Sep-08 1:53 
AnswerRe: read image from the bitmap Pin
Guffa22-Sep-08 6:10
Guffa22-Sep-08 6:10 
GeneralRe: read image from the bitmap Pin
dews turner24-Sep-08 4:43
dews turner24-Sep-08 4:43 
GeneralRe: read image from the bitmap Pin
Guffa24-Sep-08 13:59
Guffa24-Sep-08 13:59 
GeneralRe: read image from the bitmap Pin
dews turner25-Sep-08 2:26
dews turner25-Sep-08 2:26 
Questiontab control in asp.net ????? Pin
koolprasad200322-Sep-08 1:44
professionalkoolprasad200322-Sep-08 1:44 
AnswerRe: tab control in asp.net ????? Pin
Abhishek Sur22-Sep-08 1:48
professionalAbhishek Sur22-Sep-08 1:48 
QuestionDeployment Issue after Migrating from ASP.Net1.1 to ASP.Net 2.0 [modified] Pin
pashitech22-Sep-08 1:25
pashitech22-Sep-08 1:25 
AnswerRe: Deployment Issue after Migrating from ASP.Net1.1 to ASP.Net 2.0 Pin
vimal_yet23-Sep-08 21:18
vimal_yet23-Sep-08 21:18 
Questionhow to fetch the data from the database for use in client side Pin
jaya8622-Sep-08 1:25
jaya8622-Sep-08 1:25 
AnswerRe: how to fetch the data from the database for use in client side Pin
Caio Kinzel Filho22-Sep-08 4:10
Caio Kinzel Filho22-Sep-08 4:10 
QuestionHost and windows account Pin
mehrdadc4822-Sep-08 0:07
mehrdadc4822-Sep-08 0:07 
AnswerRe: Host and windows account Pin
Ashfield22-Sep-08 4:10
Ashfield22-Sep-08 4:10 
QuestionEncryption Pin
mehrdadc4822-Sep-08 0:03
mehrdadc4822-Sep-08 0:03 
AnswerRe: Encryption Pin
Paddy Boyd22-Sep-08 0:36
Paddy Boyd22-Sep-08 0:36 

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.