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


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

Restrict Hyperlink

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

Hello All Experts,

I have made one matrix report, in which i have taken one column group named as "Branch".
It will display dynamically all the branches. Now in that column group i have added two sub column
as "PO", "SO". In column "PO" i have given link of anther report with the paramtere also.

Now there is a hyperlink in PO column which is display for all the branches, i want that the hyperlink should be there for only branch name "AHD", for other branches there should not be any hyperlink to go another report.

Is this possible? if yes then how can we do this?

Regards,
AKM




View Complete Post


More Related Resource Links

Restrict hyperlink in Report

  
Hello All Experts, I have made one matrix report, in which i have taken one column group named as "Branch". It will display dynamically all the branches. Now in that column group i have added two sub column as "PO", "SO". In column "PO" i have given link of anther report with the paramtere also. Now there is a hyperlink in PO column which is display for all the branches, i want that the hyperlink should be there for only branch name "AHD", for other branches there should not be any hyperlink to go another report. Is this possible? if yes then how can we do this? Regards, AKM

How Restrict and Allow user to Pages of Website.

  

i have 4 pages of website

2 pages are authorized to used by USER and 2 pages are restricted for user

admin can authorized to go all 4 pages

 

i need coding for Login window from which Admin/User Login

 

 


How To display image in GridView as hyperlink

  

Hello Everyone 


Could someone please help me with a little issue....


I was able to save the image in the database as binary....... but now i don´t know how to display it in the GridView as a hyperlink.


I´ve read something about ImageField..... I´d appreciate any help .


=)


SharePoint Workflow E-mail Hyperlink has the Spaces Between Two Words Are Removed

  
I have a very simple Workflow, that includes href link to Infopath form.
If the form name includes spaces, the URL redirects to a The Form has been Closed message, indicating that it cant find that form.
In our scenario, the file name of the document/form in SharePoint when saved is called "Travel Request - <submit date>"  as noted with spaces.
The Hyperlink URL in the email generated by the workflow appears to encode all values in the name after the first two words (after Request).  See below.  after the word Request the spaces are encoded properly.     its replacing the first space with it appears %0d%0a (CR LF)
The URL below is what is displayed when right clicking, and selecting Edit Hyperlink in the email

I can reproduce this in development and production.  Any ideas on how this can be resolved?

Label can be seen but not the hyperlink over this background image

  

Hi,

I have a panel like this. I have an image control inside this panel that I have put as a background image for the panel using the style where I adjusting the z-indexes.

This works fine!

I have put a label and a hyperlink like this in the <table>. The label can be seen but not the hyperlink which is the problem. I have tried to put a z-index to the hyperlink but that does not help.

How is it possible to see the hyperlink here also ? Thanks!

 

.stretch2
{
    position:relative;
    width:998px;
    height:35px;
            top: 0px;
            left: 0px;
        }

.stretch2 img
{
    position: absolute;
    width:100%;
    height:100%;
    z-index:99;
            top: 0px;
            left: 0px;
        }

.stretch2 span
{
    position:relative;
    text-align:center;
    width:172px;
    z-index: 100;
    font-size: 1.2em;
    color: #ffff66;
    font-family: Arial, 'Microsoft Sans Serif';
            top: 0px;
            left: 3px;
        }


<asp:Panel ID="Panel6" CssClass="stretch2"  runat="server" Width="100%">
    <asp:Image ID="Image16" runat="server" AlternateText="" ImageUrl="~/images/setImage.jpg" 
        ForeColor="Black" />
           

    <table style

How to use display Text in Hyperlink For SharePoint 2010 Designer Workflow

  

In SharePoint 2007 Designer, I have used the Hyperlink column to store the link "http://www.sharepoint.com/Default.aspx, Details". The details text will be shown in the Hyperlink column. Everything works fine in sharepoint 2007 Designer workflow.

In SharePoint Designer 2010 Workflow, I used the same method but the hyperlink column is displaying the full text "http://www.sharepoint.com/Default.aspx, Details" instead of only Details

 


HyperLink use to send request parameter to another page

  

The statement is correct:

<asp:HyperLink ID="HyperLink2" runat="server" Text

How do I modify the link of a Hyperlink column ?

  



OK , I'm a bit new to this game. I'm trying to build a web page that simply scans a directory in the server and creates a web page with links to the files in that directory - sounds simple and should be easy to do !

So I have a bit of code that reads the myDocuments folder in my web site and then populates a grid view hyperlink column with the filenames in the folder - wow it works !

The only thing I am struggling with now is getting the hyperlink correct within the GridView so that the user goes to the actual document.

So my code behind is;


Dim dirInfo As New System.IO.DirectoryInfo(Server.MapPath("~/MyDocuments"))  
       articleList.DataSource = dirInfo.GetFiles()  
       articleList.DataBind()  

which reads the file info in the directory myDocuments and binds the info to a datasource.

So now I'm using that datasource to display the filenames in a gridview so that the user can click on a name and open the file.


How to restrict folder access to users and theirs only

  

Hi. I created a web application using "Forms Authentication". 

There is a folder name "uploads", and it creates subfolders as username when they register. Web application stores users' files and images under their folder ("uploads/username")

I tried to find a way to restrict users to download and upload files to their folder only and couldn't find a good one. 

Then I came up with this idea that stores "web.config" file each time user registers and the web.config should look like below. Username will be changed dynamically according to username.

This method actually works but I am little worried if this is a good practice as far as performance wise. Because it'll create web.config files as many as users and there might be other holes that I don't recognize. 

I appreciate any advice or better suggestion for this problem.


--------web.config in "/Root/uploads/username directory"--------------

<location path="HRpages">
  <system.web> 

Command - Hyperlink

  
Why does the command work when I use it in a button, but not in the hyperlink? They are both bound the same way and named the same...             <Border Grid.Column="0" Width="170"                     Background="WhiteSmoke" BorderBrush="Lightgray" BorderThickness="1" CornerRadius="5" SnapsToDevicePixels="True">             <TreeView>                <TreeViewItem Header="Provinces">                   <Button Content="Show All Provinces" Command="{Binding Path=Command_ShowAllProvinces}" />                                     <Hyperlink Command="{Binding Path=Command_ShowAllProvinces}">                      <TextBlock T

Hyperlink in ListView

  
Hi there,   How can I write an url in a Hyperlink from code as in Label1.Text="My Text";   I would like to be able to do something like string MyLink; MyLink="myurl.aspx"; ListView1.FindControl("HyperLink1").Url=MyLink;   Thanks in advance    

How can i restrict the user to login only from the system which he registered from the Computer.

  
Hi,I am Kartheek. ASP.Net Web developer. I got one requirement regarding security.In my website, if one user registered from a computer, we have to allow  that user to be able to access the site from that computer only. If he try to login from another system even in LAN, we have to deny the access.Please help me with this. Thanks in advance,Kartheek Challagundla.kartheekchk86@gmail.com

Restrict Truncate Table?

  
How to restrict 'truncate table' in a database from a user? Thanks !

Who to restrict access to only one view.

  
What is the best way to grant access for a user, to select from only one view, not the actual tables?

How to remove underline from Hyperlink and change the color of the link

  
How to remove underline from Hyperlink and change the color of the link

Gridview hyperlink field

  
Hi I have a gridview that has two fields. Both fields are databound...but the one field is a hyperlink field which works fine...but I would like to add a Request.QueryString value to the the value retrieved from the database when setting the navigateurl property. Help would be much appreciated

HyperLink Field Value: RowCommand

  
Hello. I am accessing the ID field in my GridView RowCommand event (this works fine)... Dim f_iIndex As Integer = Convert.ToInt32(e.CommandArgument)Dim f_oSelectedRow As GridViewRow = grdImplementation.Rows(f_iIndex) Dim f_oAppIdCell As TableCell = f_oSelectedRow.Cells(0)Dim f_iAppId As Integer = CInt(f_oAppIdCell.Text.Trim)  However, when I try to access a HyperLink field the same way, I get nothing... <asp:HyperLinkField HeaderText="Name" DataTextField="Name"  DataNavigateUrlFields="AppId" DataNavigateUrlFormatString="View.aspx?AID={0}"  />  Dim f_oMerchCell As TableCell = f_oSelectedRow.Cells(2)Dim f_sMerch As String = f_oMerchCell.Text.Trim  Thanks in advance!
Categories: 
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