.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

how to make cancel and submit buttons open 2 different links

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint

Hello guys,

In browser enabled infopath form i changed the source paramenter of the querystring to some url as i wanted to open a different link when a form is submitted. I want a cancel button to be linked to some other link but it goes to the same link as submit. How can i give 2 seperate links to cancel and submit actions?

Please help!!

Thanks in advance.

View Complete Post

More Related Resource Links

how to open 2 different windows from different buttons with window.open or...

Hello, I'm trying to open 2 different windows from different buttons with window.open Do not manage... Annyone  who knows how? I need code xample...   Is it posible to set ID for this window.open ?   Thanks

Links to open new browser window?

I've setup some links on "My Site" and can't seem to figure out how to get them to open the links in a new window. I'd also like to do this for my RSS feed links.(This is in MOSS 2007) Can someone help?

make anonymous users submit data to a form library

isn't there a way for anonymous users to submit form data to a form library without custom code?

Navigation headings and links display in Treeview expandable collapse buttons in quick launch in Sha

Whenever i am adding Headings and Links in my sharepoint site under "Navigation", it should display in Treeview collapse expandable buttons in quick launch. How to achieve this, any suggestions please. I tried by enabling Treeview in Site settings-->Tree view, but it is not useful here(it only displays document libraries with folders in "+" or "-" symbols. I want this "+" and "-" for all items which  i am adding from Navigation.  Thanks & Regards, Neerubee

How to make cause validation false for Show Edit buttons in Gridview control

  HI. I am having 2 (dept name, City)dropdownlist, 1 Save button once if we click the save then record will be displayed in grid (Gridview with ShowEditbutton =true and I have Edit logic in my page). But if I click on Edit button then if I try to update the value then it is firing a message "Select dept" because dept dropdown present in the page so I want to make cause validation false for Show Edit buttons (update and cancel). Pleaase tell me Thanks

Edit, Update and Cancel Buttons in FormView

Hi,    I have created a Formview1 which have 3 columns Name, Status and Description. I just wanted to update display the Status and Description but not the Name. Can anyone give me any guidelines how I can do this.  I have use the following code on my asp.net page<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlApplication" DataKeyNames="applicationID"> <ItemTemplate> <asp:Label ID="lblAppsID" runat="server" Visible="false" Text='<%# Bind("applicationID") %>' /> </ItemTemplate> <ItemTemplate> <asp:Label ID="lblAppsName" runat="server" Font-Size="X-Large" Font-Bold="True"><%# Eval("applicationName") %></asp:Label> <br /> <br /> <ItemTemplate> Status: <asp:TextBox ID="txtSatusdesc" runat="server" Text='<%# Eval("Status") %>' ></asp:TextBox> </ItemTemplate><!--- ******** Need to create button Edit, update, Cancel button here to update status ************---> <EditItemTemplate> <asp:TextBox ID="txtSatusdescUpd" runat="server" Text='<%# Bind("Status") %>' ></asp:TextBox> </EditItemTemplate> <br /> <br />

How to make sure that user doesn't open same webpage in two different browsers or browser tabs?



We are using asp.net StateServer for asp.net session management. In our project we need to make sure that if a user is already logged in and if he is trying to acess the website from a different browser tab, we need to inform him that he is already logged in in another tab and use it instead of opening a new session. Consider the following scenarios:

1. User is logged on in tab1 and his session is still on, then user tries to logon from another tab, the browser sends the asp.net session_id cookie, In the page init i am checking if the Asp.net session Id cookie is present, if it is there i am checking if the it is a new Session (i.e. if the existing session timed out), if it is a new session then proceed with the user action else it means that the session in tab1 is still active so i am redirecting user to error page with appropriate message.

Now the problem with this approach is that, suppose session in tab1 is expired and user opens tab2 and performs some actions, now he goes back to tab1 and perform any action, i directly need to take him to log out page.

Please let me know how this can be achieved.

Incoming email, when trying to view a eml file it only display the save and cancel buttons


I have a list which accepts incoming emails.  The original email is saved to this list as a eml file.  Why is it when I click on this file it asks me to save the file to my computer without the option to open?  I would like outlook express to open this email instead of downloading it.  I can download it and then double click the eml file which outlook express then opens.


make Gridview data as hyper link with alias open in new window



I have one asp.net C# page in which i have gridview..

This are the url comes from database and binded in gridview




what i need is i need to show this url has like this

www.xxxxxx.com/A/Default.aspx is like Test1

www.xxxxxx.com/B/Default.aspx is like Test2

www.zzzzz.com/C/Default.aspx is like Test3

if user click Test1 it will open a new browser window with www.xxxxxx.com/A/Default.aspx

if user click Test3 it will open a new browser window with www.zzzzz.com/C/Default.aspx 

how to make this in gridview please help me in this...

Note Board Web Part : How to make links clickable?



A growing number of people within our org are using the Note Board webpart (a great thing!). However, it turns out that the Web Part doesn't handle links very well; they can be pasted into a note, but when pasted, they're not active as hyperlinks (need to be copied and pasted to be used).

Is there any way to add clickable links to notes?

Thanks for your help!


Would like to hide Formview's "Update/Cancel" and make data changes when new page is selected


I have a Formview that is only showing a question, and two checkboxes (True / False).  It's cumbersome for the client to have to click "Update" every time they click a checkbox.

Is there a way to have Formview update the data when the page is changed, or form is closed?  (I see those events, but know how to force data to update from in them).

The application is testing individuals, so 95% of the time the person navigating through the forms will be updating data.



Links to open in a new tab


I have a Custom list with a hyperlink column, i wan't to open the links from that list in a new tab. Is that possible?



How to make a drop down list of links in Microsoft Share Point Designer 2007.

I have just downloaded the free download of Share Point Designer 2007 and I
would like to know how do I make a drop down list of links in the program?.
Where you would place your mouse curser over the links in the link bar of my
site and I get a drop down of links for my site? I just also purchased the Step
by Step book
for Microsoft Share Point Designer 2007 and I can not find it in
the book on to make a drop down list of links for my web site. I would
appreciate your assistance in this matter. Thank you.
Sincerely yours,
Larry H. Ziegler

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!

Master Page/Content Page - Multiple Submit Buttons / ViewModels ? Best practise?



I wanted to ask, what would be the best mvc practice to get the following result:

I want to create a mvc website with one master page and several content pages.

There are some parts on the master page (besides the header and footer) on the left side, that should be available on every content page.

So I guess it makes sense to put that stuff inside the masterpage. These things are several panels. There is one panel with a search field and a search button. Another panel should retrieve data from an own viewmodel, that displays content related data to the user.... and there are another 2 similar panels.

So I thought I could create for those 4 "panels" 4 parial strongly typed views with their own ViewModels. Then implement them with RenderPartial on the Masterpage.

But I realized, that this causes a lot of problems in mvc. First I realized, that I am having problems that the viewmodels behind the partial views are different to the viewmodels of my content pages.

Then I realized that I have anyways problems with more than one submit button. I read now a lot of different solutions on similar cases and now I really dont know, what would be a very "pretty" solution for my case.

I think this is not something very rare that someone is having a searchbox with a search button shared for all pages, because I read

Issue with MOSS 2010, infopath, I.E. 8 and pdf file (no open, just save-cancel)



I have an annoucement list, which  has been customized in infopath ("customize Form" button). Nothing funcy, just adding some comments.

When i open an item with I.E. 8., and click on  the (attached) pdf file, a popup window appears with only the selections: (save-cancel)

If I do the same steps using I.E. 7, I have the selection "open", so I can see the pdf file inside my browser.

Is there any solution?

Also, two newbie questions:

a)Is there a way to revert to the original open-edit-new item form and discard the infopath forms?

b) how to show the created by/last modified date/last modified by in this infopath form?


Thank you



[winforms] Open Url and submit POST

I have the this function which it has been written in html. you put a md5 value in the textbox and hit the button to start searching.

  <form action="http://www.virustotal.com/vt/en/consultamd5" method="post">
      <input name="hash" >
      <input type="submit" value="get MD5">

My question is how do I do the something like the html function I have mentioned above, open an url, post something and see the results in the opened page?
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