Web Forms :: How To Create Textbox With Watermark Text
Sep 3, 2013I want to create a text which contain a water mark .....but the condition is when i click inside the tetxbox the watermark want to disapper
View 1 RepliesI want to create a text which contain a water mark .....but the condition is when i click inside the tetxbox the watermark want to disapper
View 1 RepliesMy textbox is
<asp:TextBox runat="server" ID="txtDate1" Width="120px" onclick="tryPlaceholder(this,'dd MMM yyyy')" onblur="tryPlaceholder(this,'dd MMM yyyy')" />
function tryPlaceholder(txtbox, placehold) {
if (txtbox.value.length == 0) {
txtbox.value = placehold.toString();
[Code] ....
Its run okay with javascript. but i want solution through server side for textbox withing placeholder control inside asp.net .....
I used it to put text watermark but font of text is solid I want it has transparency how I can do it?
View 1 Replies[Code]....I am seeing an empty text box watermark css is not applying and the text type first name here is also not getting displayed insde the text box.
View 1 RepliesI used to show the text using TextBoxWatermarkExtender.
The text is so big.
How to break the string in the text in the text box that is shown using TextBoxWatermarkExtender
I used below code to upload image and put watermark on it
protected void BtnUpload_Click(object sender, EventArgs e) {
uploadImageError.Visible = true;
if (fup1.HasFile && fup1.PostedFile.ContentLength < 102400) {
string watermarkText = "behtop.com";
string path = Server.MapPath("~/image/House/product/");
[Code] ....
Problem is when I upload image and click on btnupload it shows image in new window with watermark text but it doesn't save it into host...
I want when I click on btnupload it doesn't show image in new window I want it just uploaded image with watermark into host...
How I can do it?
How to set the text property of an asp textbox with watermark extender in javascript?
View 4 RepliesI want use this watermark: [URL] ....
But I want used in formview, how i change code in C# ?
and this is my FormView:
Asp.net
<asp:FormView ID="FormView1" runat="server" DataKeyNames="id"
DataSourceID="SqlDataSource1" DefaultMode="Insert" Width="1200px">
<InsertItemTemplate>
<table class="style1"><tr>
<td valign="top" class="style5">ناونیشان:</td>
[Code] ....
C#
protected void Upload(object sender, EventArgs e) {
string watermarkText = "© test.com";
//Get the file name.
string fileName = Path.GetFileNameWithoutExtension(FileUpload1.PostedFile.FileName) + ".png";
//Read the File into a Bitmap.
using (Bitmap bmp = new Bitmap(FileUpload1.PostedFile.InputStream, false))
[Code] .....
How we can set image in the textbox in place of text like as watermark textbox in asp.net.
How it can be possible...
Is there a way to upload image and save to folder with watermark of Copyright on image ?
View 1 RepliesI used below code for insert watermark to photo
[URL]
here it writes watremark text is straight line (horizental)
How I can rotate text of water mark?
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 RepliesI included a Textbox watermark in a webpage and uploaded it to my server. I can't see the watermark on the textbox hence I get an error ASP.NET Ajax client-side framework failed to load.
View 1 RepliesI have been trying to use ajax in my asp .net website developed in 3.5 sp1 2008! The problem is I can see tool kit controls in my tool box but i can not use the controls. like i was using the text box watermark effect but when i run the website the text-box does not show effect and there is no option in text box to add extender. there is only remove extender option. I have code:
<asp:ScriptManager ID="ScriptManager2" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
First name:
<asp:TextBox ID="TextBox1" CssClass="unwatermarked" Width="150" runat="server" />
<ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
TargetControlID="TextBox1"
WatermarkText="Type First Name Here"
WatermarkCssClass="watermarked" />
</ContentTemplate>
</asp:UpdatePanel>
I want to ask how I can create a waterMark for a image runtime in other words I want to write some text at every Image I show in my site.
View 1 RepliesI'm looking to create a simple watermark on the fly for an image, taking one image (JPEG) and adding some text to it on the BOTTOM of the image in white, with a solid black background right across the bottom. haven't been able to find anything that does it on the bottom of the JPEG.
View 2 RepliesTotal AJAX Newbie here. Using VS2008 and vb.net.
I'm trying the watermark extender out and I can't seem to get it to work?
Don't know if it might be version issues?
I've got two textboxes and 'n want them watermarked but when the page runs, there are nothing happening?
Here is my code:
[Code]....
My problem is that I want to display a watermark on password field i..e Enter Password. But it is appearing as **********. I have seen it on facebook that when i see it first time text is appearing 'Enter Password' and when i enter my password it appears as *****. I know that with some dirty workarounds I can fix it. Is there any good solution for this here is the code which I am using
[Code]....
I have 2 "Updatepanel" controls. Each contains a textbox linked to a "TextBoxWatermarkExtender", and a button. When I click on one of the buttons without to enter any text, all the watermark text disappear on BOTH updatepanel when they should remain visible.
[code]...
How can I avoid the waternmark text to disappear when I click on the button?
I am doing a project on digital watermarking. This is the process. The user will choose his image file to upload, chooses his image key(either from the visual studio gallery-folder name is Image Key, or he chooses his own from the directory).
He enters a password, and this password will be embedded into the image uploaded.
Next, there is an option to digitally watermark the image (This is where I am having problems - stuck with the codes)
Here is the work so far, and I couldn't get any further.
FileUpload UI + code behind
[Code]....
[Code]....
WatermarkController (Business Logic)
[Code]....
I am trying to create a watermark image on the background , i am wondering what option can i use to call image file from my APP_Themes folder insteaed of my hard drive ) Currently i am using this but couldn't figure it out how to call from APP_Them folder of application rather than being specific.
System.Drawing.Image img = System.Drawing.Image.FromFile("c:\Logo_large.gif");
I have a page that display like a print pre-view. It shows the watermark in the background. But when I print it, it doesn't include the watermark. I know in IE7 you can change your IE settings to make it print the water mark but in IE8 you can't do that. Is there another way to print my water mark out? Here's that part of the code:
[Code]....
I am using CreateUserWizard control on my admin page.After successfully creating a user with the control, it displays "Complete Your account has been successfully created."After clicking on continue button it sets the ActiveStepIndex Correctly.The problem is, while it sets the ActiveStepIndex correctly, it retains the old user account credentials.
View 8 RepliesI have a page with a text box, a button and a GridView. Enter an account number in the text box, press the check button and the result will show in the GridView.
Now user wants that if the text box is clear, the GridView disappear.
I can only find TextBox1_OnTextChanged. But I want to have that while the user is clearing the text, if the length of text becomes zero, the GridView is clear out. So I am looking for OnTextChanging(). Well of course this function does not exist. How to achieve the same purpose?
I have an asp page with a textboxes, labels and other controls. I cannot get the .text to change in any of these controls. I click on button which I execute code that I expect to update the text but it doesn't work. Something like Textbox1.text = "Hello" Are there page level properties/settings I should look at? I am perplexed an looking for a place to start. I will provide more information as needed. I just don't know where to start.
View 3 Replies