I have four text boxes and am looking to auto tab when they reach their max length. I don't want to autopost back so I'm looking to write a javascript function like this but just can't get it working
Code:
In the Script documents that asp.net automatically generates how can I surround the whole generated scripts with try/catch statement to avoid 'Microsoft JScript Compilation error'
My issue is: i got a DevExpress control (ASPxGridView) that added and set-up in run time, since i activated the grouping functionality in the grid I still get JS error says ';' expected whenever i use (click) on one of grouping/sorting abilities, I activated script Debugging for IE, in the JS code turns out that there is no missing ';' and once i click ignore for the error msg that VS generates every thing works fine, and surly end-user can't see this msg so i figured out if i try/catch the script that may help avoid this error.
I use my web app on the wall as a dashboard type scenario. One thing that would look great would be to automatically move between pages on my site (and maybe others) after a certain time. For example, you setup page x for 2 mins, then page y for 2 mins then page z for 4 mins. Now, I can do this easily inside my existing website. However, I would like to be able to switch to other sites with login where required. So basically a website of its own that just diverts according to a script. Has anyone seen anything like this on the market or have concepts similar?
Note, my webspages are ajax-ified so any timers would not be allowed to interupt updated.
I have this requirements on my project and I don't know where to start. i need to create a web page using asp.net that accept parameters username and password and this page will be called by windows application, so windows app will pass username and password in order log in my web page.
I have a project that just happens to be MVC and in Visual Studio 2010. (I don't know if that has anything to do with it, but I'm just trying to be specific in the problem) The issue is that when I build it it is auto minimizing the javascript and as such makes it really hard to debug.
I have looked at the build events and there are none.
I have looked for any vs extensions that could do this and I don't see any out of the ordinary.
I have edited the project file just to make sure nothing was hidden in it.
I want to make autocomplete facility like the one exists in yahoo mail ,when i write a mail address then i post it by(;) i see a list of mails begin with specific character , when i tried the ajax auto complete i face a problem ,when i write a name and post it by(;)and begin to write the second name , it concatenate the first one with the expected instances of the second one in the auto complete list. i want the same action in yahoo mail how to do this.(no concatenation in the auto complete list)?
I am looking to auto tab from one RadNumericTextBox to the next once the MaxLength has been reached.I can do this in classic ASP, but cannot figure it out in .Net. Below is an example of my RadNumericTextBox.
I want to make auto partial page refresh in asp.net. There is UpdatePanel but it sends too much data. So I've found that I can make a webservice and call it by the JavaScript code. But I don't know how to call webservice automatic. There are many examples showing how to call webservice by the button click event:
[URL]
How to do this by the interval? Am I going in good direction?
I have an implementation for my website to have facebook single sign on, using their javascript sdk.The javascript adds the cookie and I deal with it fine.The question is related to when an user logs out of facebook, I would expect the auth.sessionChange or auth.logout events to fire, but that only occurs when the page is refreshed.As my implementation is done server-side, this means that after the user logs out of facebook they can access one secure page one more time before being properly logged out.Is this the normal case or do these events usually fire up straight away and I'm maybe doing something incorrect in configuration of the facebook app?
I run into this problem while playing with accordion for a project. Sometimes VS 2008 auto generates code, without me wanting to!!!. Less generally I have an Accordion with 2 Accordion Panes in it. When modifing properties of the Accordion VS 2008 adds an Accordion extender and duplicates the two Accordion Panes!
My original code
[Code]....
My code after pressing space between the properties of the Accordion
I have a "database explorer" page that is desgined to be pointed to an unknown database and allow users to browse the data, so it basically uses the SQL system tables to develop its queries and pull in data to tables using auto-generate columns.The problem that I have is that I would like certain types of columns to have certain formats and I'm wondering the best way to go about it. I could format the column in code in the RowDataBound event I assume, but I'm wondering if there some better standard way to do this? Is there a setting of any kind that I can use? For example I want all of the datetime fields to be formated for short date, like {0:d}, I want decimal fields to have 4 decimal places, etc.
suddenly, with my Visual Studio 2008 I can no longer debugging my web applications (ASP.NET 3.5). I obtain this error: Unable to start debugging on the web server. Click Help for more information. Auto-attach to process [8360] w3wp.exe' on machine 'DELL' failed. The weird thing is that I haven't done special changes to my IIS.
I have project in asp.net with sql server backend.i want to auto generate a number for particular column.with the auto generated number i want to insert some other data in the same row same table. on button click event.details
railway PNR no.:- want to autogenerat passenger details:- want to inserted simultaneously
I have a simple online web system where it possible for the visitors to "play around" with the system. They can like create categories and products and so forth. Everything they create are stored into a database.
What I want is to be able to reset this database with my default values (table data) every n hours.
So for example if we have a bunch of users that have played with the system and created new things. Then I want to be able to make some kode that deletes all data in the tables in this database and fill it with default data. The default data can come from a backup file, or another database with same tables structure or whatever.
I want this task to be done every day at 12 pm or every n hour.
Is this possible (by forexample scheduled webservice tasks or just something as long as it is simple).
I'm trying to implement automatic lockout after 3 password failure attempts and then to auto unlock after 3 mins. But it does not auto lockout, I can still login if i use the correct password within the 3 mins.
do you think it would be difficult to write a framework where mvc compares last html it output to the current html we want to output, and instead of sending the entire html, figure out what has changed and generate js code that will do the updating as compared to previous html? (presuming nothing was manually changed on the client using js).
Javascript Initellisense keeps giving me errors in VS 2008 SP1. Whenever this happens, VS becomes unresponsive to the point where I can't get anything done. I would like to disable Javascript Intellisense temporarily to see if this is the issue. How do I do this?
This page will refresh every 10 seconds. This is because we're using the 'onload' event to call our function. We are passing in the value '5000', which equals 5 seconds.
</p> </body>
Now my aspx page is using Content and referencing masterpage, Page Language="VB"
When I try to add this code to a new page it works fine and page refreshes as desired, but on existing page it gives error-ErrorValidation (XHTML 1.0 Transitional): Element 'body' cannot be nested within element 'td' ....
I am getting an object required error and I understand it's because the object I am looking for doesn't exist yet, but I don't know why it doesn't exist yet. Here is my code:
Code: <tr><!-- This is the row with Effective Date --> <td nowrap valign="top"> <asp:label id="EffectiveDateTitleLabel" runat="server" Width="120px">Effective Date:</asp:label> <p></p> </td> <td nowrap valign="top">
[Code] ....
What I want to accomplish is when the selected effective date is greater than 01/01/2014, hide the TotalEmployees dropdownlist (and label, but for now I'm just trying to do the DDL).
Here's the js:
Code:
<script type="text/javascript"> function SetTextArea(selectedValue) { alert("selected value changed to " + selectedValue); var selectedDate = new Date(selectedValue);
[Code] ....
I get the alert that it could not find totalemployees. Is this because EffectiveDateDropDown is in an UpdatePanel so the two dropdowns don't exist at the same time? Or something like that?
I don't have to use JS. I thought it would be easier than using AJAX. But it's not if it doesn't work.