Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8079519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:07:39+00:00 2026-06-05T16:07:39+00:00

i have a question ( i am learning VB) is there is a way

  • 0

i have a question ( i am learning VB) is there is a way in vb.net to make the Me.LoadComplete loads after the client side , i develop this simple code to make it easy to understand my question

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
 Handles    Me.LoadComplete
    MsgBox(myhiddenField.Value)
End Sub

Client

 </script>
<title></title>
<script type="text/javascript">
    $(document).ready(function() {
           $("#<%=myhiddenField.ClientID%>").val('this is the value ') ;
    });

</script>

<form id="form1" runat="server">
<div>
    <asp:LinkButton ID="myLink" runat="server"
      PostBackUrl="~/Default.aspx?value=1" >
      MyLink </asp:LinkButton>

    <asp:HiddenField ID="myhiddenField" runat="server"/>

</div>
</form>

when the page loads , the MsgBox will be empty but when you click the link button the MsgBox has the value you set in the javascript , so i assume that the page_load function gets excuted first
the question is how can i load the client content before the page_load ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:07:41+00:00Added an answer on June 5, 2026 at 4:07 pm

    The ASP.NET Lifecycle says no because content isn’t pushed to the browser until Page_Render, which happens after Page_Load.

    You could try doing a bunch of work in Page_Init, and use Response.Flush() to force the server to send content to the browser, but

    • You’d only be pushing the content created already, so it wouldn’t allow you to push the WHOLE page to the browser before Page_Load
    • I’m not sure it would work
    • Even if it did, there’d be side-effects. For example, you’d probably need to manage control creation, Viewstate value application, etc.

    Even if it is possible in any way, shape, or form (which I doubt) – It would be an interesting experiment, but I wouldn’t recommend designing a live app around the idea. The Page Lifecycle is something every ASP.NET developer is (or should be) familiar with, and doing goofy things like that just make it harder for maintenance programmers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning Servlets/JSP/MVC and have a question about architecting a simple application. I
I have a quick question. I am learning how to make a registration form
Start to learning Cocos2d and have a question. With moving of the sprite I
I am learning JPA and have one question: In which situations we need more
I am learning C++ and I have a question. I made a class in
I'm learning C in ansi c and I have a question. I what to
I am learning C++ and have got a question that I cannot find the
im currently learning stacks in java and have a quick question. what will the
I have been learning the Definitive Guide of JavaScript.i got a question about the
i am learning Java at the moment and have the following question: i am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.