What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 18873 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Page Loading Delay in button click ...
Abhisekjani

Page Loading Delay in button click

Replies: 10 | Posted by: Abhisekjani on 7/13/2012 | Category: ASP.NET Forums | Views: 546 | Status: [Member] | Points: 10  


Hi...

while i click on a button the corresponding page not opening its show error,but if i press that button twice its work perfectly, I want to that on first click on it work

Please help me out


Thanks
Abhisek


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Dotnetrajanikanth
Dotnetrajanikanth  
Posted on: 7/13/2012 8:08:31 AM
Level: Starter | Status: [Member] | Points: 25

Can you give the code??

____________
www.flickr.com/photos/psdesigner/

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Dotnetrajanikanth
Dotnetrajanikanth  
Posted on: 7/13/2012 8:09:47 AM
Level: Starter | Status: [Member] | Points: 25

What type of button is it and what property you are using to open another page??/ simple anchor tag or response.redirect code...
please let me know the actual code...

____________
www.flickr.com/photos/psdesigner/

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sekar.C
Sekar.C  
Posted on: 7/13/2012 8:10:21 AM
Level: Starter | Status: [Member] | Points: 25

Hi,
Send your code lines

Regards
Sekar.c

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Ranjeet_8
Ranjeet_8  
Posted on: 7/13/2012 8:53:02 AM
Level: Gold | Status: [Member] | Points: 25


share your code..

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

.Netlearner
.Netlearner  
Posted on: 7/13/2012 9:04:45 AM
Level: Starter | Status: [Member] | Points: 25

Share your code and make the question more clear

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Abhisekjani
Abhisekjani  
Posted on: 7/17/2012 8:51:07 AM
Level: Starter | Status: [Member] | Points: 25

protected void btnSubmit_Click(object sender, EventArgs e)
{
Name = txtName.Text;
Price = txtPrice.Text;
Vendor = txtVendor.Text;
Frequency = txtFreqForReq.Text;
Qty = txtQty.Text;
Description = txtDescription.Text;
Currency = txtCurrency.Text;
FilePath = "";
if (File.HasFile)
{
string image_1 = Path.GetFileName(File.FileName);

if (image_1 == "")
{
FilePath = "";
}
else
{
//Path for Live...Start
File.SaveAs(@"\\10.201.64.139\Files\NewItemRequest\" + image_1);
FilePath = @"\\10.201.64.139\Files\NewItemRequest\" + image_1;
//Path for Live...End


}
}
txtName.Text = "";
txtDescription.Text = "";
txtPrice.Text = "";
txtVendor.Text = "";
txtFreqForReq.Text = "";
txtQty.Text = "";
txtDescription.Text = "";
txtCurrency.Text = "";

}
here is the code some time its works in first click and some time its works in two three click

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Abhisekjani
Abhisekjani  
Posted on: 7/17/2012 8:52:49 AM
Level: Starter | Status: [Member] | Points: 25

This code is working fine in development server , but its creating problem in live server

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Patel28rajendra
Patel28rajendra  
Posted on: 7/18/2012 12:50:50 AM
Level: Starter | Status: [Member] | Points: 25

Hi

I think the problem is in your path.you should give Virtual Path to the file

Regards

R D Patel

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Patel28rajendra
Patel28rajendra  
Posted on: 7/18/2012 12:57:30 AM
Level: Starter | Status: [Member] | Points: 25

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Abhisekjani
Abhisekjani  
Posted on: 7/18/2012 2:11:08 AM
Level: Starter | Status: [Member] | Points: 25

The same code working fine in development server but in live server it creating some problem like some time in single click it works but some time in double click it works. In live server some url(pages) also in single click taking time to open but once we click more than one time its open.........

Abhisekjani, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 8:55:41 PM