I am new to web development, learning ASP.NET. I used some JQuery script so am just wondering if it causes some performance issues or anything like that. Is it OK and rather safe to use it?
protected void btnFirsEvent_Click(object sender, EventArgs e) { int m = 20; SqlConnection objConnection = new SqlConnection(@"Data Source=STANZOO-FE82BEASQLEXPRESS;Initial Catalog=stanzoo;Integrated Security=True");[code]....
I write the this code for displaying autocompletebox categorie wise but my problem i write the code in button click event
i called this event using jquery like' this
$(function() { if ($('#txtCategories').val() == "") {[code]...
here problem is i lose the focus in textbox because after pressing the key the compiler click the button then i am losing focus on the textbox how can i solve the this problem any another methods are available for this solution
I have basic understanding to cache webpages for duration. Now I have some complex requirements:
1. User e.g "Nauna" login in asp application 2. Visit on report page 3. Pass data range from 01-01-2013 to 30-12-2013 and extract the report which retreive data in 55 seconds on gridview 4. Now I want that when next time user "Nauna" login in the application and use the same report with same parameter 01-01-2013 to 30-12-2013 so that report should be come up from cache instead of run the complete life cycle.
I have a C# ASP.NET MVC application which has been using jquery 1.3.2 in VS2008 environment.
I decided to upgrade to 1.4.2 and added the file to my project. Changed the reference in my masterpage header to the new version. But now nothing works, it's like it can't find the jquery library.
i have downloaded .js file but i dont know how to use it in my project.Can anyone tell me how i can use that file?and where i have to write the code for it?in .aspx or markup?
After a long process of configuring IIS inhttp://forums.asp.net/t/1622627.aspx ...In iis project the jquery doesnt work ...but when i run the same in vs2010...it works
I'm just using a simple slideToggle function of jQuery. It works properly in my HTML file. But whenever I take codes into a ASP.NET WebForm project, script doesn't work. I can't achieve slide effect.
Is this a known issue? It's probably a popular mistake done by developers though. What could be the problem?
(I didn't copy&paste any code because of I thought this is not a specific situation, but I can show codes if you want)
I've looked all over the web for the best way to organize an ASP.NET MVC2 project. I've only seen examples of people using the default template for MVC2 projects. But is this the best way to organize your project if it is going to contain a large number of files?
We're in the process of building an application that is heavily built around jQuery for UI and ajax using JSON. So, as you can imagine, we will have many custom .js support scripts.
In our solution, we have placed all our support libraries (3rd party and custom) into respective projects. The MVC2 project that is also in the solution is using the default MVC2 template.
In the MVC2 project, the "starting" structure is still pretty much unchanged. Under the Controllers directory, we have each controller AccountController.cs and HomeController.cs (for example). Under the Views directory, we have three subdirectories named Account, Home, and Shared. In the Scripts, directory we have also divided that up with three directories, Account, Home, and Shared. And finally we have the Models directory, that is also divided into Account, Home, and Shared subdirectories.
As you can see we haven't deviated from the basic template that much. But, as we start adding stuff to this, we're realizing how cumbersome this might become when we get upwards to 20 or 30 views and 100 support .js files.
i have a web service project called (WS_Service) i have a html page thats trying to consume WS_Service. i have web services sits on its own project (the reason i have created is because its independednt and can be called from .aspx or .html or mobile) i dont have problem with .aspx and i have just add the reference and fire the services. but i am not sure how i will be doing on .html page below is my code i am trying to POST to a web service:
When I turn on Code Coverage in my test settings, on a project that references the Unity DI container I get the following error:
Cannot initialize the ASP.NET project'{Project Name}'.
The event log specifies the following reason:
Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name signature could not be verified.
I got here a answer to sort the gridview. sorting and paging with gridview asp.net But using the above solution all the grid data sorted while clicking on the any column. I request a solution which sorts data on the particular page only. Suppose I have 10 pages with 50 records each page, now if I visit page 7 and sort then the only 50 records of the page 7 should be sorted.
I have an ASP.NET GridView in which i want to show dates from selected month and year. Month and year fields are DropDownList and bound to XML data source. Is there any easy to do that or i have to use Code behind to add dates using iteration.
I need a help in reports, actually i have made a matrix report in whichi need to display column dynamically based upon the selection parameter.I have a selection paramter of date.If i select Date on selection paramater as "03/01/2010" i.e. 1st March 2010then it should display column as week wise up to 2 months like :-1st March - 7th March 8th March -14th March 15 March - 21 March ....Up to 2 monthThen i have to display sales Amount week wise in that.So based upon the sales date it display amount in respective column.If sales date is 9th april then its should come under 2nd column.f any sales date comes after 2 month then there should a column like May Onward, and we need to display amount in that.Its should be dynamically changed based upon that date parameter selection.
like this. I want a criteria to search the list ...as when i will click "A" it will go to ahmdabad. When i remove numeric it goes fine but in this case how to manage?
What I want to do is to split-up the globalnavigation bar on the sharepoint 2010 so I can control what menu-items should be floated to the left or right of the bar.
Is there a way to do this without a complete customized version of it, so I only have to edit the current one. Or do I actually have to make a complete new one?
What I have tried so far is just copying all of the UL > LI's there's used to display the menu-items like this:
In my website project, i have not used any controls like login, createuser, forget pass etc. However, i can login, create user, recover password, change security question etc, using only code-behind programming. mean without using any inbuilt security controls as discussed above, i am fully secured but on some points i need little help.I have stored all users credentials in columns named username, password, securityques, security ans, libraryadmin (this is checkbox field), contentadmin (this is checkbox field) etc.I am wishing, when I check in database in fields libraryadmin or contentadmin for any user, he can access to that zone too. Still I am using this feature as given below:
Look at the codes above, in "libraryadmin" directory/zone only username "abhimanyu" is authorized and the same in "contentadmin" directory/zone only "abhimanyu" is authorized.But I am wishing to control such authorization from database where I have stored the credentials. I mean by checking in checkbox field named libraryadmin (this is boolean field) in database that user automatically be authorized, no need to type always in configuration file. you have any idea about, or tell me some articles on it. I know how to manage it from asp.net default authorization and authentication. I just need it manually as I have considered above