Javascript - Using MS Ajax Minfier 4.0 For MVC 2.0?
Jun 30, 2010
I am planning to use MS Ajax Minifier with Asp.Net MVC 2.0 for handling the Js and Css files. Does anyone has experience with MS Ajax Minifier? I have following questions regarding this.
Is it the best way to use JS/CSS files in Asp.Net MVC or is there a better way. E.g. YUI Compressor, Telerik Extension for MVC?
As I understand we can use this to convert SomeFile.js to SomeFile.min.js at the build time. However In my mvc Views I still have the Script reference pointing to SomeFile.js. How does the browser will pick the SomeFile.min.js file?
View 1 Replies
Similar Messages:
Apr 6, 2010
I am using ASP.Net 3.5. I have fiiled dropdown list in javascript using ajax service but unable to get its selected value in button click event on server side.
View 1 Replies
Jun 12, 2010
I'm using a an Ifram that switches between several pages, each page contain a report viewer and takes time to load (about five seconds) since I'm using an Ifram the end user will not notice the loading of the page behind the seen (report pages) he will only notice a quick loading of the Ifram page ! so I tried to use the update panel and the update progress to show a waiting or loading progress image when the page loads or post back . but this doesn't work in Ajax since Ajax is not compatable with the report viewer .is there any way to show a progress waiting message during the page load using Javascript ?I Found many scripts like this that show a waiting message or image BUT the script starts after the page loads completely (a silly loop for 3 seconds maybe then hide the message )
View 1 Replies
Aug 5, 2010
I am wondering if it is possible to create AJAX Toolkit control using JavaScript/JQuery or not. I know that I can create controls at server (at design or code-behind) and interact with its properties using JavaScript but I would rather want to initalize and create controls at client side using JavaScript/JQuery.
View 3 Replies
Mar 16, 2011
I know that I can receive an javascript object from the server via ASP.NET AJAX using Json. But I am not sure how can I send an javascript object from my client-side javascript to my server-side code. And if I can, how can I extract this object in my server-side code and access its members?
View 1 Replies
Jan 19, 2011
how to make a proper ajax request in javascript function? can somebody give some clear and simple examples based on asp.net mvc technology?
View 1 Replies
Nov 7, 2010
I've created an update section of a page using Ajax panels with JavaScript as the trigger, following this great tutorial:
[URL]
I've got the page working just fine, but I run into a problem if I move the update panel and it's contents into an EditTemplate section of a FornView. I think this is because the JS I'm using can't find the Update Panel once it's in a FormView.
This is the JS I'm using:
[Code]....
View 4 Replies
Aug 11, 2010
in my web site i used javascript as well as Ajax control..when i use both the things some functions r not working properly..i want to use update panel in my page..how to avoid the proplem..
View 3 Replies
Nov 3, 2010
I m getting a value into Textbox using Javascript. That textbox value may or maynot changes when I click on button in the same page.
When textbox value changes, I want to trigger the textbox event automatically and want to display the info on the same page.
Simply, whenever textbox value changes, I need autopostback. But I dont want to postback whole page.
View 7 Replies
Feb 11, 2011
have a wizard control in an aspx page which is enclosed in a update panel. Each step in the wizard control is a user control. In one of the user controls I am using syncFileUpload control, and I am calling a JavaScript function "UploadComplete" on the
"OnClientUploadComplete". But when I run the program I am getting a javascript error "UploadComplete" not found.In the main user page I have
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Wizard ID="wzdDocAdmin" runat="server" ActiveStepIndex="0" BackColor="#F7F6F3" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" Width="100%" DisplaySideBar="False"> <StepStyle BorderWidth="0px" ForeColor="#5D7B9D"
HorizontalAlign="Left" VerticalAlign="Top" />
[code]...
View 3 Replies
Aug 31, 2010
I have 4 collapsible panels on my page. Now i am using below javascript code for expanding and collapsing all the panels at the same time.
[Code]....
[Code]....
[Code]....
View 2 Replies
Nov 24, 2010
asp.net project written with vb:
have an update panel that encapsulates a radiobuttonlist which does not update, in certain browsers, without manual page refresh. i am able to make this work using <asp:postbacktrigger controlid="aControl"/>, but only want to refresh the page if browser
is Firefox or Flock (two browsers having the issue). i am not sure how to do this, but am open to either javascript or code behind. any suggestions?
[code]...
View 4 Replies
Mar 10, 2010
I am planning to use a Javascript call to a WebService to retrieve data from the database. At the moment I am using Ajax to do this. But since the Ajax is slowing down the performance of my application. I have read in some article that even though Ajax only refreshes the Update panel contents, Ajax does a full round trip to the server. What I need to know is how can I populate a Grid from data coming from a WebService via a Javascript call.
View 3 Replies
Mar 29, 2011
I have a ModalPopupExtender in markup. When I try to attach to it in javascript using getElementById('ModalPopupExtender1') it doesnt work. So when I viewsource code it on shows up as a function. Why?
[Code]....
View 1 Replies
Mar 10, 2011
Basically i have two asp.net buttons on my asp.net page as follow:
[Code]....
and this is the code behand fo btnSave onclick event:
[Code]....
and this is the code behand of btnPreviwe onclick event:
[Code]....
as you can see, when the btnSave is clicked, it is programmatically clikced the btnPrevew first, and btnPreview registers and fires the required JavaScript. But actually once the btnSave clicked, it does go to the btnPreview_OnClick event, but for some unknow reasons, the javascript in btnPreview_OnClick doesnt work, however, when i just put cstext2.Append("alert('hi')" instead of cstext2.Append("'SaveSignature()'", the javascript does executed, and also if i modifed the asp.net code for btnPreview to this, it works too.
[Code]....
View 5 Replies
May 20, 2010
Im having a tabcontainer in which im having one more tab container which consist of 3 tab panels.what i want that when i click the parent tab panel i want to change the child tab container's activetabindex.
[Code]....
[Code]....
Im getting activeTab NULL.
View 3 Replies
Jan 25, 2010
I would like to know what are the best practices in using Javascript in ASP.NET in a pre-AJAX and pre-jQuery era. What I meant by pre-era is not the time before AJAX/jQuery was created, but rather the time before it is popularized and widely adopted (by a significantly large number of programmers).i.e. Is it good thing to store the script in a string variable and register it on demand (RegisterClientScriptBlock) or on startup (RegisterStartUpScript)?Although in using Javascript in ASP.NET, its usage in PHP and JSP are also welcome.
View 1 Replies
Jan 18, 2011
In my web site i'm using Asp.net web service (using javascript) to update certain values to DB. I'm concered about the security threats. How can i secure ASP.net Ajax web service using javascript
View 6 Replies
May 19, 2010
I have an asp.net 3.5 page with between 5 and 15 dynamically created sliders/textboxes. I would like to have a button that the user can click to reset all the sliders to 0 (far left position).
I have no problem finding the sliders and setting their values; the problem is in redrawing the sliders back to the far left position. No matter what I try, the sliders stay exactly where they were, even though their values are all now 0.
View 2 Replies
Jan 19, 2011
i would like to update follow div with ajax request written in javascript method.
asp.mvc view:
[code]...
it schould work without any controller action.
method for FeedUpdating is written in HomeModel.cs / GetAllFeeds() and it works. I need just call it from javascript
View 2 Replies
Jan 10, 2011
I have a main page with one update panel
Inside that I have registered usercontrol. within this user control I have written some javascript
This js does not get rendered when page is loaded/opened.
View 2 Replies
Feb 7, 2011
I have a page with an AJAX TabContainer and 4 AJAX TabPanels and have Save button. On a button click im calling javascript thats make ajax tab disappear why?
View 4 Replies
May 6, 2010
I have a complex webform with a dynamic number of controls. I need to create some of them dinamically. There is no problem with asp.net validators, texbox, dropdownlists... but I can't find the way to do it with the autocompleterextender.
View 6 Replies
Apr 23, 2010
I cannot determine why this is happening, but I have narrowed it down to the javascript in one of the controls in an updatepanel.
ASP.NET 2.0 aspx structure:
A formview contains a large updatepanel. The updatepanel contains all the controls on the page. Only three controls are autopostback=true: two dropdowns and a checkbox.
The last three controls in the updatepanel are textboxes. Their autopostback=false. Each textbox has an anchor whose javascript launches a pop-up calendar window. The pop-up calendar selection populates the corresponding textbox. No problems there.
The bug happens whenever I fill in all three dates at once (I launch the calendar three times and select a date each time), and then I click Save. The form's save action fails because the code can no longer get to the controls in the formview. The formview.controls.count is zero.
It works if I fill in any two of the three dates *or* I fill in all three dates by typing the values into the textboxes (bypassing the pop-up calendar). I can fill them in random order, and any one or two are fine, but all three at once triggers the error.
View 9 Replies
Apr 24, 2010
i have Button , when its clicked it should register Student, then Invoke Javascript by server side as follow:
[code]...
View 6 Replies