AJAX :: Always Visible ControlExtender Clickable
Jan 9, 2013I can make always visible control clickable ??
That is to say :with a click alwaysvisiblecontrol I should navigate to another page ...
I can make always visible control clickable ??
That is to say :with a click alwaysvisiblecontrol I should navigate to another page ...
I implemented clickable rows in datagrid using ajax. The problem is, when I click the row in the Results page I redirect to another page to view the data. In that page I have an "update" button that I can update the data in the table in the DB and when I click it, I redirect back to the Results page and then click the same row again to view its details, the data isnt updated and its still old data. The thing is, the data is being updated in the table in the DB, its like the page is saving the old data he brought and using it and I dont know how to tell him to bring new data. Here is the code to make clickable rows:
protected void pendingGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "return GetDataUsingAJAX(" + e.Row.RowIndex + ",'pending');");
e.Row.Attributes.Add("style", "cursor:hand");
}
}
here is the javascript of Results page:
function GetDataUsingAJAX(row, table) {
obj = new XMLHttpRequest();
if (obj != null) {
obj.onreadystatechange = RedirectToViewDetails;
obj.open("GET", "Results2.aspx?row=" + row + "&table=" + table, true);
obj.send(null);
}
return false;
}
function RedirectToViewDetails() {
if (obj.readyState == 4) {
if (obj.status == 200) {
var retval = obj.responseText.split("&");
window.location = "YellowCardStart.aspx?mode=" + retval[0] + "&cntct=" + retval[1] + "&strtDate=" + retval[2] + "&endDate=" + retval[3] + "&strtTime=" + retval[4] + "&endTime=" + retval[5] + "&tools=" + retval[6] + "&id=" + retval[7] + "&table=" + retval[8] + "&bldng=" + retval[9] + "&loc=" + retval[10] + "&devTool=" + retval[11] + "&cmpny=" + retval[12] + "&phn=" + retval[13] + "&lssApp=" + retval[14] + "&ehsApp=" + retval[15] + "&cmnts=" + retval[16] + "&created=" + retval[17]; }
else {
alert("Error retrieving data!");
}
}
}.............
I have a web page that I have a media control player on along with other controls in a table.It's a training video, so the controls are not visible.So the user can advance to the next web page,I thought I would have a button control inside an update panel with a time control so that the user had to watch the video and then the button control would appear after the video completed.I'm setting the button update panel to NOT visible and then turning it one when the time control elapses the same amount of time that the video runs.My problem is that when I set the visible property of the update panel to NOT visible it also makes the media player's panel NOT visible too.They are in two different panels.The medial player in a standard panel and the timer control connected witha separate panel that contains the button for the user to proceed. When I set the visible property to "true" the media player runs but the update panel with the button is visible also.
[Code]....
This is the code for the update panel and continue button that is in a separate table cell.I even split the table and so this is in a completely separate table but I still get the same behavior.
I am learning asp.net using Visual web developer 2008 express.
I have an image control with the html code below
<div class="Header">
<asp:Image ID="image1" runat="server"
ImageUrl="D:/Master/test.jpg" Width="500" Height="300"
AlternateText="UNRA Fort Portal Intranet"/>
</div>
In design view, the image shows but when i run the app, the image is not shown. Only the alternate text is displayed.
The css code code as below.
.Header
{
top:10px;
left:20px;
position:absolute;
width:800px;
background-image:URL(D:/Master/test.jpg);
background-repeat:repeat-x;
}
I have two Repeater controls, each hosted in a user control. Both user controls are contained in the same aspx page. Only one User Control is visible at any one time. The repeaters are comprised of checkboxes, and text boxes for user input.
The aspx page is configured with an Ajax ScriptManager; and contains several Ajax UpdatePanels. These UpdatePanels result in partial page post backs when text is changed in a textbox control in controls on the aspx page (this is not the behaviour for the Repeaters in the User Controls). Through use of several AsyncPostBackTriggers, various controls contained in the other UpdatePanels on the page have their content refreshed in response to the partial page post backs they are configured be notified about.
Depending on a radio button group selection, I set the visible property to true or false - as appropriate for the User control containing a repeater control. The Repeater control is then populated with data using databinding. All of this works.
However, when the Submit button is clicked, the Repeater control contains no data.
Given that I am not dynamically adding the Controls containing the Repeater controls (but using Visible true / false). I would have thought that the State of the fields and the data in the visible control would be preserved during the post back.
The User Controls are contained within the UpdatePanel that contains the Submit Button.
I have explicitly Enabled View state without any effect.
Am I correct in assuming that I should not have to do any explicit handling of data changes the user makes (via client side script and manipulation of an Data Structure Representing the Repeater Data); and the View State should maintain the data I need to access on the server when submitted?
I do not believe that it is the User Control visible state changes that are causing the issue because when the page is initially loaded on of the User controls is populated with dummy rows (so it displays).
I am suspicious that because the visible state of the controls is changed during partial page post back, that the Page View State ends up with no knowledge of the User Control and therefore cannot track its data (or changes).
I have a gridview that is bound to a SQL datasource and is filtered via FilterExpression,
the FilterExpressoin is using Contro Parameters in a for of textboxes.
I want a certain button to become visible (btnInsert.Visible=true) when the filterExpression returns no results.
what event should I use? what is the code for that?
I did not think the first post went through. I followed the instructions and created the new tab, located the dll file and thought I was adding the controls. Instead, the new tab disapeared. When I try to add it again, I get the message: "The Tab "Ajax ToolKit" already exists" but it if it does exist,
it is not visible.
I have five menu items that i have created as a user control and placed on the master page. Now i want one of the menu items to be visible only for particular user role and not visible for others. Here is what I did. Its not working though.
Dim DST As New DataSet
DST = dataObject.RunSPReturnDataSet("uspUserProfile '" & Session("UserID").ToString & "'", "mytbl")
'Dim US As New DataSet
[Code]....
[Code]....
[Code]....
[Code]....
I have a page with an AlwaysVisibleControl with dynamic data inside of it. I have three link buttons, option 1, 2 and 3. When option 1 is clicked a bunch of 'about me' data is displayed, for two some photos etc.The problem comes when the data is longer than the page size. Becuase it's an alwaysvisiblecontrol it the page's scrollbar doesn't adjust to allow the user to see all of the information.
Is there a way around this? I'm pretty clueless on how to solve this so any advice / tutorials / examples would be great. I have googled this problem but to no avail.
I use DropDownExtenders everywhere in my project, but it bothers me that it's not visible all the time. It looks like an usual TextBox :-(
<script
type="text/javascript">
how to set a TabContainer to hidden/visible. I have tried placing it in a div and in a panel, but when I hide these (style="visibility: hidden;"), the Tabcontainer stays visible! Setting the style of the TabContainer itself doesn't work.
View 3 Repliesi have create user control to add the new city, where i entered the name new city, select the related country from combo and select the related state from combo and click on save button.
View 4 Repliesused the ajax in my page like Gridview when i select the delete button page is not refreshed. but message box not vissible.suppose if removed the update panle for particualr gridview its page refreshed and lable message visible(Deleted successfully)what should i do for showing the message??
View 2 RepliesI'm using a TabContainer with 2 TabPanels in my web application project, and at this point I'm simply using the default style.The tabpanels are displaying just fine in Internet Explorer and Firefox, but they're not visible in Opera.
View 2 RepliesI upgraded today to AjaxToolkit version 3.5.40412.2 and as soon as I did my TabContainers stopped displaying ina browser. They look fine in design view and I do not get any errors.Has anyone seen this or know if there is a post already addressing this?
View 2 RepliesThis is my test page (see below). As you can see, I have an UpdatePanel and everything works ok, except the google Map (of course in this test page there is only the google map). The Google Map loads perfectly on initial load, but click the button to refresh the UpdatePanel, and the google map disapears. How do I make this visible and hidden when I want it to?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GMapTest.aspx.cs" Inherits="GMapTest" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Src="GMap.ascx" TagName="GMap" TagPrefix="uc1" %>
[code]...
I'd like to be able to have the .NET AJAX CalendarExtender show on Load without having to click in a TextBox. If I can simulate a TextBox being clicked so the CalendarExtender will show I'll take that too.
View 1 RepliesI have a tab container with two tabs. In one of the tab panels, I have a button. I want by pressing the button to make a label in master page visible:
[Code]....
The event fires, the event handler is executed, but the lable doesn't become visible. If I place the button outside of the tab container, it works.
I haven't used Jquery to post Json data to mvc before, so this maybe a Noob issue.
I've got a really simple form, and am trying to post this data async to an mvc action. Within firefox I can see the data being posted, but I can't see it within the MVC action.
This code all runs through correctly, but putting a debug point in the action method will always show the form collection as empty.
Form..
<script type="text/javascript">
Getting familiar with ajax tabs...watched Joe's video. Am building simple wizard with first tab visible, others invisible until "next" is clicked. I know I need an onclientclick event but am very elementary with Javascript and .Net doesn't prompt javascript.
[Code]....
I use a modalpopup ajax extender to show some messages in my web forms, but when thepage is load, the div control that I use for the message is showing for a second. How can I avoid this. There is my code:
<div id="MensajeUsuario" class="modalPopup" style="width: 365px; height: 100px; text-align: center">
<cc1:ModalPopupExtender ID="PopUpGraba" runat="server" BackgroundCssClass="modalBackground"
DropShadow="false" PopupControlID="MensajeUsuario" TargetControlID="btnDocDig"
Y="100"> </cc1:ModalPopupExtender>
<asp:Button ID="btnDocDig" runat="server" BackColor="White" BorderStyle="None" BorderWidth="0px"
Height="8px" Width="1px" /><br />
Im using a toolkit reorder list control. Im using LINQ2SQL. I have troubles making the order changes in the list to be updated to the database. This is my aspx code:
[Code]....
The drag and drop reordering works fine. In my
[Code]....
But no changes to the order are visible. What is missing?
[Code...]
Using a modalpopupextender a panel having controls is poped-up as a modalpopup. The problem I am facing is how to make the Ajax Calendar always visible on the modalpopup.
Functionality of controls on modal popup:
1. A calendar (use of Calendarextendar preferred) and a ListBox placed side by side.
2. calendar's behavior need to be exactly the same as that acheived using a Ajax Calendarextendar
3. The Calendar is always visible.
4. The days selected by user are appended to the ListBox (with no repeatition)
i have a gridview control on my content page. and on login i wnt the gridview to populate..when i dubug all the values r coming properly but the gridview is nt visible on the page.
<cc1:Accordion ID="Accordion2" runat="server" SelectedIndex="0" FadeTransitions="True">