Web Forms :: Adding Text Over The Image (Ad Rotator)?
Nov 17, 2010
am using ad rotator on my form. everything is working as planned. The image shows on the page.
Is it possible to have text as well to display over ( on top) of the image.
What are my options?
View 1 Replies
Similar Messages:
Nov 6, 2010
Not wanting to reinvent the wheel, I found an image rotator on Code Project. Since it was based on tons of javacript, I thought it would be okay, since it was made into a web control, so all you had to do was reference the dll, set a few properties and it worked (VS 4.0, ASP.NET 4.0) in the IDE.
It doesn't work on my host site unfortunately. Does anyone know of a picture, or image rotator that is public domain that is based on ASP.NET/C#.
View 1 Replies
Feb 17, 2011
I am trying to combine text and an image on a LinkButton:
<asp:LinkButton ID="btnTest" runat="server" Text="Book">
<asp:Image ID="imgTest" runat="server" Height="8px" ImageUrl="~/DropDownArrow.png" Width="10px" />
</asp:LinkButton>
So far, this works.
However, if I change the text of the LinkButton in the code-behind, I lose the image.
btnTest.Text = "New book name"
I have tried removing the LinkButton's controls in the code-behind and recreating the image along with changing the text, but it still doesn't work. I get either the image or the text but not both.
btnTest.Controls.Clear()
Dim NewImage As New Image
With NewImage
.Height = Unit.Pixel(8)
.ImageUrl = "~/DropDownArrow.png"
.Width = Unit.Pixel(10)
End With
btnTest.Controls.Add(NewImage)
btnTest.Text = "New book name"
How can I change the text in the code-behind and still retain the image as well?
View 3 Replies
Nov 11, 2010
I'm trying to install absolute content rotator and I execute SQL file and all stuff get put into the tables etc but when I go to the place where I uploaded the content editor I get this error below.
[Code]....
View 4 Replies
May 8, 2010
i have an image and an imagebutton, they are inside a listview and get their imageurl from databinding, i would like to know, if maybe the databinding value is empty, instead of showing a big red x, is there anyway to maybe make it link to a default image when the value is empty instead?
View 2 Replies
Feb 11, 2010
I tried it but it doesnt show me in IE.
I am basically downloading a file from a webpage and saving it to a location and then i gave the path of that file as input to the
Image.imageurl property but i dont get the required reuslt ??
View 4 Replies
Sep 8, 2010
how to convert both text and image together into an image. To clarify my question I can say if I have a text editor where I can add both text,image,audio or video player, how canI convert the whole texteditor.text (it gives me html code) to an image and save it in a file.
View 3 Replies
Dec 17, 2010
I am using Editor in asp.net application.
View 3 Replies
Jan 21, 2011
how to add a dropdownlist on top of a image? Can it be done by simply using absolute position?
View 5 Replies
Jan 3, 2011
I just want to add and attribute called "pubID" to an image button with the value I give it and then call that value on the image button click event. This image button was created dynamically as well. At the moment this code is not working. When debugging it looks like Pubid is getting assigned a value but on the click event, the attribute isn't being retrieved correctly.
--added attribute
[Code]....
View 3 Replies
Oct 13, 2010
I have two text boxes called starttime and endtime which are datetime sqldbtypes that I want to subtract the value to show in a duration label. I know that you can do a subtraction with datediff in t-sql to find the time difference, and I'm wondering if that's the best way to approach this. Here is the code from my default.aspx.vb page:
[Code]....
View 5 Replies
Oct 6, 2010
I saw this thread but it doesnt quite cover what I'm looking for:[URL]I have two text boxes that will have a start time and an end time and what I want to do is to calculate the "duration" of the time between them while also accounting if a time starts before midnight on one day and ends on the next day (or any other day for that matter.) Then those values will be put into a SQL server database stating just the "duration."
View 4 Replies
Feb 25, 2010
I am working on an application, where a user will enter their primary information (Name, Address, Email, Phone etc), then enter their automobile information (usually a fleet of automobiles).
My web page currently has one row of text boxes (Car Make, Year, Model, VIN, Mileage, License Plate)
Below this is a button called "Add More Cars"
What I am trying to do here is allow the user to add more cars if they have more than one that needs to be registered.
My problem is how do I do this dynamically?
2nd problem, how do I collect the data entered by the user (for all cars), to be able to write them to the database?
View 2 Replies
Nov 18, 2010
I have an image ItemTemplate within a FormView, where the ImageUrl is the photo_file_name. However, I want to add "~/uploads/" at the begining of the photo_file_name.
Below is the code:
[Code]....
So for example, if the photo_file_name is Jellyfish.jpg I want it, the ImageUrl to be ~/uploads/Jellyfish.jpg without having to change the photo_file_name in the DB.
View 4 Replies
Jul 28, 2010
I am binding a string to a datagrid.
I want to add text around the values coming up on the datagrid..
for example
DataGrid1.DataSource = mystring;
DataGrid1.DataBind();
is the current code
but i'd like
DataGrid1.DataSource = mystring;
DataGrid1.DataBind("the result is: "mystring". thanks for looking");
View 11 Replies
Sep 24, 2012
I need to add Images in my Rich Text Box editor after a paragraph. I have gone through this article and it is very useful.
{URL] ....
But I have some question:
1. Can I add multiple images in this Rich Text Box.
2. After adding images and content in Rich Text Box, I want to save it in database. So where will I save images and content. I mean images in folder and content in database or both in database.
View 1 Replies
Oct 31, 2010
Is there a way to process images once uploaded to my asp.net site, to put a watermark or some text across the image to copyright the images? I would like to do this server-side if possible.The other option I have discovered here [URL] would be to store the images as they are on the server, but to manipulate the display so it appears the image is watermarked . However, this solution is in PHP. Does anyone know a good PHP to VB.NET translator?! Or does anyone have a good suggested link, idea or code? Or can I add PHP to my ASP.NET site?
View 4 Replies
Mar 26, 2010
I have been struggling for a while now to get this code working. In my mind, it should be fine. However, I cannot get this code to pass back an image url. If I explicitly name the image URL it will show, but the code will not return (or perhaps might not properly call) the url. Here are my 2 bits of code:
[Code]....
View 11 Replies
Jan 7, 2010
I need to have a function created for a website(asp.net 2.0) that will allow the user to add text to an image and preview the image with the text on it.
View 2 Replies
Nov 11, 2010
I'm trying to add html text to some repeater items during DataBind, but the html text isn't parsed into controls it just displays as text. If I copy the text and just add it to the asp.net page it works fine so I know my syntax is fine. So is there a way to dynamically add more html text during the data-bind phase?
View 4 Replies
Feb 25, 2012
I have a textbox where data will be entered by user without any postback. I need to add the data to a variable or any hidden variable or i need to store data from all the controls on th epage in which user entered to a variable this controls in which user enters the data becomes visible on button click i mean a post back happen...
View 1 Replies
Sep 4, 2011
I am showing images of members on my website. The images are already saved to file. I want to add some text to the image that is loaded in the image control. I don't want to save it to file, just display the change on that web page. I have seen code on how to do this but I do not see how to load it into an image control. Is this possible without saving it to file?
View 2 Replies
Jun 28, 2010
I am adding text fields to a page from the database. I set the .ID to match the record ID from the database. Of course becasue the text field is on the masterpage, when I grab the .ClientID, it is ctl00 contentMain$ctl00. what I don't get is where is my ID? If I set it to say AB how do I find the textbox by AB? I thought it should have AB in the ID somewhere. ID is nothing which I don't get either. I'm looping through the controls in a placeholder like this
For Each row In dtData.Rows()
Dim c As Control
For Each c In phTextRequired.Controls
If c.UniqueID = row("CustomFieldID").ToString() Then
Again though what is in the row() is say AB but the id is way off from that.
View 4 Replies
Oct 22, 2010
I have a datalist control
In it, I have a hyperlink that im binding the url, and the text to from a mysql database
here is my code so far
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%#Bind("topicid") %>' Text='<%# Bind("title") %>'></asp:HyperLink>
Now, the problem is, the field "topicid" returns a number, such as 3. I want to add the following text before it: viewTopic.aspx?id=
So, ideally, i want something like this
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# "viewTopic.aspx?id=" + Bind("topicid") %>' Text='<%# Bind("title") %>'></asp:HyperLink>
But, when I do it that way, I obviously get an error.
So, is there any way to solve this problem without having to modify the database?
View 4 Replies
Feb 25, 2014
How to WaterMark images ( Add Text over image )
View 1 Replies