This works fine but from a performance standpoint this is not good as the pages are making a lot of requests to the webresources.axd and scriptresource.axd files. When I changed the CombineScripts property to true my ASP.NET AJAX control extenders are no longer working. What is the reason for this weired behavior and is there a fix for this?
What is the purpose and proper use of the max-length property on text fields?
The application I'm working on limits numeric fields to 6 characters... which doesn't work very well for entering millions of dollars... which is why I'm "fixing" it.
I am using Media Player Control to play a video file(.mpg). The video file can be played ok when I specify an absolute URL value (something llike C:UsersMyFilesMyVideoTestVideo.mpg) for the MovieURL property . Anyway when I set a relative URL value like ./TestVideo.mpg (the format follows an example from some tutorial) for the MovieURL property, the video file cannot by played.
I have a User Control (ascx) and a property which a want to display in my categories tab in Visual Studio in the category named "Styles".
[Code]....
And here is the problem: Actually I do not need a get, because I only have to set the property (write only property). But when I omit the get, the property is displayed in the "Misc" category in the categories tab in Visual Studio. Only when I code the get as well, then the property is displayed correctly in the "Styles" category in the categories tab in Visual Studio.
Does anybody know why? How can I display the category correctly only with set?
I am assigning a value to .Text of a textbox retrieved from a database in Page_Load() but no characters are shown in the textbox after doing this. The value is indeed there when I try to read from it after the assignment. I would like to present some characters to the user even though they are the "dotted" password characters so they know a password has been entered here. Is it possible to do this?
my textbox and gridview is in a updatepanel (ajax) .
i want to update gridview when textbox length equal some number
for exmple (textbox.length==3)
how can i know text box length when user is typing ?(before leave textbox) ------------- more :: whit javascript we can know textbox length but how can update gridview in javascript (I thing we should use gridview1.databind())
i have a textbox in my web form and i want to input any word with any character. so, only i want to check length of textbox less than 200 character. how can i do it with regular expression? and if i want to block some character how can i do it?
i added autocomplete extender its working fine but the suggestion list half bottom is not showing because its exceed the length of the div containing textbox
I need to construct a regular expression for the password textbox, Min:8,Max:16 and must include atleast a number(0-9),alphabets upper and lower case. I am unable to limit the length to 16.
I am trying to add a validation of the textbox.text.length in a FormView and prevent the insertion of being made in case the text length is not compliant (less than four characters).
In the scenario when clicking the submit button an Alert should appear with xxxx warinig text. and the Insert command being prevented.
In my Asp.Net project I wanna use Property Auto-wiring, e.g. for my ILogger. Basically I placed it as Property into class where I need to use it. Like below.
[code]....
Update:
- I didnt mentioned before, but its Asp.Net webforms 3.5. - I can't see what I am missing. I guess it could be because the injection gets involved later in process and didnt get set in requested class.
I'm looking for ways to reduce the size of my page . I have a page that just renders a gridview - no images - and it is over 400k!
Looking at the html that is generated I see the names of the controls in the gridview are very very long. For example: ctl00_ContentPlaceHolder1_releaseGV_ctl149_lblBuy
My gridview is about 200 rows by 13 columns = ~ 2600 spans with very long names rendered. The above example is 49 characters X 2600 controls = 127,400 characters just in control ID's!
The actual data on my page ins't anywhere near a tenth of that!
I am already storing viewstate on the server.
YES, I will put a pager on this page to bring down the number of rows. Also, I've seen sever other posts related to page size with some excellent content. I will follow up on them - however I have not seen this specific question answered.
Here is a sample of my page. As you can see there is not much data and a lot of html!
On pressing enter key, I want and image button's click event to get fired. So i have placed the textbox and button inside a panel and given the image button's id in 'DefaultButton' property of the panel. But on pressing enter key, the image button's click event does not get fired. The code is pasted below:
[code]....
Also provide code for search textbox function present in stack overflow website. On entering text in textbox and pressing enter key, the search function should get executed.
I'm making a website that requires ads being repeated down the length of a page with dynamic length. I want the ads to be displayed down the entire length of the page, but I won't know that length until after the data has been displayed. Is there built in functionality for this in .NET? If not, does anyone see any workarounds I could employ to do this for me?
Since I'm new to coding and I'm trying to understand why here is a little more detail on the question.If you have a text box and you are limiting the input to say 2 charactrs do you really need to validate the input further? What I have is a text box that has a max length of 2. Is there a security reason to add a validator to the textbox. I should add this is in Asp.net.
I 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?
if the menuitem included a navigateUrl , selected property does not work. Have anyone encounter the same problem as well? what I want is selected a menu item, and asp.net bring to some page with the selected menu item's color changed.
What do I have wrong here? This page is essentially broken into 5 divs, the middle 3 divs that represent the left, middle and right page columns are wrapped in a div with the id content. I linked to the page if you want to view the source. It wouldn't go in this message as a snippet very well when I tried.
Here is the style for #content
#content { background-color:White; }
How do I get the whole background of #content to show as white? link to a live version of[URL]