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:
i have VS2010Pro, i installed Ajax3.5 because im working on .Net3.5 framework. i created a registration form, after i applied Scripmanager, then i clicked on Textbox & select Add Extender, i use Watermark extender. i write all the values... wtever it is in ASP.net AJAX website tutorial, after it i run to project ....there is no watermark on the textbox. i have IE8 & Firefox browser but both not showing the watermark here is my code that i applied on textbox:
I 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:
I am populating a webpage with information from a database into multiple dropdown lists. However the problem I am getting is happpening on a single dropdownlist example that is posted below.
I am preselecting an index in the dropdownlist in the page_load sub, when I change the value on the dropdownlist and request the webpage to show the value that is selected, it reverts to the index that was preselected in the page_load code!!
I have a project that queries a set of times from a database and uses these entries to populate a dropdownlist. Once the page is loaded, the user can select one of the items in the DropDownList. When the "Save" button is clicked, the Selected item value is returned to the [HttpPost] version of the controller action. This item is then stored into session. If the system returns to the page containing the dropdown, I want the saved Value to be selected in the DropDownList. What actually happens is that the DropDownList is always set to be the first item in the list.
Database Table: This data has been imported using Link to SQL
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
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.
How can I avoid the waternmark text to disappear when I click on the button?
I have a question about watermark extender. I used it to apply to a password textbox and confirm password textbox with password text mode. I found some site recomending using picture so that the word "Password" and "Confirm Password" will be shown in the textbox. For some reason, in the confirm password textbox, the picture doesn't show correctly. It is like some part is omitted. I try to check on my local computer and it was fine. But when I check on my computer at home. I got that weird problem. Why is it like that?
I need to add an item in a dropdownlist and also modify the value of that item, but im getting an error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"here's my Page load
Dim rt as new OleDbCommand("Select * from Question ", con) dim rd as OleDbDataReader rd = rt.ExecuteReader Dim a as new OleDbCommand("Select Count (*) as C from Question" , con) [code]...
I want to place a watermark inside the password textbox of the ASP.NET Login control. I have changed the login control to a template so I could add the TextboxWatermarkExtender control. As you might guess, the textbox has its textmode property set to Password and as a result the watermark appears as a bunch of dots.
I got a QQ on AJAX Reorderlist Itemtemplate. I am using two reorderlist controls with in a page. Reorderlis1 contains pending records. I just load the pending records. the records can be moved from Reorderlist 1 to Reordrlist 2 with add button. In this table I am not doing reordering .
Reorderlist2 contains Queued records. In this I will do the reordering, the records which are there in Reorderlist 2 , transfer the records into the tasktable. In this table I have the cancel button also. If user don't want to update some records they can moved back those records from Recorder list 2 to Recorderlist 1. I am done with this part.
My 1st QQ:
Now I added Dropdownlist control to the Reorderlist 1 Item tamplate. Item template dropddownlist is my user control.My dropdown list contains the list of years. So I am calling my Usercontrol method with the Itrmtamplate dropdownlist ID. Here I got below error. 'ddlbeginyod1' is my Reorderlist Item template dropdownlist ID Text. Why?
Error:The name 'ddlbeginyod1' does not exist in the current context.
I tried adding the dropdownlist in insertitem template also. There also I got the same issue.
I never worked with Ajax Reorderlist control. I am very confused with this control.
I can add Dropdown list to the Reordrlist Itemtamplate right ? I
f I can add the dropdownlist into the item template I have 2nd QQ?
- If I can load the dropdownlist. For each row I will be having the year dropdownlist right. When user selects first row and moved from the reorderlist1 to reorderlist 2 with add button. he has to select the year of that row.
I need to send year value by each row to task table. Can I do that with reorderlist item template.How can I store the year value.If so, how can I do that? Please any one know the answer ,
i have two dropdownlist.i bind somthing to first dropdownlist from database.I want when I select an item from dropdownlist1 see some item in dropdownlist2 .but when i select item from dropdownlist1 ,I give this error.
i wrote this code but it doesn't work.
for binding item to dropdownlist1 i wrote this code:
I'm trying to use the TextBoxWatermarkExtender with MaskedEditExtender/Validator and have found a bug (I think).
In the textbox I enter an invalid date such as 55-55-5555 and exits the textbox. I would then expect the watermark to be shown, but it doesn't. Instead the prompchar is shown (like __-__-____).
If I simply give focus to the textbox and then another control, the watermark is shown.
Is there a workaround such as manually force the TextBoxWatermarkExtender to update.
I cannot figure this out, why isnt the selectedIndex not firing. My dropdownlist should select the item being selected however it goes to the top every time page is loaded. DDL is set to Autopostback and its viewstate is set to true The DDL is binded once. So when SelectedIndex is changed it should call the bind method however it doesnt. I have the exact same coding on another page, which works.. but not on this one
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Width="125px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" ></asp:DropDownList> public partial class ProductList : System.Web.UI.Page public string text = "", image = ""; protected void Page_Load(object sender, EventArgs e) if (!this.IsPostBack) //!this or !Page string sql = "SELECT * FROM ProductsClass"; DataTable dt = access.GreatDs(sql).Tables; DropDownList1.Items.Clear(); for (int i = 0; i < dt.Rows.Count; i++) DataRow dr = dt.Rows[i]; string name = dr.ItemArray.ToString(); this.DropDownList1.Items.Add( new ListItem( name ) );........