i need to send a clickable link to many people via mail using vb.net .
Dim smtp As New SmtpClient email = "email@example.com Dim mm As New MailMessage("test", email) mm.Subject = "test" mm.Body = "http://www.mywebsite.org/mypage.aspx" & "<br><br>" & "greetings" mm.IsBodyHtml = True smtp.Send(mm)
This code works perfectly when the mail is read with Outlook. People get a clickable link which brings them to the right page. But the same mail read in Hotmail (or any webmail site) provides a non-clickable link.
I am a new coder trying to experiment with jquery for my first time. I'm trying to setup a simple datalist that might be used to display comments for an item. I want a clickable link (per datalist row) to drop down a panel (per datalist row) that has comment text. so the user looks at row 1, clicks it's link to read comments, and the comments panel drops down. they scroll down and do the same for the next item.
so far i have the below code as a small test page, but it's not working. nothing happens basically. I tried the clientID thing because it seems i need that to deal with the auto-generated ID's .NET will assign panels as it's rendered, but i'm not sure if i'm doing it right.
I have a database table column consisting of text URLs [URL] In my LINQ-to-SQL-driven gridview, I want to make this a clickable link programmatically, with differing link text (e.g. "Link text"). I'm getting close but am missing some key concept. Here's the core of the .vb codebehind:
Dim dctx As New ResourceMod.ResourceModDALDataContext Dim eleResObj = From eleRes In dctx.Resources Where eleRes.Type = "url" Select siteurl = eleRes.Website GridView1.DataSource = eleResObj GridView1.DataBind()
This displays the raw URL in the gridview (i.e. non-clickable). I've experimented with adding an explicit hyperlink column a la [URL](setting AutoGenerateColumns false etc.), but haven't yet figured out how to assign the asp:hyperlink Text and NavigateUrl fields with the anonymous-type object eleResObj. Using a field construct such as Text='<%# Eval("siteurl") %>' isn't working, presumably a scope issue. Is a LinqDataSource needed in this case, and if so, how would that affect the original LINQ query?
I got 3 "user role specific" Areas and 1 Public Area.Also, I have a "Shared" directory for controllers that's shared among the Areas.
On the Shared views, I have a "Return to [whereucomefrom]" link, that will depend on ..well, where you come from. If it was only the previous url I needed, I could just figure the referer and make that the url. But I also need the link text.
Say for instance "New Message" in Shared can be called from the "Customer" Area. If so, the return link would be "Return to my Orders", opposed to say "Return to Messages" for another area.So I want to pass on a return url and return url text from the link in an area view, so the shared view can display that link. I am not allowed to use Session and want to keep my URL's clean (sth like /Messages returnurl=customer/orders&linktext=Return to Orders" will not do).
I'm working on a URL Helper extension method as we speak, but I know in advance that is going to create an ugly url....
The problem I am having is that I would like to open a new tab via a link button or link on my page. I need to append a query string variable from the page onto the end of the reference, because it is passing a parameter to a report.
I've successfully passed the parameter and opened the report in the same tab using this code:
I would prefer to do both. One important note is that opening a new window, instead of a new tab, is not what I need. I do understand that this is somewhat dependant on browser use, but for this project I can assume that users will be on IE8.
I am using the query listed below which includes multiple joins, in the result of the query I need to do some value replacement valuesExample: db.ASSETS.BUILDING_ID=300 that ID does not exist in db.BUILDINGS, in that case I need to return BUILDING_ID=0, db.BUILDINGS.NAME="Unassigned"
1. I need to load a user control on link click event of a link button during postback of aspx page.
2. On button click event of a save button on that aspx page, I need to read the selected values from that user control on further postback.
If I write the loadcontrol code in link_click event, the control is not recognized at all in the button_click event. When I shift it to page_init and execute only during not postback, the user control loads with default values.
After submitting a form, the user is presented with a link to a pdf document. The link is straight to the document, it is not streamed.
If the user right-clicks and chooses 'save link as,' the document saves and opens fine. However, if the user just clicks on the link, the browser takes a very long time to respond (I'm going to guess it's 3 minutes) and then adobe reader gives the following error:
"the file is damaged and could not be repaired"
This is in Chrome v5, ASP.NET 3.5 and the link is returned inside an UpdatePanel.
I believe my SQL statement is sound. UPDATE  SET abc = @abc FROM  WHERE (dayID = @dayID) I cant seem to get my stupid variable @abc to sync with my GridView update command. I understand that I can let the GridView take care of my editting for me without having to write any code. But, I am running multiple tables and will be eventually needing to do this manually. Or at least as far as I know.
I have a page for a product listing using a datalist control. I have customized the item template and added a link button that says Click to Order. I then databound that linkbutton with the onclientclick to the "ProductID" field, but I would like to set a variable or use some method of getting the productID of which item they clicked so I can add that product to an order. I cannot understand how to find out which item was clicked though... here is my code:
For example, i browse the web page in browser, at first, i clink "home", home page is show out, then i click the "Contact us", then the "contact us" web page is showing out, BUT the problem is come out when i try to click the home page again, the home page doesn't come out and still at the contact us page...any1 know WHY?Thank you for helping...
Debugging the code, I found that the value of cid is not parsed to the url. Actually, this code <%#Eval("cid") %> is not recognized as a variable, the target url appears to be LearnPage.aspx?cid=<%# Eval("cid") %> instead of LearnPage.aspx?cid=VALUE.
i need 2 disable a link button click.. when i give btn.Attributes["OnClick"] = "return false;"; it will work but when i take the mouse over the button its style is maintained as tat of the link, but the link wont work. ijust want to make it apperar as a label.