.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Problem of refreshing the button on submit

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :ASP.Net

 I am doing  a project in asp.net with visual studio2008. Im my project i did the java script validation and in a button a write the code to redirect the page to another page. But when i click the button it shows the java script alert message but at the same time it directed to another page. Pls help me do proceed in my work.....

Tkanks in advance

View Complete Post

More Related Resource Links

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Problem with Dynamic Button


Hi friends,

I am trying to make a page inspired from http://login.qlikview.com/help.aspx

here I have made a dropdownlist and on clicking I am able to dynamically add the textboxes and radio buttons using placeholders. My problem is I am not able to use a dynamic number of submit buttons. In the page (link above) I need to make the submit button available for two choices and invisible for one.  But the option dynamicbutton is not available alike dynamicTextboxes etc. What could I do? Is there any other way I could figure out to implement this.

Thanking you in advance,


Multiple Submit Connection Problem


Hello everyone,

I have an InfoPath form with two Submit Connections. One of them is a regular submit connection to a SharePoint Document Library. The other is a submit connection to the UpdateListItems web Service.

I have one button using rules that submits the forms fields to the Document Library. Some of those fields have data validation rules like entry must be four digits, and field cannot be blank.

The other submit button uses rules to submit an XML template to the UpdateListItems Template. My problem is that even though this second button does not have the first submit connection as an action, the form will still check all of the forms fields to see if they violate the validation rules before it will submit to the Web Service.

How do I tell InfoPath to ignore the validation rules when I only want to submit to the Web Service? I want the user to be able to enter data into the XML template fields and submit to the Web Service, even if some of the rest of the fields are blank. Right now if any of the other fields fail validation it prevents submittal to the web service even if the fields that failed validation are not being submitted to the web service.

Thanks for any advice that can be offered,
Bill Hurt

Button in a form that does not submit


I've been trying to figure this out all afternoon but my google-fu seems to be failing me. I'm setting up a page with a fairly large form, which has one field that is going to require some kind of popup page that will allow the user to perform a lookup. At the moment I'm only prototyping the page so I'm actually only attempting to a the button up to fire an alert when the button is clicked instead of generating a lookup screen. However it seems that no matter what I do the button causes the form to submit.

I remember one of the very first ASP .NET beginner videos I ever watched went through configuring a button to perform actions without submitting, but I can't seem to figure out which one it was.

Infopath form using Visual Studio - How to bind repeating table on submit button click ?


Hello friends,

   I have created infopath form using Visual Studio 2008

Form have 3 dropdowns and one repeating table which is bound by Datasource ( List from sharepoint ).

whenever i select appropritae values from drop down, Repeating table gets bound as datasource for dropdown and repeating table are same.

I have done conditional formating for repeating table using repeating table properties.


My Question:


Now i included one submit button and i want when i click submit button it will check DropDown Values and if appropriate record matching these values found it will fill repeating table

How i achive this ? as i dont find how to bind repeating table on submit button.

Please help if anyone have answer.


Thanks and Regards,


Kapil Bhosale.




logout problem(after logout when clicking on back button after logout still opens the previous page

I am using ASP.NET, the web page is abandoning and clear session when a user click logout link but they click the back button and it is still showing the previous page. How can it prevent the previous page after logout?on Logout.aspx load im using this code//=================//        Session.Clear();        Response.Buffer = true;        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D);        Response.Expires = -1500;        Response.CacheControl = "no-cache";        //----- Second Technique : To Stop Caching of Secure Pages.        Response.Cache.SetCacheability(HttpCacheability.NoCache);        FormsAuthentication.SignOut();        if (Session["UserName"] == null)        {            Response.Redirect("login.aspx");        }       Session.Clear();         Response.Buffer = true;         Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D);         Response.Expires = -1500;         Response.CacheControl = "no-cac

asp.net mvc multi button on same page problem

On my employee edit view page i have 3 buttons Save,Cancel,Delete.Save - saving view page values. calling controller action.Cancel - Go back to previous view page. (List of employee page. where this page view comes)Delete - Delete current page employee and go back to List of employee page. where this page view comes.Save button click by default working for me calling controller.but when i click cancel and delete button same controller gets callHow to handle this situation on page view.

hover-ad creator Problem + Close button is not showing in IE



close button is not showing in IE. working fine in FF and others.

Please help SmileSmile

Server side Submit button


I have several buttons on my form (it is a Telerik TabStrip control) that needs to do a server side postback when the user has focus on one of the buttons. It is a heavy data entry form and they require no mouse clicks. Strictly tabing to each field and then when the user tabs to one of the buttons and hits <ENTER> on the keyboard, I need to do a server side postback. I can't assign the <ENTER> key to a button, because I have multiple buttons on the form to do other things like look ups, etc, besides submitting the form.

Any ideas on how this can be accomplished? 

>>>Load gridview using objectdatasource after pressing a submit button?



I'm using objectdatasource to get my data. it works fine. The
currentway how it works. When the page opens it loads the gridview.
but I don't want this.

I would like to load the gridview after I press a submit button. so in
fact after postback...

I tried to remove the select Method in aspx and set programmatically
in the submit button eventhandler but then I get an error that
Selectmethod is not set.

Can someone advice me how I can load the gridview using
objectdatasource after pressing a submit button?

Infopath 2010 submit problem



This is my 3rd post and I am newbie to Infopath 2010.

I have a question about 'submit' button on the form.

Right now I have a form with one dropdown, one textbox,  and 2 buttons which are <Run Query> and <Submit>

I have a SQL database table (ITEM) which has 4 columns; ItemNumber, Quantity, Location and Name.


Senario: A user is going to choose a location from dropdown menu that is populated by another table in the SQL database. He is also going to type in his name in the textbox.

When he clicks <Run Query>, the ITEM table that is in SQL displays with only two columns, ItemNumber and Quantity.

The table will have Item Numbers already filled in, but all of the quantity fields will be blank, so the when the user clicks <Run Query> it will display a list of Item Numers, and the user will fill in the quantities for those specific items.

After they are done filling in the quantities, the user will click the  <Submit> button.

When the user clicks the <Submit> button, I need all of the Item and Quantity data to populate the database, but I also need their location and name to go into every record that they submitted. So if there are 10 Items in the table, they will fill in quantities for those ten items, and the

ModalPopupExtender problem with browser back button


ModalPopUpExtender shows popup when user clicks browser back button.

I saw this thread but I could find the solution for this problem.


mesajrapor1 is my user control which contains the modalpopupextender

Here is my code:


protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
        HyperLink hyp = (HyperLink)e.Item.FindControl("hypGonderenAD");
        Label lblicer = (Label)e.Item.FindControl("lblIcerikMesaj");
        Label midlbl = (Label)e.Item.FindControl("lblIdMesaj");
        Label sidlbl = (Label)e.Item.FindControl("Label3");

        if (e.CommandName == "SikayetEt")
            mesajrapor1.RaporGonder(hyp.Text.ToString(), lblicer.Text.ToString(), Convert.ToInt32(midlbl.Text), Convert.ToInt32(sidlbl.Text));

change "View Report" Submit button Caption in parameter area


Hi All.

Using SSRS 2008.

Can please suggest, Is there a way to change the caption of submit button that appears when we have report parameters. "View Report" to something else

Thanks for replies.



have problem to redirect page , on cancel button click



i am doing simple login page and i used to required field validator to validate user name and password text box.

and there are two buttons submit and cancel.

now i want to redirect this page to home.aspx after clicking on cancel button, but that two required fields validator get pop up and i get stuck in login page.

 if anyone knows how to solve this problem please tell me..

thanks, in advance for your valuable time. 

problem in asp:menu font after clicking the button...


i've got this problem in asp:menu once i click a submit button the asp:menu font is change... also the drop menu got a space... how can i solve this problem any help???

im using c# .net

Make validation controls trigger only not clicking on submit button and not on other navigational bu


I 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.  How do I get validators to trigger only when a submit button is clicked?


Thanks in advance!

Back button and update panel problem



I have a search page that uses an AJAX update panel to deliver results to the user. They can then navigate to a product page for more info. So far so good...

My problem occurs when they are on a product page and use the back button. They are redirected to the search page, but its a blank search page and not the one they left when they clicked for product details. I realise this is because the browser only made a history 'marker' (I dont know the technical term) when they first came to the search page, so this is what it returns them to.

Does anyone know how I can make the back button redirect the user to the search page as it was when they left it? I have tried making the page expire immediately and storing the search terms in session state so I can rebuild the page when they click 'back'. This works in IE, but not in Firefox as it seems to just load out the old page from the cache regardless of the expiration policy I set. As if that werent bad enough, this also causes 'corrupted state information' error when they try to search again.

Any suggestions? Any help would be very much appreciated.

Thank you

(PS -  I have seen various solutions to the back button/ajax problem, but none of them seem to address my problem. Or have I missed something?)


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend