Click here to Skip to main content
12,699,883 members (35,820 online)
   

ASP.NET

 
QuestionHow to load an entire page in div? Pin
Ron_The_King11-Nov-12 7:03
memberRon_The_King11-Nov-12 7:03 
AnswerRe: How to load an entire page in div? Pin
babarijaz112-Nov-12 4:23
memberbabarijaz112-Nov-12 4:23 
AnswerRe: How to load an entire page in div? Pin
Sandeep Mewara13-Nov-12 22:43
mvpSandeep Mewara13-Nov-12 22:43 
Questionprinting not working in windows 2003 server from windows service Pin
msrmaddula11-Nov-12 0:41
membermsrmaddula11-Nov-12 0:41 
Questionasp.Net Pin
komara salla10-Nov-12 23:12
memberkomara salla10-Nov-12 23:12 
AnswerRe: asp.Net Pin
Senaid Maksumic11-Nov-12 8:44
memberSenaid Maksumic11-Nov-12 8:44 
AnswerRe: asp.Net Pin
Sandeep Mewara13-Nov-12 22:45
mvpSandeep Mewara13-Nov-12 22:45 
QuestionExecute javascript before page_Load Pin
jojoba201110-Nov-12 20:51
memberjojoba201110-Nov-12 20:51 
Hi world,
My Code is :
I call this page from another Page :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
       
        function setinformation() {

            var oMyObject = window.dialogArguments;
            document.getElementById('<%=GridviewTypeT.ClientID%>').value = oMyObject.GridViewType;
        }
       
        
    </script>

</head>
<body  onload="setinformation();">
    <form id="form1" runat="server" >
    <div>
        <asp:HiddenField ID="GridviewTypeT" runat="server"  />
    </div>
    </form>
</body>
</html>




My Question is that how can i call function setinformation() before Page_Load so in Page Load i can have value in GridviewTypeT Something Like this :

protected void Page_Load(object sender, EventArgs e)
        {
                        
            if (GridviewTypeT.Value == "Ghata")
            {

            }
            else if (GridviewTypeT.Value == "Khadamat")
            {

            }
        }


But now it doesnt have any value and after Page_Load finish then it execute the function setinformation() and will get Value.
So i want the value befor Page_Load.

Thanks in advanced!
AnswerRe: Execute javascript before page_Load Pin
jkirkerx10-Nov-12 20:55
memberjkirkerx10-Nov-12 20:55 
QuestionRe: Execute javascript before page_Load Pin
jojoba201110-Nov-12 21:04
memberjojoba201110-Nov-12 21:04 
AnswerRe: Execute javascript before page_Load Pin
xut244714-Nov-12 21:20
memberxut244714-Nov-12 21:20 
AnswerRe: Execute javascript before page_Load Pin
jkirkerx10-Nov-12 21:12
memberjkirkerx10-Nov-12 21:12 
QuestionRe: Execute javascript before page_Load Pin
jojoba201110-Nov-12 21:21
memberjojoba201110-Nov-12 21:21 
AnswerRe: Execute javascript before page_Load Pin
jkirkerx11-Nov-12 13:08
memberjkirkerx11-Nov-12 13:08 
QuestionRe: Execute javascript before page_Load Pin
jojoba201111-Nov-12 18:24
memberjojoba201111-Nov-12 18:24 
AnswerRe: Execute javascript before page_Load Pin
jkirkerx11-Nov-12 19:28
memberjkirkerx11-Nov-12 19:28 
QuestionLogin control doesn authenticate user after closing/changing database Pin
pier198910-Nov-12 11:02
memberpier198910-Nov-12 11:02 
AnswerRe: Login control doesn authenticate user after closing/changing database Pin
jkirkerx10-Nov-12 21:04
memberjkirkerx10-Nov-12 21:04 
GeneralRe: Login control doesn authenticate user after closing/changing database Pin
pier198910-Nov-12 23:11
memberpier198910-Nov-12 23:11 
GeneralRe: Login control doesn authenticate user after closing/changing database Pin
jkirkerx11-Nov-12 12:32
memberjkirkerx11-Nov-12 12:32 
GeneralRe: Login control doesn authenticate user after closing/changing database Pin
thes@int13-Nov-12 3:14
memberthes@int13-Nov-12 3:14 
GeneralRe: Login control doesn authenticate user after closing/changing database Pin
jkirkerx13-Nov-12 7:57
memberjkirkerx13-Nov-12 7:57 
QuestionIt takes too long to execute a query in aspx page Pin
Abdul Rahman Hamidy9-Nov-12 21:10
memberAbdul Rahman Hamidy9-Nov-12 21:10 
AnswerRe: It takes too long to execute a query in aspx page Pin
jkirkerx10-Nov-12 20:58
memberjkirkerx10-Nov-12 20:58 
GeneralRe: It takes too long to execute a query in aspx page Pin
David Mujica13-Nov-12 4:53
memberDavid Mujica13-Nov-12 4:53 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 23 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid