Web Forms :: A Link Target Doesnt Work?
Mar 20, 2010
i have a link and iframe wich his id is set to "iframe3" ...
now in the link target i set the target to "iframe3"
now it suppose to open it in the iframe3 , but instead it opens it in a new window ...
this is the code :[Code]....
View 6 Replies
Similar Messages:
Mar 16, 2011
i have tvo panels in my site and i am loading data into one of them, it contains some <a> links and than i need to manage things this way: when i click on a link in panel 1 I want something to appear in the second panel and if i click in second, data should be displayed in first one. Is it possible to do thies with html <a> tags or not? My only idea to solve this problem was to change <a> to <asp:LinkButton> and add them some onclick function which will check if the parent of object Sender is panel 1 or 2, but I dont know if it is possible to find the parent and because i get the code from xml via XSLT there will be another problem with <asp:LinkButton> ids, because if i am not wrong the ID attribute is necessary to use.
View 6 Replies
Dec 15, 2010
I would like to install my asp .net site on a free host. what do I need to install in order that the mschart control will work on the host.
what are the basic requirements.
at the moment I get an error about it.
View 2 Replies
Jun 9, 2010
[Code]....
I have tryed this sorting code here in first post http://forums.asp.net/t/956540.aspx but it doesnt work. any tips?
View 2 Replies
Dec 20, 2010
Searched and couldn't find anything. I'm wrtiting an intranet application, and it creates links to see the original PO or Order for a given order number. Problem is that some of these orders were never put into the system electronically, so you get an error 400, no such page. Is there some way to programatically 'test' a link before sending the user to this error message?
View 2 Replies
Jan 1, 2010
this is the code
<%
@
Page
Language="VB"
AutoEventWireup="false"
CodeFile="Default.aspx.vb"
Inherits="_Default" %>
[Code]....
View 2 Replies
Jan 11, 2011
I want to make a link in databound data which is stockQtt. How can I do that? and I want target is blank and the link page is AdjStock.aspx below is coding.
<asp:GridView ID="GridSql" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="itemId"
DataSourceID="StockSql" Width="980px"
<Columns>
<asp:BoundField DataField="itemId" HeaderText="Item ID" ReadOnly="True"
SortExpression="itemId" >
<ItemStyle Width="5%" />
</asp:BoundField>
<asp:BoundField DataField="categoryId" HeaderText="categoryId"
SortExpression="categoryId" Visible="false" >
</asp:BoundField>
<asp:BoundField DataField="catDesc" HeaderText="Category"
SortExpression="catDesc" >
<ItemStyle Width="13%" />
</asp:BoundField>
<asp:BoundField DataField="model" HeaderText="Model" SortExpression="model" >
<ItemStyle Width="13%"/>
</asp:BoundField>
<asp:BoundField DataField="itemDesc" HeaderText="Description" ...................................
View 4 Replies
Apr 1, 2010
Last year we created an application that creates folders for the records on our network drive. Everything worked til the new year.. then we had to update the code to create a new parent folder for the year, since then every other month it seems that the month folder gets created, but the individual folders under that month do not.
[Code]....
View 6 Replies
Nov 15, 2010
After a long process of configuring IIS inhttp://forums.asp.net/t/1622627.aspx ...In iis project the jquery doesnt work ...but when i run the same in vs2010...it works
<
script
type="text/javascript">
[code]...
View 2 Replies
Nov 19, 2010
In my local enviroment it just works. Iam no IIS Admin so ....
i try the following
My domain "http://mysite.com/" goes to my url provided by my hosting service (discountasp.net)
I want that this url goes to the root/mysite/ virtual directory but i want that the url stays on "http://mysite.com/". So i defined the following rule, but it doesnt work for me.
here is my web.config that is placed in the root directory (generated by the IIS7 Remote Administration UI)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>[code]....
View 1 Replies
Mar 5, 2010
The following two controls on my page:
<asp:LinkButton ID="OpenLB" runat="server" >Open</asp:LinkButton>
<asp:HyperLink ID="OpenHL" runat="server">Open</asp:HyperLink>
I set them during page load like this:
OpenLB.PostBackUrl = @"file:\webdocuments-emailsdoc1.docx";
OpenHL.NavigateUrl = @"file:\webdocuments-emailsdoc1.docx";
OpenHL works, it opens the word file.OpenLB doesnt work, when I click on it, I get a error pop-up that says:
Windows Internet Explorer Cannot find
file
'file://web//documents-emails//doc1.docx'.
Make sure the path or Internet address
is correct.
It looks like the url is different or something, how can I fix this?
View 4 Replies
Sep 3, 2010
I am very new to WCF, I have read a lot and seen several presentations about it. I can get the basicHttp endpoint to work on my server but when i wanted to use https, I found that that endpoint binding doesnt work. I think through my research that the wsHttp binding is what i need. I can get the client to work but the service gives me a few different errors when I try to call the ssl endpoint.
Currently i get the following error:
The requested service, 'https://devwcftestsite.crata.ucf.edu/services/Person.svc/Person' could not be activated. See the server's diagnostic trace logs for more information.
Below I have included the web.config for my service project which is hosted at:https://devwcftestsite.crata.ucf.edu/services the service is called:Person.svc
[Code]....
View 2 Replies
Jan 3, 2011
If i split the statements up they work fine individually.But what im trying to accomplish is to pass in the column name that i want to select from my table.. ill pass it from the page as well as 1 other parameter.
I was looking and found some queries that will return the column name from the table but figured this may work.when i execute this,it returns the actual value in my SET @column line.so in the below code if i run it, it will just return the value "VideoLevel"
BUT if i change it to the example below that,it works..
[Code]...
[Code]...
View 10 Replies
Feb 2, 2011
i'm trying to select/unselect aspxtreelist nodes that meet the criteria.when user click a row and it fires an event which handled by server side eventhandler.When i debug the code everthing ok.selection works but on the browser side selection remains same as before eventrised.
protected void grid_FocusedRowChanged(object sender, EventArgs e)
{
menutree.UnselectAll();
[code]...
View 1 Replies
Mar 10, 2010
I got a view that uses the ajax.beginform tag.This works great but if I want to do some validation to the data and then return a error message to the page it doesnt work for me.Here my code :
[Code]....
And the actionResult :
[Code]....
[Code]....
View 5 Replies
Jan 25, 2011
i followed this tut http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=554 for cascading drop downs, but i changed the sql connections for my linq datasource. VS2010 is showing no errors in my code and the page loads fine too, but the two drop down lists are emptycan anyone scan there eyes over it and see if theres any reason why it shouldnt be working?my code is the same as the tuts apart from it uses LINQ instead of SQL
[Code]....
View 3 Replies
May 9, 2010
I would like to change the default "target" for Link in HTML Editor. By default it is set to "Current Window", but I want to set it to "New Window" by default. Is it possible for HTMLEditor Control?
View 3 Replies
Sep 22, 2010
I am wondering if anyone could shed some light on why onclick of the target control does not work. I am asking this mainly out of curiosity because replacing onclcick with onfocus achieves what I need.
View 3 Replies
Jan 22, 2010
I've been trying to add a Hyperlink column to my gridview that opens a page via a pop-up window that passes an ID. Target="_blank" won't work because I need it to be a specific size.
I've been trying to set it up with Javascript functions but DataNavigateURLFormatString takes away the clickablility on the field if you call javascript. NavigateURL seems to work but without an ID passing to the function it will only open one specific webpage.I have also tried Boundfields but have had no success either.This is the closest I have come to getting it to work:
<asp:HyperLinkField
DataTextField="Catalog_Number"
HeaderText="Catalog Number" [code].....
But with the NavigateURL its only displaying the link as is.
View 2 Replies
May 10, 2010
I have a very simple AJAX example that doesn't work.It is from the Microsoft tutorials on AJAX.
When I click on button "Button1" AJAX should execute but the whole page submits.
Here is the code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="1111.aspx.cs" Inherits="_1111" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<p>
DropDownList AutoPostBack SelectedIndexChanged EventArgs Sort ... Since you will be using AJAX to process your SelectedIndexChanged event, set the AutoPostBack property of the DropDownList to false. ...
</p>
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
</asp:ScriptManager>
<asp:Label ID="label2" runat="server"></asp:Label><br />
<asp:Label ID="label3" runat="server"></asp:Label><br />
<center>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="label1" runat="server"></asp:Label>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button 1" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</center>
</div>
</form>
</body>
</html>
Code-behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _1111 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
label1.Text = System.DateTime.Now.ToString();
label2.Text = System.DateTime.Now.ToString();
label3.Text = System.DateTime.Now.ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
label1.Text = System.DateTime.Now.ToString();
}
}
View 2 Replies
Nov 30, 2010
my C# console appliccation code is shown below :-
[Code]....
In my application a mail message send to particular recipeeient with msg body contains a hyper link.. when the recipent click on this link,it will redirect to another form(InternalForm.aspx)... bt when clicking the link error is occured,whuy its happening???? In InternalForm.aspx,page load portion access the link content(badgeno).. page load portion code of InternalForm.aspx is shown below:-
[Code]....
View 7 Replies
Apr 11, 2010
I can't get my logout link to work. Everytime I click the logout button, it appears that nothing happens. I have set the url to change, and that will work, but it will not log the user out. Is there another setting I am missing? Here is my login view:
Code:
[code]....
View 2 Replies
Aug 30, 2010
I send automated mails to hotmail users. (thank you for your registration bla bla)Because plain text doesn't look attractive enough, I use HTML with images. The images reside on a public webserver.
As SMTP server I use the SMTP part of IIS 7.5 (windows 2008 R2). I have an SPF record setup in the DNS. I have also read http://tinisles.blogspot.com/2009/09/sending-dkim-email-from-c.html and found out that sending mail with the SMTP service and a DKIM signature cannot be done properly without an external commercial component. So I do not have such thing (yet).
Now that is all about my background and here is the problem:I have this in my HTML:
<a href="http://www.mydomain.com">click here</a>
But when users get am e-mail like that and view it in hotmail. (chrome, IE, safari etc.) and when they hover the link they will see that the url is http://www.mydomain.com but when they click on it. It redirects to:
http://www.mydomain.com/mail/InboxLight.aspx/404.aspx?msg=The%20file%20'/mail/InboxLight.aspx'%20does%20not%20exist
what am I doing wrong? Is it an SMTP/IIS server setting? Did I forget something in my Asp.Net C# code when I have send the mail? Did I forget something in the DNS or HTML markup? The link works perfectly when I receive the mail in my Outlook 2010 where the domain is also added to the safelist.
EDIT If it seems to be all related to the antispam stuff in hotmail. Should I consider to buy: http://www.youtube.com/watch?v=98oc_5bjjkc
View 1 Replies
Mar 9, 2010
I am trying to download MVC framework but it doesn't work.
View 4 Replies
Feb 11, 2012
Im looking on some routes.MapPageRoutes but i cant get it to work.
I have these link
ROOT
default..aspx
brands.aspx
service.aspx
contact.aspx
aboutus.aspx
shopping.aspx
ALL these pages is running with a masterpage
eb.master (also in the root)
And then i have the global file that have the namespace in the global file also.when im running the pages/website and i have the default.aspx page activ, it show
www.mydomain.dk/default.aspx
when i wanted it to be
www.mydomain.dk/Butikken
Its the same problem with the others routes....
Code:
<%@ Application Language="VB" %>
<%@ Import Namespace="System.Web.Routing" %>
<script runat="server">
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
[Code].....
View 2 Replies