i have a button on my web page that save data on data base i want to show a div after save data on database without refash page by jquery and if i get error in saving data show another div to user by jquery how can i do this?
i have using jquery for autocompelete option and iam using ashx file, i have 2textbox, i need to show diffrent search record in the text box, iam using 2 ashx file to show the value using jquery, i want to user single ashx file instead of iam using 2 ashx handle filer can use switch case to handle this , i want to use 7textbox all textbox i need to do autosearch, how to handle this senario using jquery and ashx handler file
clsquery.updatetablestring = "select top 2 Cont_number from ASPrearrival_list where Cont_number"; clsquery.updatetablestring = "select top 2 custid,custname from ASCustomer where custname"; // this is my auto search iam using 2 handler file , i wants only one handler instead of 2handler <script type="text/javascript" src="jquery.autocomplete.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#<%=txtcontno.ClientID%>").autocomplete("Handler1.ashx"); $("#<%=txtcname.ClientID%>").autocomplete("Handler.ashx"); } ); handler ashx file <%@ WebHandler Language="C#" %> using System; using System.Web; using System.Data.SqlClient; using ASbusinesslogic; public class Handler : IHttpHandler { public void ProcessRequest(HttpContext context) { string firstname = context.Request.QueryString["q"]; string sql = clsquery.updatetablestring; sql = clsquery.updatetablestring+" "+"Like"+" '"+ firstname +"%'"; //string sql = "select top 2 mlid,mloname from ASlinermaster where mloname like '" + firstname + "%'"; using (SqlConnection connection = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"].ToString())) using (SqlCommand command = new SqlCommand(sql, connection)) { connection.Open(); using (SqlDataReader reader = command.ExecuteReader()) { while (reader.Read()) { context.Response.Write(reader.GetString(1)+ "-"+ reader.GetValue(0) + Environment.NewLine); } } } } public bool IsReusable { get { return false; } } } handler1 <%@ WebHandler Language="C#" %> using System; using System.Web; using System.Data.SqlClient; using ASbusinesslogic; public class Handler1 : IHttpHandler { public void ProcessRequest(HttpContext context) { string firstname = context.Request.QueryString["q"]; string sql = clsquery.updatetablestring + " " + "like '" + firstname + "%' "; using (SqlConnection connection = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"].ToString())) using (SqlCommand command = new SqlCommand(sql, connection)) { connection.Open(); using (SqlDataReader reader = command.ExecuteReader()) { while (reader.Read()) { context.Response.Write(reader.GetString(0) + Environment.NewLine); } } } } public bool IsReusable { get { return false; } } }
I'm assigning a div containing an ordinary grid view to the content of a jquery dialog, but the gridview is omitted from the dialog. I've tried even building the dialog fresh on a button click in case it's having a hard time binding to the data-refreshedgrid. No Joy.
I would like to load a page using iFrame on my website. and as a final result I need to hide everything and show just one div's inner text. How can I accomplish it using jQuery?
I am trying to set up functionality similar to Netflix. Where if you mouseover a movie - you are presented with a window of movie details (all client-side).
At high level, can someone in this forum help by telling me how this should be implemented? I.E., one or more .aspx pages, what would go in code-behind, and .js file, css, etc. Just trying to get an idea on how this would be set up to work.
Basically, when I hover over an item, I need to query for details that belongs for that record being moused-over and display it in the window or div. I also need to have some functionality in that window (i.e. a textbox and button which will end up needing to get saved in a database).
I have a webservice which returns 1 single table with 1 single row. That works fine. Now I call it with jQuery, that also works fine. But when assigning it to a jTemplate I always get the error: "error". : I haven't found any example for datasets. tables, or rows, just for lists. But is it also possible to use jTemplate with a single row returned from Webservice?
Currently I have a small form that uses a asp:linkbutton to submit and send out an email. I want to instead display a lightbox saying "Thank you for your submission" when the user clicks the form rather than a full post back.
i am trying to figure out how to display message box after it done executing the server side codehere is the code which works from the client side but still looking for a way to make it work from code-behind.aspx
<div id="status"></div>
script:
$("#status").fadeTo(500, 1, function() { $(this).html("You are now registered!").fadeTo(7000, 0); })
i want to show an jquery ui progress bar on my dialog so, itried below code but its continueosly showing the progress bar. what im doing is, in dialog aspx page_load event im just read some data from xml file and bind intot the gridview. untill bind intot the gridview i want to show this progress bar.
below is my code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProgressBar.aspx.cs" Inherits="GoogleJQueryUI.ProgressBar" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
is my code. once the above event executed then from code-behind i'll bind data to the grdiview control and its binded but its not visible in the Dialog popup, may i know what is the problem with my code.
now the display style of this div is hidden. so i have a Javascript that runs when i close my popup. the first thing that javascript does is to populate two textboxes and show this div. It populate the textboxes nicely , but it fails to show or unhide the div. i have tried to set of code example using the normal javascript and also JQuery as depicted below
Code: $('#divGoogleEarthMap').css('display', "block;"); and
Code: var div = document.getElementById("divGoogleEarthMap"); div.style.display = "block"; or
Code: document.getElementById('divGoogleEarthMap').style.display = 'block'; but still my Element cant be displayed.
I have a requirement to show a list of rows (from a datatable resulting from a call to stored proc) in a pop-up window. I'm wondering if I could do this with fancybox? The situation is that on my main page, there is a Gridview. One column has a linkbutton and when the user clicks it, they want to see a pop-up with a grid or table of more data related to the row they clicked on.
I would like to show alert() when user clicks on asp:gridView. in column 1
i has been a gridview that fill by linq; <asp:GridView ID="GridInbox" runat="server" Width="813px" CellPadding="4" ForeColor="#333333" GridLines="None"> </asp:GridView> 2. how can==>column[1].width=10;
this is the first time i'm using jQuery dialogs so this question might be somewhat simple but i haven't found answers on this yet.
I'm using ASP.Net Ajax to perform an asynchronous postback when user enters something into a Textbox(actually scanning a barcode). This is working like a charm.Now i need to let the user decide between two options under certain conditions. Therefore i need the postback to decide if this dialog must be shown and what content it has.
Q: How to open a jQuery UI (modal) dialog from serverside, let the user choose an option, postback again to server and handle this decision.
I think i need AjaxControlToolkit.ToolkitScriptManager.RegisterClientScriptBlock to register the script that opens the dialog, am i right? If yes, what script opens the dialog onload?
Can i then postback to server by setting AutoPostback=true on the control(f.e. RadioButtons or a DropDownList)inside the dialog and handling the appropriate events?
What is the best/easiest way to accomplish what i'm trying?
Edit: I considered to encapsulate the dialog into an ASP.Net UserControl and show/hide it. Is this approach recommendable or will it conflict with jQuery in any way?
How can I use JQuery to be able to show some kind of "Please wait"-dialog when a user clicks a button? I want to be able to show for example an alert saying "Your request is being transmitted" while the request is sent to the server and processed through the controller (I use MVC). Once the response comes back, I want to reload the page with the viewmodel returned from controller action, just as usual. Is this possible to do with JQuery or ASP.NET AJAX?
function Save() { alert("Please wait); //make the request async and reload the page when it returns... }
and in javascript code i called the following method to hide it
$('#<%= tempTR.ClientID %>').hide();
but always it doesn't affected even i try to make it hidden and then show it also not work .. i try to hide & show TextBox1 and it work but if i try with the row it doesn't work ... is there any way to show/hide TR ?
I've two text box startdate and enddate. I will input two date into two text box one is txtBoxStartDate and another one txtBoxEndDate. I want to show the duration of these two dates after I just click on duration text box.