Click here to Skip to main content
15,909,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
While i clicking particular root path page is loading twice


<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterWithMenu.master" CodeBehind="Pricing.aspx.vb" Inherits="SKM.Pricing" %>
Posted
Comments
Praveen Kumar Upadhyay 5-Jan-15 5:52am    
Which Page is loading twice, Pricing.aspx??
Please show some code of Pricing.aspx.
SathishRam 5-Jan-15 6:12am    
Pricing page ,page load is loading twice
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
LicenseObject = New clsLicense(oUser, ProductID, CustomerID, ProspectID, CustomerLicenseID, ShoppingCartProductID, ShoppingCartID)
End Sub
------------------
Class file is called twice
King Fisher 5-Jan-15 6:19am    
Set AutoEventWireup="true"
SathishRam 5-Jan-15 7:09am    
Set AutoEventWireup="true" not working,i used page this two ways,one is using redirection from another page it loading once,Second directly that page load is loading twice
Praveen Kumar Upadhyay 5-Jan-15 7:19am    
How you are knowing that your page is loading twice, have you set the break point?

1 solution

Remember to check for post backs. Sometimes item on your page can call for post backs without a submit button click. If you are not, use IsPostback to check link
 
Share this answer
 
Comments
SathishRam 5-Jan-15 21:23pm    
Yes ,Im using If Me.IsPostBack Then ,inside postback it firing twice

If Me.IsPostBack Then LicenseObject = New clsLicense(oUser, ProductID, CustomerID, ProspectID, CustomerLicenseID, ShoppingCartProductID, ShoppingCartID) End if ----------- Class file is called twice –

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900