/    Sign up×
Community /Pin to ProfileBookmark

plz help me to solve this problem..

Hello dear,

i am developin my project in ASP.Net,

when i select a customer from dropdownList box. based upon that customer i open a web page in Dialog box by using
[B]window.showModalDialog(‘Customer Quotation.aspx’,”,”); [/B] show that customer records.
in this page it i write some code on Page_Load() event(Server Side). in which i pick some records from Database based on some creteria and show that records in page regarding that customer.

there is close button on this page in which i write [B]‘self.close();’[/B]
after close that dialog box when i again select another customer from dropdown box it open the previous page(which i closed) and Page_Load event of ‘Customer Quotation.aspx’ did not fire and records of previous customer show on page.

plz tell me how i will close this DialogBox or [B]‘Customer Quotation.aspx’ [/B] page so that when again open it then it will agein load from server and Page_Load event fire from server side.

waiting for your reply……

Ankush

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FromU2MEDec 07.2005 — Try reloading the page in the Dialog Box, then the data should load again.
Copy linkTweet thisAlerts:
@ankushbindraauthorDec 12.2005 — How i will reload it in Dialog box ie on Which event i'll reload it
Copy linkTweet thisAlerts:
@FromU2MEDec 12.2005 — [CODE]<script language="JavaScript">
window.onload = window.location.reload();
</script>[/CODE]
Copy linkTweet thisAlerts:
@FromU2MEDec 12.2005 — Test this, but I'm not really convinced myself it will solve your problem :S

[CODE]<script language="JavaScript">
window.onload = window.location.reload();
</script>[/CODE]
×

Success!

Help @ankushbindra spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...