.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

Link a jsp page in asp.net

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :ASP.Net


I am trying to link a jsp page in my page using the "href". However, it throws an error but when i directly write the entire link on the web browser it works properly.

Here is the code :

<a href = "<%=hCategoryMenuBean.getId()%>&&SubMenuId=<%=zSubCategoryBean.getId()%>&&SecondLevelId=<%=zSubSubCategoryBean.getId()%>&&DrilledPage=<%=h%>&&DrilledPageOne=<%=lCountOne%>

View Complete Post

More Related Resource Links

Link goes to next page but url doesn't change?


I have a text input to get a 'roomID' and an ASP button that calls an 'enterRoom' function:

roomID:<asp:TextBox runat="server" ID="roomID"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="Enter Room!" OnClick="enterRoom" />

In my head tags I have my enterRoom Sub:
    <script runat="server">
        Sub enterRoom(ByVal sender As Object, ByVal e As System.EventArgs)
            Server.Transfer("users/room.aspx?roomID=" & Request.Form("roomID"))
        End Sub

Now when I click that button it essentially goes to the right page in all ways but the URL stays as my default.aspx instead of changing to users/room.aspx?roomID=23423. I've tried it in IE and Firefox with the same results. Is this something I'm not understanding about Server.Transfer or why is this happening and how do I fix it?

My site link on my home page.



One of the user got My owa link in place of my site on the my home page ( go to my site --> my home --> top right corner shows My owa insead of my site ) and he wants to edit that my owa link now. first of all i dont know how he got that My owa link in the place of my site on my home page. When he surfs any other page than he is getting my site on all other pages. so he is just getting My owa link in place of my site only on the my home page.

At the first glanse, i think it would be master page issue but if that would be the case than it shold apply all the users but this is happening just for one user and we are not using custom master page.

Please help.


Trying to get to a page via an email link. Could the sitemap be stopping this?


I had this working.  I would email a link to a page (i.e. Work.aspx), and using the code below, the user would be routed to the login page and then sent  to Work.aspx after logging in.

But since I added a site map this isn't working.  I always go directly to my home page.  If I set Work.aspx as my start page in VS it works, but not if I click a link in the email.

Any thoughts?

 protected void Page_Load(object sender, EventArgs e)


        if (!Page.User.Identity.IsAuthenticated)

            Response.Redirect("~/Login.aspx" + "?ReturnUrl=~/Work.aspx");


    protected void Page_Load(object sender, EventArgs e)
        if (!Page.User.Identity.IsAuthenticated)

how to create a wiki as page link

hi i want to create a page which should display all wikis and im looking to create a button which should redirect to the page tab with all wiki's

Request.PathInfo losing Master Page content and CSS link


Hi All-


I'm using Request.PathInfo to response.redirect as user to a different page ( based on the content after .aspx ).  It redirect just fine however, once redirected, the page loses all content from the master page and the CSS link.  I've searched and can't find an answer. 

Does anyone have a solution for this?

Form input to output as a link on the display page (need help please)

 I have a form, the form works great and displays the information perfectly on a designated display page I have set up from its database.  One problem, I want to display it as a link to the site instead of how it is now, just plain text. Thus the user would put in the text box the site and hit submit and the site would appear of the display page.  Can anyone please assist me on this, and where to drop the hyperlink control? in the form page? or in the display page?    Below is my form code page:     <p><strong><font face="Verdana, Arial, Helvetica, sans-serif">International Access Entry      Form</font></strong></p><p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Please enter information      international contact information below. This if for authorized staff only.</font></p><table width="548" border="0" cellpadding="0" cellspacing="10" bgcolor="f0f0f0">  <tr>    <td width="528"><form name="INTL_Form" method="post" action="INTL-results.asp">      <p><font face="Verdana, Arial, Helvetica, sans-serif"> </f

need to link multiple detailsview to page from one master detailsview

I am trying to arrange the information from a SQL record into a 3 column by 3 row table to fit  the form presentation that I want. I have placed on the page 3X3 table and then tried to place a detailsview in the first cell for the first picture called P1dv. I have place a detailsview in the last cell that would control the paging of information called Controldv. I need to fiqure out how to link P1dv paging to Controldv page action. I am using visual web dev. 2005. I am not updating or editing these are read only views.  All help is greatly appreciated.  example of what i need the form output to look like:     picture1   picture2  picture3     name1     name2     name3     Contact1   contact2  contact3what i have coded as of now:asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ContactConnectionString %>" SelectCommand="SELECT * FROM [driveinfo] ORDER BY [Updated_on] DESC"></asp:SqlDataSource>    <table style="width: 827px; height: 339px"> <tr> <td align="

How to add link to a css file in content page?

How to add link to a css file in content page? There is no Head tag.

Go Back to Site link missing in Error Page

hi,             i developed eventhandler where Properties.Cancel=true..takes to the defualt sharepoint error page. in this page i am missing go back to site link. how to set this link in the error page?   also can we set the link in the Properties.ErrorMessage="cannot update. please click here"+"<a href="+siteurl+"/>";   please help.  

gridview hyperlinkfield link to point on another page

I have several gridviews on an aspx and each has a hyperlinkfield.  All of them redirect to another page with a single gridview.  I am trying to figure out how to get each hyperlinkfield to redirect to the actual point on the receiving page with the corresponding value. In the sample data below, I need to be able to click on 'def' and open aspx page 2 to the point on the page where 'def' is located.  All values still need to be visible.  Sorry for this sad sample, but I wasn't sure how else to explain.  Can anchors be used in gridviews???  If so, how?  Please advise. aspx page 1: (gridview1) hyperlinkfield1             field2                field3 abc                              f2data1             f3data1 def                               f2data2             f3data2   (gri

add user login name to a link on a page

Hi guys, Hi guys I have a link to another server on one of my portal pages. I need to add a user login name to it. So link "http://anotherserver" should change to "http://anotherserver/AppsLocalLogin.jsp?username=<username>". I see here 2 parts: 1 - get user login name 2 - add it to link Any ideas?

How to link Title to it's associated page in list view without URL path column visible -bug?

I don't know if this is a bug or if I'm an idiot (or perhaps both, I'm open minded).   My site I'm developing is a site with publishing features activated where all my news stories are pages. What I want to have is a sortable list (the type hypothetically achieved using the XsltListView Web Part) the lists these pages with 3 columns visible: The Date created, the title (not the page name), and the author. The tricky part is that I would like the title, when clicked on, to take the person to the page. I'm actually almost there. I've created a new view with these specifications except for one issue. To make the title linked to the page, I have to have the column "URL Path" in my list view. When I remove this column, the titles instead all link to the root of the directory I'm in (ex: if I'm in Pages/Forms/My_List.aspx it will link to Pages/Forms/) Is this a bug, or is the URL Path required for the link to work? Is there a way to hide the column? Thanks.

Documents link in Edit properties Page

Hi, my requirement is, the document library's editform should have a link to document like list's editform. please guide me to get this, Thanks in advance.

How to convert the datagrid bound column item itself link to another detail page without using hyper

Dear experts, I would like to make the datagrid bound column to redirecting to the details page . For example , when my mouse over certain row of bound column in datagrid , it will change the colour to blue . Also , I can click anywhere of the row and the will redirect to the detail page . Can any expert help me on that ? Notes : I do not want to use hyperlink column and do not want to fix the text for every row. I want to use datafield, CommandName and CommandArguement. Thanks & Rgds

Forgot Password link in Sharepoint FBA login page

Hi All,      I want to keep the Forgot Password link in the login page of the Sharepoint FBA Site.     For this, i have make a copy of the login page in the 12 Hive and added an anchor tag by giving link to Forgot Password (FP) page in custom login page. The FP page is located in one of the document library, for which i have given anonymous access to view items there. Its all good, and i am able to navigate to FP page. But i dont want to show any other controls in the master page also to the anonymous user. And one more thing, i have two zones 1)Intranet and 2)extranet, i want to show different FP pages for both. How can i do this...? Please suggest me with this issue...... Thanks in advance

programatically add link in site settings page through feature


Hi folks,

          Im newbie in SharePoint, we have created an Application  Page for Managing the WebPart Permissions. We need to add one link called "ManageWebParts"  in the site settings Page so that  the admin can go the site settings and  Navigate to the ManageWebpart.aspx Page using this link. How we can  add the link  through programatically using feature???


Your thoughts??



Thanks & regards


Publishing page: link to a document on another collection


I have an .aspx page in my publishing site. On that page I want to put a link to a document that is in another site collection. So I edit the page, highlight the link text and then click the link glyph on the toolbar to bring up the "Edit Hyperlink Properties" window, and click the "Browse" button expecting to be able to navigate to the other site collection. But when I put the full URL of that site collection in the "Location (URL)" box I get "cannot find this site in the current site collection."

Is there a workaround or setting for this? Is there any way possible I that can use the Edit Hyperlink Properties to navigate to another site collection?

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