Disable A Jquery Tab Server Side?
Aug 26, 2010
ASP.NET web form with JQuery UI tabs widget and four tabs. I would like to disable the latest three tabs when i click a submit button.
P.S. I know how to disable tabs in jquery
$( ".selector" ).tabs( { disabled: [1, 2] } );
I don't know how to do it in server side code :)
View 2 Replies
Similar Messages:
Oct 17, 2010
Suppose I'm building a StackOverflow clone using webforms ASP.NET and jQuery. The Question page has a question, several answers, and comments under each. Requirements:Users can post new answers and comments, and edit existing ones, without postbacks. No UpdatePanels; the AJAX calls retrieve just the JSON they need, not HTML fragments. The page loads with all existing answers and comments in place (no javascript needs to run to read the page).
What I'm trying to figure out is how to do this without having to maintain two sets of markup (one that's bound on the client using some form of jQuery templating, and one that's bound on the server using traditional WebForms).
View 7 Replies
Apr 30, 2014
i have a grid asĀ
<asp:GridView ID="dgv_passengerdetails" runat="server" AutoGenerateColumns="False"
CssClass="pasdetailsgrid" BorderStyle="None">
<Columns>
<asp:BoundField HeaderText="Seat No" DataField="seatno">
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
[code]...
the string gs=null, if i click the button again then gs takes the value from textbox.
View 1 Replies
May 12, 2010
Working on a DNN website. Long time VB programmer new to ASP and Web Development.
I have a page with 2 modules on it one to select records and the other to show records details. there is also an add button on the select module for adding new records. the detail module has a tabcontainer with 5 tabs on it and if the user is adding a new record I want to disable the first tab. At all other times I want the user to have access to the first tab. The user clicks a button that uses OnModuleCommunication to start adding the new record. All my code is server side so when they click the button I clear all the fields and enable them all for editing but I have not been able to set the tabcontainers tab to enabled=False
[Code]....
and if it is in the correct location I do not want the button on the page to be seen like it is I want to call it from the server side so the user has no choice.
View 2 Replies
Aug 13, 2010
I have js script block (very long one that does editing capabilities to an invoice page).
I want to enable/disable this functionality on the server-side. First thing popped up on my mind was to say runat="server" to the tag, and set visible=true/false to asp.net, thinking asp.net does not render the HTML for non-visible items, so the block wouldn't load at all, which was what I wanted. But I quickly realized that saying runat="server" to client-side code was a real bad idea :)
What ar emy options, besides loading script from client side. Cuz I have other buttons that come from the server-that will enable dieable too.
View 1 Replies
Mar 17, 2010
I have a checkbox which in some cases may be disabled and checked using javascript, i.e:
var cbTest = document.getElementById("CheckBoxTest");
cbTest.disabled = true;
cbTest.checked = true;
However, when sending a postback, CheckBoxTest.Checked is false on the server side.
Is it possible to disable the checkbox and still have the server side recognize it as checked?
View 5 Replies
Feb 10, 2010
my question is very simple. I had read through many post include this: http://blog.anasghanem.com/post/How-to-get-the-readonly-textbox-value-on-the-server-.aspxI have a calender extender and the date was target to a texbox. This textbox, i had set it to readonly and it is validate by a required field validator. so mean this texbox must have a value inside. my prob is, i bind the textbox to database and if data is NULL or empty i can't save it because the required field validator was validate textbox as empty value at cllient side. If i remove the required field validator everthing fine. But this is not i want. I have try to set the textbox to javascript onCopy,onPaste,onkeyup. but user also can delete and paste into the textbox.i have think to disable the requried field validtor at server side when data is inserted.
View 16 Replies
Feb 9, 2011
I have 2 update panels where the server-side button (in a jQuery accordion) in the first update panel should update the second update panel.When the button is clicked, jQuery hides the accordion and displays a results div. This all works fine client side to be fair to IE. The server-side onclick event does not fire though in IE. In Firefox it does! The first update panel is displayed below, here the "btnGenerateReport" event should fire server side.
[Code]....
To add confusion ... if I comment out '$accordion.toggle($effect);' lines then the second update panel does get updated.I'm not sure what other information I can give here. I'm stumped as to why this works with Firefox and not IE.
View 4 Replies
Jan 30, 2011
I want to develop a message bar in jquery which fetches information from server side asp.net code.I know how to connect jquery to call asmx service.I just want to know that, I will be using function from jquery to call asmx service. But to check for latest message on server, i need to call that function at regular interval like timer event. So how can i call jquery function to run at a particular interval to display messages from server?
View 1 Replies
Jun 23, 2010
I am using this basic jQuery modal window example: http://www.ericmmartin.com/projects/simplemodal-demos/
It works fine if I set it up to click a standard HTML button. However, I want to use this as an action dialog window so I need to automatically open it via code-behind. I wrapped the jQuery like this: function launchIt() {
View 2 Replies
Mar 14, 2011
[Code]....
public
static System.Collections.Generic.List<T> CreateList<T>(params T[] elements) {
return new System.Collections.Generic.List<T>(elements); }
protected void btn_Click(object sender,
EventArgs e)
{
var obj = new { Ministry =
"Ministry 0", Title =
"Title 0", Criteria = "Criteria 0" };
[code]...
View 14 Replies
May 7, 2015
In my web page I have a Checkbox (datatype = tinyint/boolean) and 2 Required field validator (whose visibility is false). I want that when I check(tick) the checkbox, then required field validator visible = true, else not.For this I tried this code on Page_Load as well as on save button click, but it is not working:
protected void Page_Load(object sender, EventArgs e) {
if (ChkComplexPass.Checked) {
Regex4.Visible = true;
Regex.Visible = true;
[Code] .....
View 1 Replies
Jan 21, 2011
http://labs.abeautifulsite.net/projects/js/jquery/multiSelect/demo/ is it possible when the submit is hit , we can get the values selected from the dropdown on server side code (so we can do other things with it) I want to pass the values selected to server
View 4 Replies
Feb 1, 2011
I am developing a web application for online bidding wher I want the BID button to disable itself, on all clients, whenever someone places a bid. What I need is some javascript to ping the site to check if a bid has been placed on the server, if so, then disable the button. I was suggested to use jQuery for this, use .ajax to query the server for the check. Then use a setTimeout javascript function to keep checking.I am not javascript expert at all so any tips would be greatly appreciated. At lease where to start. Also, will I need to record every single bid in database to achieve above?
View 10 Replies
Jun 8, 2010
I have a large application and I'm going to enabling short-cut key for it. I'd find 2 JQuery plug-ins (demo plug-in 1 - Demo plug-in 2) that do this for me. you can find both of them in this post in StackOverFlowMy application is a completed one and I'm goining to add some functionality to it so I don't want towrite code again.So as a short-cut is just catching a key combination, I'm wonder how can I call the server methods which a short-cut key should fire?
Update: here is the scenario. When User press CTRL+Del the GridView1_OnDeleteCommand so I have this
protected void grdDocumentRows_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
try
{
DeleteRow(grdDocumentRows.DataKeys[e.Item.ItemIndex].ToString());
[code]...
View 2 Replies
Nov 15, 2010
What is the recommended approach to reference ASP.NET server side controls in JQuery?Currently I use something a mix of server+client side
$('#<%=txttest.ClientID %>').focus();
View 2 Replies
Mar 15, 2010
I m working on JQuery,
I have one UserControl in that I have taken one button(it is present inside an updatePanel).
when i m clicking on button on that time i want to show alert from server side for that i have written-
[Code]....
But it is not working, if i m removing updatePanel then it is working.
View 4 Replies
May 8, 2010
i would like to call a jquery dialog box (so html, css,javascript ) via asp.net Server Side event. Is it possible ?
View 1 Replies
Feb 18, 2011
i have a textbox1 in my asp.net webform which shows the server side date : i want the user would not select date using jquery datepicker earlier than the date in the textbox1 i m using the following code to show jquery calendar in other textbox2 :
<link href="./themes/sunny/jquery.ui.all.css" rel="stylesheet" type="text/css"/>
<link href="./themes/sunny/jquery.ui.all.css" rel="stylesheet" type="text/css"/>
<script src="./js/jquery.min.js"></script>
<link rel="stylesheet" href="./demos/demos.css">
<script src="./js/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".datepicker").datepicker({
buttonText: 'Select date:',
firstDay: 1,
buttonImage: "./demos/datepicker/images/calendar.gif",
buttonImageOnly: true,
showOn: 'both',
showAnim: 'fadeIn',
minDate: '0',
dateFormat: 'dd-M-yy',
onSelect: function() { $(this).trigger("onchange", null); }
});
});
</script>
View 1 Replies
Dec 2, 2010
Is there a straightforward way to use server-side validation with ASP.NET's validation controls in a form that's displayed in a modal dialog? I am using jQuery and SimpleModal (in C#, VS2010, .NET 4.0)I've got a modal form which works fine. I need to use a server-side validation because the logic depends on data specific to the record being accessedMy solution for the project I'm working on now is to use a jQuery ajax call to pass all the form data to the server and get back the validation results before allowing the post to proceed. But this is relatively time consuming to implement, and in some situations I'm dealing with now all the validation code exists already.
The first challenge is that of course the modal dialog will close on a full postback. So you could put an UpdatePanel inside the dialog... without even thinking about this too much, though, I assumed that it wouldn't work out that well. It doesn't. And the form which opens the modal dialog to begin with is already in an UpdatePanel, which further confuses matters.Anyway, I tried putting the contents of the modal form in an UpdatePanel for the heck of it. It does actually do a partial postback, the dialog remains open, but the contents of the dialog do not get updated with anything I change server side. If I close and re-open the dialog on the same page after testing the validation code, though, its contents are in fact updated to reflect these changes. Obviously the way the dialog is rendered is confusing ASP.NET. Or vice-versa. But this just seems sketchy from the get-go.
Rather than trying to hack my way through this problem I was hoping that others had some suggestions about a better way to approach this. Or just tell me I'm trying to hard too mix apples and oranges and I should keep it all client side (or client side + jQuery ajax) if that is the only sensible thing to do.
View 1 Replies
Oct 23, 2010
Is it available to open jquery Dialog Server Side From Behind Code in asp.net?Please give me an example or a link for more information.
View 1 Replies
Feb 20, 2011
I have a condition in mmy MVC view like this:
if (Profile.visStats == 0)
<img id="image1" alt="" class="statbackground" src="leftblueFolder.png"/>
else
<img id="image2" alt="" class="statbackground" src="rightblueFolder.png"/>
This works fine.
Now I have two link buttons
<a id="visGamebut" runat="server" >Game</a>
<a id="visSeasonbut" runat="server">Season</a>
1) onclick visGamebut I want to make Profile.visStats = 1 and show image2.
View 1 Replies
Feb 10, 2011
I am trying to launch colorBox from the vb.net code behind. The reason for this is because I need to open another .aspx page displayed in colorBox.
If i was to hard code this an example would be:
[Code]....
The example5 is referring to:
$(".example5").colorbox();
The above works but I want to be able to achieve the same functionality from vb.net code behind when the user click HyperLink1.
View 3 Replies
Nov 10, 2010
I'm working on an ASP.Net webpage which will use the jQuery Dropdown Checklist (http://code.google.com/p/dropdown-check-list/). I'm fairly inexperienced with JavaScript and completely new to jQuery.
Basically, my question is: How do you update the selected items in a jQuery DropdownChecklist from the server-side?
NOTE: For details on the solution, scroll to the bottom of the question.
Here's some background to give you a better idea of what I'm doing...
I have a jQuery DropdownChecklist which is being populated when the page loads. When a user selects an item in the DropdownChecklist, the selected values are collected and stored in a hidden input field, then a postback is performed, which allows the server to update a server control. This part is working.
Now, here's my problem. This server control, which is actually a usercontrol has a "Remove" button for each selected item in the DropdownChecklist. When a "Remove" button is clicked, it should cause the associated item in the jQuery DropdownChecklist to be de-selected. So, far I haven't figured out how to make that happen.
Here's some relevant code snippets:
Here's the markup...
<asp:ScriptManager ID="smScriptMgr" runat="server" />
<table>
<tr>
<td>
<select id="s1" multiple="true" runat="server" />
[Code]....
We determined the simplest solution was to call the JavaScript function from the client-side rather than try to do it from the server-side. The ImageButton does have an onClientClick event, but for some reason it didn't work. However, wrapping the ImageButton in a client-side anchor tag and using its onclick event did the charm.
View 1 Replies
Jun 18, 2010
I am using C# ASP .NET MVC and ajax calls. I am able to get the display of the table along with all features. But, I don't understand how do I add a checkbox and button. I have tried dom-checkbox as well but can't get it to work.
My code looks like this:
$(document).ready(function () {
$('#personTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/Home/GetCustomData",
"aoColumns": [
{ "sSortDataType": "dom-checkbox", "sTitle": "Select",
sName": "" },
{ "sName": "ID", "sTitle": "ID" },
{ "sName": "FirstName", "sTitle": "First Name" },
{ "sName": "Email", "sTitle": "Email"}]
});
});
My Html is :
[table border="1" id="personTable" class="display"]
[/table]
View 1 Replies