.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

How do I do a slideUp with jQuery to open a div, and then us slideDown to close it

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net

I want to have a div slide up to open instead of sliding down to open.  Does jQuery allow me to do that?

View Complete Post

More Related Resource Links

how to open a subform model Form,Sub Window form using jquery that save the data ajex

how to open a subform model Form,Sub Window  form using jquery that save the data ajex

GridView crashes when user enters html open "<" or close ">" characters in a textbox

My GridView is bound to a sql data source and allows editing of fields. Coding is in C# and JavaScript. Using Visual Studio 2008 in test mode, if I enter a less-than "<" or greater-than ">" character in a GridView textbox an error is immediately thrown upon pressing enter: "Microsoft Visual StudioMirosoft JScript runtime error:Sys.WebForms.PageRequestManagerServerErrorException: An unknown erroroccurred while processing the request on the server. The status dode returnedfrom the server was: 500"When the < or > is entered in production, the page aborts and loads the application start page. I need to be able to catch and replace those characters BEFORE the error is thrown. I've tried hooking OnTextChange code to the textboxes, but the error is thrown as soon as I press enter...the OnTextChange code never runs. Any help will be greatly appreciated.

how to close a form using Jquery

(1) how to Close a Parent Form2 how to close a child form(iframe)

how to close a form,subform,iframe and everthing using jquery


how to close a form,subform,iframe and everthing using jquery

how to open a page self after 1 minute breack)(using href or jquery)


i create two page.



i require page1 opend page2 after every one minute

Jquery - Slideup/Slide Down



I have a form view and when one particular control has focus I display a help file (using jquery) and on lose focus
it disappears. It works fine. But the problem is the displayed help file has scroll bars and whenever the scroll bar
is clicked the the lose event of the control fires and help message disappears.

How do I prevent a click on lose focus or is there another way where an user can click the scrollbar and still have
the ability to disappear when the control loses focus.


<script type="text/javascript">
function slide_up_down()
/*Slide up*/
   function slide_up()

<asp:DropDownList ID="DropDownListAppType"  SelectedValue='<%# Bind("APPREV_TYPE") %>' Height="20px" runat="server" 
		 onFocus="slide_up();" onBlur="slide_up_down();" 
                                  AutoPostBack="True" TabIndex="11">

Is there any script for Open/Close sql-server 2008 ?


Is there any script (any batch file) for Open/Close sql-server 2008 ?

thank's in advance

close popup form and open again

when i click a button, then prompt another form and then i click close button at the upper right corner of the form
the popup form is closed
then i click a button again, then prompt a popup form again
but now when is popup form is prompt at second time,it always trigger form_closing event,why?
how to prevent it?

How to close individually the multiple open browser window using c# code?


Hello guys,

The scenario is I have multiple open browser window (IE or Firefox) then I want to close the specific browser individually.

I have tried to lookup the applications running from the task manager but I can't get the running application from the task manager > application > task.

I have added two references below to lookup the task running applications.

using System.Diagnostics;
using System.Threading;

Anyone can help me on how to close individually the specific open browser window using c# code event.


Sometimes sharepoint documents won't open until i close all word documents



I'm running into an issue with our sharepoint setup, and for some reason i'm the only one in the company having this issue.

When opening word documents from sharepoint every now and then (not everytime) my computer gives word focus, but the requested document doesn't load. I have to close the all word documents, click the document link again in sharepoint and then the sharepoint document opens.

When this happens I can still open local documents and sometimes I can have 5 sharepoint documents open but other times i can only have 2 or 1 document open. Even when working with the same documents.

I am completely lost as to where to start looking (Tried google, didn't find anything) but 

- it's not reproducable, it happens often but not when you try to trigger it
- it doesn't happen with the same file all the time
- it doesn't happen after the same number of files every time
- it only happens to me.
- word can still open local files when it happens

The setup is:
- sharepoint 2007
- windows 7
- office 2010

So I am somehow inclined to think it's a client issue as i'm the only one having it (all laptops were initially installed using the same image) but then again it's only happening with sharepoint documents.

If anybody could help me or point me in a general direct

SQL server connection - keep it opened all the time, or open/close on demand ?



I have a VB6 app that gets data from several devices and has to store it in a SQL server 2005 database.
It may have to store small amounts of data (a few KB at most) somewhere between 5 and 500 times per day.
My app only sends data to DB, doesn't read anything.

My question is what's better in this case:

a) the app opens a connection to DB at startup and closes it at exit, or
b) when data arrives, the app opens a connection, sends data, then closes the connection


Open vs Close Connection


Hi Guys,

I have a question related to  leave a SQL connection open or close it.

Here is the scenario...

I have an Intranet page that monitors a Robot, that webpage needs to be up 24hours/7days a week.

Robot sends information to a SQL database every couple of seconds or minutes depending on the work it performs.

My page has an AJAX Timer that triggers every 5 sec, in that page I have to query the database (simple SELECT - no more then 15 lines) and show my info in a gridview.

The question is: Should I open the connection and leave it open or should i open and close every 5 secs?


Refresh Parent Page when close the jquery dialog



I have to open PopupPage.aspx from MainPage.aspx using jquery Dialog. For this i have added the iframe inside the Div and loaded the PopupPage.aspx in the iframe. 


    <link href="inc/css/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="inc/scripts/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="inc/scripts/jquery-ui-1.8.6.custom.min.js"></script>

    <script type="text/javascript" language="javascript">
        function OpenJQueryDialog()
            $('#dialog-modal').dialog({ autoOpen: false, bgiframe: true, modal: true });                         

JQuery accordion open state



Is it possible to add an additional condition to the following script so that the accordion will be open when first loaded. The 'alwaysOpen' condition only works after the accordion pane is manually opened.

            header: 'div.title',
            active: false,
            alwaysOpen: false,
            animated: false,
            autoheight: false

SQLConnection Open Close Performance issue


Hi, I have interesting and depressing problems in querying sql statements with some machines in my environment. Firstly i will try to summarize my environment and try to define the problem. 

There are seven application servers and an sql server in my environment. Each of these seven application servers have a windows service application that runs sql statements on the sql server. There are some performance problems at 3 of 7 machines. I write a simple code and test this code on all application servers. The code as follows:

static void Main(string[] args)
   DateTime processgeneric = DateTime.Now;
   DateTime processstart = DateTime.Now;
   Console.WriteLine("Application started: " + ((TimeSpan)(DateTime.Now - processstart)).TotalMilliseconds.ToString());
   processstart = DateTime.Now;
   SqlConnection sqlConn = new SqlConnection("Data Source=XXX.XXX.XXX.XXX;Initial Catalog=DBNAME;User Id=USER;Password=PWD;");
   string sql = "SELECT * FROM [DBNAME].[dbo].[T

GridView Confirmation Box Using JQuery BlockUI in asp.net

JQuery is the most popular JavaScript library. One of the main reasons for its fame is the plugin architecture. Anyone can create a separate library that leverage the JQuery library. In this article we are going to look at the BlockUI library which is used to block the user screen while performing a task.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend