MVC Web App Is Auto Minimizing Javascript?
Dec 2, 2010
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.
View 2 Replies
Similar Messages:
Jan 17, 2011
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.
View 1 Replies
Sep 9, 2010
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:
txtYr.Attributes.Add("onkeypress", "return Tab(currentField,nextField)")
Code:
function Tab(currentField, nextField)
{
// Determine if the current field's max length has been reached.
[code]....
View 5 Replies
Mar 17, 2011
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)?
View 2 Replies
May 5, 2010
How do I javascript automatically click on a hyperlink (id is link_page) after 5 minutes?
View 3 Replies
Dec 27, 2010
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.
<telerik:RadNumericTextBox ID="RadNumericTextBox_ExpLocation" runat="server" Width="20px"
MaxLength="3" NumberFormat-AllowRounding="False" Type="Number" NumberFormat-KeepTrailingZerosOnFocus="True"
IncrementSettings-InterceptMouseWheel="false" >
<NumberFormat DecimalDigits="0" GroupSeparator="" AllowRounding="false" KeepNotRoundedValue="false" />
View 1 Replies
Oct 24, 2010
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?
View 1 Replies
Jul 30, 2010
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?
View 1 Replies
Mar 9, 2010
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.
View 2 Replies
Mar 25, 2011
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
View 2 Replies
Jun 6, 2010
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).
View 8 Replies
Dec 2, 2010
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.
Here is the Web.Config file
[Code]....
Here is the Login Control Logic.
[Code]....
View 12 Replies
Jan 16, 2010
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).
View 2 Replies
Jan 8, 2010
How am be able to redirect a page after 5 seconds through code behind file? I cannot simply type Code:
Response.Redirect("page2.aspx")
But is it possible if I'm going to do it through meta tag even if my page is under a master page file?
View 10 Replies
Mar 23, 2011
Is there such a thing that when the page is accessed, this generator will auto generate meta tags for you? I went to a website today and was reading their source (html), find out that their meta tag is generated, something like this:
[Code]....
[Code]....
[Code]....
View 2 Replies
Jan 19, 2010
I know that Visual Studio auto-generates a lot of code when you develop a web application. How do I know which code is auto-generated? I do a lot of code editing and tweaking by hand (Im not a WYSIWYG guy), and I want to make sure I'm not editing something thats going to get over-written later by the auto-generator!
View 2 Replies
May 17, 2010
I need to send automatci emails after a set interval of time
View 2 Replies
Aug 6, 2010
I am using Microsoft Visual Studio Professional 2010. (Also SQL Management Studio for my database but this information may not be needed, just trying to give enough to make sure what i am doing is understood)I am making a website in ASP.NET with Visual Basic.net code behind. The site is basically a contact list site. 3 Text Box Fields. First Name, Last Name, Main Phone #. Add Record Button (Takes the information from the text boxes and inserts into a database) GridView that shows the database that is being populated with the informationI want to be able to type in for example a 10 digit number and as you type in the number... in the text field you see the formatting... (999) 999-9999. I do not want the user to have to put the hypens or parenthesis... just the number.
The number is then taken and added to a database but i only want the number 9999999999 to be sent to the database.I hope it is understood that when I say 9999999999 I actually mean whatever telephone number the user inputs.I also have a GridView that Visual Studio has and I inserted that. After this my next step will be taking that raw number and putting formatting for visual purposes in the GridView. But my question for now is how to do the formatting only in the text field and to only pass to SQL the 10 digit number without formatting. I hope I was clear. I am new to all of this actually. I saw something called AJAX.. don't know if I need it.
View 1 Replies
Jan 19, 2011
I have an Ajax auto complete textbox in my .NET 4.0 asp.net page via a web service, but the browser auto complete dropdownlist feature shows up on top of my .net auto complete dropdownlist.
Is there a way to make sure the browsers auto complete feature does not popup on this textbox? Almost like an override to make sure the browser ?
View 1 Replies
Feb 22, 2010
im using dataAnnotation and meta data for my model classes all all is good however i dont like that it creates an untidy form, and would rather it comes out in a nice table i have set a style for so i have labels next to my inputs etc. now there was a post somewhere that they are created from TT files and that you can set MVC to run from custom TT files but how do i do this? anyone got a link to the post somewhere.
View 1 Replies
Sep 4, 2010
As mentioned here. http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx.Is there another way to do this? By just modifying the application's web.config file?
View 1 Replies
Apr 29, 2010
i am using one text box in New registration page. when ever user clicks on New registration button, The text box of record number should be auto incremented.
View 12 Replies
Feb 4, 2011
I want to make the number for sales orders as an example:
SO/2011/001
(for
sales order
first)
SO/2011/002
(for
sales order
second)
View 6 Replies
Sep 27, 2010
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.
View 5 Replies
Mar 3, 2010
What is the best way to go about auto refreshing an .aspx page? I have a page that is a dashboard of an application, so I'd like it to refresh itself every little while to show fresh data. Also, I'm using Master Pages. I know there is the old HTML style
<meta http-equiv="refresh" content="60">
tag that you can put in the <head>, but I don't want all my pages to refresh if they are viewed, just the Dashboard page.
View 5 Replies