How To Show A Progress Bar While Clicking On Submit Button
Dec 21, 2010I have create one page where i am runnning one Insert query.Now i want to show a progress bar while clicking on submit button.
View 5 RepliesI have create one page where i am runnning one Insert query.Now i want to show a progress bar while clicking on submit button.
View 5 RepliesIn one order form, user have to input/answer about 30 questions before clicking submit button.
Sometime due to network problem, submission is failed and user need to re-input/answer all questions again.
Is it necessary to save data before submit? If yes, where to save them?
I have a web page, with three buttons which allow a user to cancel, save & exit, or save & continue. to assign the Save & Continue button the ability to accept the Enter key as being equal to it being clicked? Thought this might make it faster for data entry, so they can keep hands on keyboard, and just hit enter, instead of having to use mouse to click save & continue.
View 3 RepliesI have required validation controls on a page. If the user got to this page by mistake and wants to go to a different section of the website using the navigational buttons; required validators are triggered and it will not let the user navigate away. Ho do I get validators to trigger only when a submit button is clicked?
View 3 RepliesI am trying to edit data using checkbox value. Firstly, I created popup window which using querystring some data from main page. In popup window, I want to change the checkbox value. For example, I made setSpare column and given the value to show bit data type such as 0 or 1 using checkbox(false or true). If some data has non setSpare(means 0), it wil lbe come out uncheckbox. If I want to check it and clicking submit button, It was not change. I am going to show the code below.
public partial class AddSpare : BasePage
{
string ObjectId;
protected void Page_Load(object sender, EventArgs e)
{
ObjectId = Request.QueryString["ObjectId"];
displayComInfo(ObjectId);
}
protected void displayComInfo(string ObjectId) // it informed relative data on web through using DB.
{
string query = "usp_ShowComputerList";
try
{
using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SCSConnectionString2"].ConnectionString))
{
SqlCommand cmd = new SqlCommand(query, conn);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
SqlParameter paramobjectId = cmd.Parameters.Add("@ObjectId", System.Data.SqlDbType.Int);
paramobjectId.Value = ObjectId;
conn.Open();
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
ModelTxt.Text = dr["Model"].ToString();
ModelTxt.ReadOnly = true;
ComputerTxt.Text = dr["ComputerName"].ToString();
ComputerTxt.ReadOnly = true;
userTxt.Text = dr["UserName"].ToString();
userTxt.ReadOnly = true;
ntTxt.Text = dr["NtLogon"].ToString();
ntTxt.ReadOnly = true;
HDDTxt.Text = dr["HddSize"].ToString() + "GB";
HDDTxt.ReadOnly = true;
RAMTxt.Text = dr["MemorySize"].ToString() + "GB";
RAMTxt.ReadOnly = true;
SerialNoTxt.Text = dr["SerialNo"].ToString();
SerialNoTxt.ReadOnly = true;
TextBox1.Text = dr["Spare"].ToString();
inputChkSpare.Checked = (bool)dr["Spare"]; //(bool)dr["Spare"] display false or true.
dr.Close();
}
}
}
catch (Exception ex)
{
MessagePanel1.Type = MessageType.Error;
MessagePanel1.Text = MessagePanel1.Text = "This is an error." + ex.Message;
}
}
protected void okBtn_Click(object sender, EventArgs e)
{
string query = "usp_SetSpare";
try
{
using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SCSConnectionString2"].ConnectionString))
{
SqlCommand cmd = new SqlCommand(query, conn);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
SqlParameter paramobjectId = cmd.Parameters.Add("@objId", System.Data.SqlDbType.Int);
SqlParameter paramspare = cmd.Parameters.Add("@spare", System.Data.SqlDbType.Char);
paramobjectId.Value = ObjectId;
if (inputChkSpare.Checked == true) // if I change the check box, it does not bring the changed value. It will bring the above value(already displayed thing)
{
paramspare.Value = "1";
}
else {
paramspare.Value = "0";
}
conn.Open();
cmd.ExecuteNonQuery();
cancelBtn.Value = "Close";
okBtn.Enabled = false;
MessagePanel1.Type = MessageType.Information;
MessagePanel1.Text = "This computer is spare from now.";
}
}
catch (Exception ex)
{
MessagePanel1.Type = MessageType.Error;
MessagePanel1.Text = MessagePanel1.Text = "This is an error." + ex.Message;
}
}
i want when user click on submit button then a div layer will be generated over the textbox whose height and width will be just the same as textbox and in this way textbox will be blocked for entering something. i want to do it by javascript. in this scenario other textbox will not be blocked.
View 3 RepliesI was going through the options available in datagrid. I saw edit,delete options etc.I just wanted to know how can check boxes be used i datagrid.My idea is when i create a datagrid and fill it with values say employee_details and in cases where i want to select some employees and then on clicking say "submit" button i want to select the employe_id(primary key) of only the checked items of datagrid and then update this in some other table.
View 9 RepliesI have implemented Jquery loader by seeing your article URL...I have implemented this in Form submit. I'm working on export gridview to excel, when i click on export button i'm able to export gridview to excel but jquery loader still appear after complition of export. How to make it disappear ?. I'm using EnableEventValidation="false" by seeing your article URL... Because of this am i getting this problem?.
View 1 RepliesWhen I click button then I want to show Loading image and brackground is transparent, any example...
View 1 Repliesthe output I am getting at the moment, is my parent data displays along with my child data. However when I click on the button to toggle the views i am getting a "cannot cast type error"I have also tried to put the itemdatabound event in my parent repeater tag, that worked but when I click on the buttons it just keeps moving to the top of the page and won't hide or show any of the child data except for the first child of the first parent.
<%@Page Language="VB" EnableEventValidation="false"%>
<%@Import Namespace="System.Data" %>
<%@Import Namespace="System.Data.OleDb" %>
<script runat="server">
Dim ds As DataSet, divdtls, btnview, repeat
Sub ItemDataBound
[code]...
I have to add a progress bar on my web page to show the progress of submission. My page on submit saves the data in the database. I have to show user how long will the submission take place. For an e.g., 50% Completed and so on..
View 4 Replieswhat changed do I need to make to my code for it to achieve what I'm after.
At the moment I am getting a "cannot cast to type" error message with the below code.
I have also tried calling the ItemDataBound method in with the parent repeater tags and had no errors but when I clicked on the button it would just move back to the top of the page and would not hide or show any data. Also I have made the div style to none but the first record still shows its child but the rest don't.
[code].....
I have 2 SUBMIT button in a form one is display:hidden and one is display:block if user click on SUBMIT button (display:block) then another SUBMIT button {display:hidden} should also submitted.
View 2 RepliesIn ASP.NET when we have multiple input section with required field validator (Like on header for login with userid & Password is required and second on footer for subscription) when we click on subscription login section's userid required field validator activates and say userid required & i can not submit subscription.
when i submit subscription details login section should not have concern with this. how to avoid this conflicts.
In C#/Asp.net I have 2 submit button i.e.
btnOk and btn_Submit
Initially I am doing validating form by clicking on btnOK and in btn_Submit I am inserting record into table. I again want to call btn_Ok event in btn_Submit click event for re-checking validation, if it validates properly thne rest of code of btn_submit should work.
I want to show a progress img when gridview is performing some operation. When i click on update linkbtn of gridview i have written some code in code-behind which takes some time Meanwhile i want to show progress img over gridview to notify user that some operation is being performed. Progress img should cover the full size of gridview. How can achieve this?
Sample code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="background-color:Gray">
<div>
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</div>
<div style="position:absolute;">
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img id="imgProgress" src="loading.gif" />
</ProgressTemplate>
</asp:UpdateProgress>
</div>
</div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
User1 open the website did something the progress bar starts. User2 open the same website that progress bar needs to display here.
View 1 RepliesI have a telerik radgrid that has an allows inserts. After clicking the "Add New Record" button the textboxes appear with a couple of buttons. One for Insert and one to cancel. I would like the page focus to be on the insert button so when the user clicks the enter button, the insert button has the focus.
View 3 RepliesI have a button in my aspx file called btnTest. The .cs file has a function which is called when the button is clicked.
btnTest_Click(object sender, EventArgs e)
How can I call this function from within my code (i.e. without actually clicking the button)?
I m reading the file. As I have very large files, it will take time to read.
In the mean time, I want to show progress bar.
Have an application with several gridviews where user can enter query parameters for each grid view. I am using "DropDownList_SelectedIndexChanged" to call methods that will fill and show each grid view.
For some of these queries the processing time could be several seconds, so I thought I could use and display Ajax progress control.
Code:
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label runat="server" ID="Label15" Text="Load in progress....." />
<img src="Icons/ajax-Loader.gif" alt="The spinner should be here" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
How can I trigger progress control to show out of my selectedindexchanged events?
I have to implement file upload progress bar in one of my project.But,having searched a lot , i am not able to find how to find bytes of file uploaded. how to find bytes of file uploaded in ASP.NET?
View 5 Repliesi want to show an jquery ui progress bar on my dialog so, itried below code but its continueosly showing the progress bar. what im doing is, in dialog aspx page_load event im just read some data from xml file and bind intot the gridview. untill bind intot the gridview i want to show this progress bar.
below is my code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProgressBar.aspx.cs" Inherits="GoogleJQueryUI.ProgressBar" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[Code].....
We have a requirement in our project where we have to show the progress of pdf download..(Ex: 1kb/8kb)..this has to be in javascript only(only on client side).
View 5 Repliesin my ASP page iam using button and drop down list controls. In the button click event i have some process, and dropdown list change event have some coding. while iam clicking the button its not directly goto button click event, its going to dropdown list click event.
View 3 Replies