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


Post New Web Links

Confirm Box on Hyperlink

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

<asp:HyperLinkField DataNavigateUrlFields="Note ID,ID" DataNavigateUrlFormatString="../Contact%20Management/DeleteNote.aspx?NoteID={0}&ID={1}" Text="Delete" />


Is there any way to show confirmbox when click on delete?

<asp:HyperLinkField DataNavigateUrlFields="Note ID,ID" 
                                            DataNavigateUrlFormatString="../Contact%20Management/DeleteNote.aspx?NoteID={0}&ID={1}" Text="Delete" />

ex: onclientclick="return confirm('xxx');"?

or any way to do this with also navigating data?





View Complete Post


More Related Resource Links

jquery confirm windows isn't working

  

Hi, i am using jquery to implement a modal confirm windows but it not working

i have a template field button with ajax confirm using jquery but i have a problem. Apper the confirm windows but when i click on "yes" doesn't execute the delete command. without ajax (using template field button and simple confirm windows javascript) works so well.

Can you give me a hand with this?

thx in advance!


<link href="_assets/css/StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="_assets/css/confirm.css" rel="stylesheet" type="text/css" />
<script src="_assets/js/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="_assets/js/jquery.simplemodal-1.1.1.js" type="text/javascript"></script>

<script type="text/javascript">
  
$(document).ready(function() {
       $("#msg").text('');
       $(".deleteCustomer").click(function(ev) {
                ev.preventDefault();
                var msg = $(this).attr("title");
                $("#HiddenFieldRowId").val($(this).parent("tr").find(".id").val());
                confirm(msg + "?");
        });
})

Restrict Hyperlink

  

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


{ End Bracket }: To Confirm is Useless, to Undo Divine

  

The common user interface technique of confirmation, popping a dialog box into the user's face and asking, "Are you really REALLY sure you want to do that?" is evil. It's unfriendly, it's distracting, and it's completely ineffective.

David S. Platt

MSDN Magazine March 2005


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.


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

Confirm message box on some conditions

  
Hi,In one of our application, after saving the data successfully we have to show the confirm message box whether to continue the process or not. On click of the yes i have to call one function.So how can i get confirm message box based on condition and how can i read the return value of the confirm message box to call other functions.Thanks in advance,Aruna

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 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!

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

Passing Multiple Parameters in NavigateURL Property of Hyperlink

  
In ASP.NET 3.5, is this the only way to pass Multiple Parameters in NavigateURL Property of Hyperlink ? What about using the HyperlinkField?<asp:TemplateField HeaderText="Form Name">    <ItemTemplate>        <asp:HyperLink ID="HyperLink2" runat="server"         NavigateUrl='<%# "~/Application/" + Eval("FormType") + ".aspx?FormID=" + Eval("FormID") %>'         Text='<%# Eval("FormName") %>'>                </asp:HyperLink>     </ItemTemplate></asp:TemplateField>
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