Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0problem i refreshing the parent page when the popup/child page done the server side processing and cproblem i refreshing the parent page when the popup/child page done the server side processing and c
Previous
 
Next
New Post
11/27/2008 7:04 AM
 

 

Hi,
I have one parent page and one popup page.
 The dropdown will show all the available companies.
 
Now when I click the “Add new Company” button the popup window will come . 
 
 
Now here we will put new company details and click the “Save button”.
On clicking the save button this page should do the following.
 
1.store the values in the database.
2.Populate the parent window dropdown with the newly added value.
3.Heighlight the values corresponding to the newly added company.
4. Close itself.
 
What I was trying to do was,
First using javascript in the popup page I was populating the fields in the parent window. and then using server side code I was storing the values in the database.
But I am facing many problems
 Using this approach.
From the parent page javascript I was trying t access the child page code behind variable.
.But not working pproperly
 
 
Can anyone tell me how to write code in the popup window “Save button ”so that it
 
1.firstly  it  stores the newly added company details in the server .
2.Reloads  the parent window so that the newly added company details reflect in the parent.
3.Then closes itself.
 
It is a kind of urgent.
Any comment or suggestion is appritiated.
Thanks in adnvance.
 
New Post
12/15/2008 11:19 AM
 

1: In your popup window, have logic to save all values to DB, then emit script to page when done

 


      public void btnSave_Click(Object sender, EventArgs e)
      {
    // save values to db....

        if (!this.IsStartupScriptRegistered("Startup"))
        {
          // form the script to be registered at client side.
          String scriptString = "<script language=\"JavaScript\">";
          scriptString += "window.parent.__doPostBack('',''); window.close();";
          scriptString += "script>";
          this.RegisterStartupScript("Startup", scriptString);
        }
      }

 

 

 


Eric Garza
EGI Consulting
Dallas, TX
(972) 767-5930
View my profile on LinkedIn

Are you looking for DotNetNuke ModulesDotNetNuke Skins or DotNetNuke Support?

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0problem i refreshing the parent page when the popup/child page done the server side processing and cproblem i refreshing the parent page when the popup/child page done the server side processing and c


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out