Page Loading Delay in button click

Posted by Abhisekjani under ASP.NET on 7/13/2012 | Points: 10 | Views : 3151 | Status : [Member] | Replies : 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




Responses

Posted by: Dotnetrajanikanth on: 7/13/2012 [Member] Starter | Points: 25

Up
0
Down
Can you give the code??

____________
www.flickr.com/photos/psdesigner/

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

Posted by: Dotnetrajanikanth on: 7/13/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Sekar.C on: 7/13/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Send your code lines

Regards
Sekar.c

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

Posted by: Ranjeet_8 on: 7/13/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down

share your code..


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

Posted by: .Netlearner on: 7/13/2012 [Member] Starter | Points: 25

Up
0
Down
Share your code and make the question more clear

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

Posted by: Abhisekjani on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Abhisekjani on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Patel28rajendra on: 7/18/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Posted by: Abhisekjani on: 7/18/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Login to post response