AJAX :: ModalPopupExtended Click Disappears?
Mar 11, 2010
I have a page with dynamic web user controlsThat WUC has 12 ModalExtenderPanelsall of them work except the last one. What happens is when I click on the panel anywhere it disappears.The rest of them work and the code looks identical.Code:
[Code]....
View 2 Replies
Similar Messages:
Sep 10, 2010
Yesterday (Thursday Sep 10th 2010) I was happy to have a TabContainer working fine on a simple page as im learning to use it.
On the page was:
1) Ajax Script manger.
2) 1 command button (it would make label1.text = "hello world"
3) A Ajax TabContainer with 2 tabs...
4) Label1
That was it and it was working fine in Chrom and IE Woohoo.. I go home...
This morning I load it up to keep working way and doing more with it.... Chrome is my default browser, it loads and I click tab2 then tab 1 all is well.... I click Butto1 and the hole TabContainer disapears..
After much dinging I find it still works in IE but that my Chrome has updated (on its own): (I notice only one ICON in Chrome in the uper right corner by the addres bar... Only the Wrench ICON, No more Page ICON.. So I check and sure enough Chrome did a push to V 6.0.472.55.. Anyhow thats the difference and now TabContainer goes poof/disappears when clicking a button that refeshes the page.
View 21 Replies
Mar 30, 2010
In Visual Studio 2008 ,in my application page 'TEST.aspx' have an 'Ajax TabContainer' inside update panel , and Tab Panel "Product Group Identification" containes textboxes ,DropDownlist and button like 'Save' and 'Cancel' , on clcik of 'save' or 'cancel' buttons only dropdownList Disappears for a second and reappears this is due to Update panel.
Below you can find my sample code
[Code]....
View 4 Replies
Jul 13, 2010
I have a ListView that has a FileUpload control and a button in each ListViewItem. I have an OnClick event on my button where i try and pull information from the FileUpload control, but when I try to access the control all of the values that were set are gone (FileName etc).
What do I need to do differently here to access the information I just entered?
<asp:ListView ID="lv_Uploads" runat="server" OnItemDataBound="GetThumbs" EnableViewState="true" >
<LayoutTemplate>
<div id="itemPlaceholder" runat="server" />
</LayoutTemplate>
<ItemTemplate>
<div style="width:500px;>.......
Code behind:
protected void SaveFile(object sender, EventArgs e)
{
//This always evaluates to an empty string...
string myFile = ((FileUpload)((Button)sender).Parent.FindControl("fu_Upload")).FileName;
}
View 2 Replies
Nov 11, 2010
Here is my setup: I have an asp.net button on a page --
<asp:Button id="btnSelectEmp" runat="server" Text="Select Employee" />
I have a .js file with the following jQuery click event --
$("input[id$='_btnSelectEmp']").click(function ($e) {
$("div[id$='_divEmpSearch']").css("display", "inline");
$e.preventDefault();
});
As you can see, clicking upon the button will set a div visible. Nothing special; not rocket science. The div is wrapped with an asp.net update panel, and it contains an asp.net user control (.ascx)
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div id="divEmpSearch" runat="server" style="display: none;">[code]....
The button in the user control that does a postback is working great. I click it, a postback occurs and my div control is re-hidden. I can then click on the Select Employee button (the one that I supplied the code for at the very first of the question) and the jQuery click event is handled and the div will be reshown.However, the button in the user control that does an asynchronous postback works also, but after it hides the div, if I then click on the Select Employee button the jQuery click event will not be handled.What this tells me is that for some reason during an asynchronous postback to the page, something happens to the Select Employee button so that the jQuery click event no longer happens. Why?
View 4 Replies
Jun 22, 2015
On my Form I have 2 gridviews namely; gvCRSearch (that displays search results) and gvCRView (that displays all the change requests raised).. Now, when the records are more than 10 in gvCRSearch it automatically creates a navigation number i.e., 1 2 3 Same thing happens to gvCRView
What is wrong is that when I click the navigation i.e., ( for example 2) on gvCRSearch
1) the gvCrSearch becomes visible = false
2) the gvCRView if it has a navigation number is moved to 2
So the effect is seen the next view (gvCRView) and the gridview (gvCRSearch becomes invisible)
the asp is as shown;
Code:
<asp:GridView ID="gvCRSearchView" runat="server" ShowHeader="True" AutoGenerateColumns="False" DataSourceID="CRSearch"
BackColor="White" BorderColor="#600000" BorderStyle="Solid" BorderWidth="2px" CellPadding="3" Font-Size="89.5%"
ForeColor="Black" GridLines="Vertical" AllowPaging="True" PageSize = "10" AllowSorting ="true" CssClass = "MainGridView">
<Columns>
[code]....
View 1 Replies
Jan 11, 2010
I have the following problem. I have a user control with its own events and procedures. I added this control to a page programmatically. It appears as it should but when you click a button on the user control. the control disappears from the page.
View 6 Replies
Nov 16, 2010
I have a dropdown on page, a place holder and a save button on my form.Now, I am creating a textbox on selectedIndexChanged event of dropdown list and adding it to placeholder. And on button click I want to access the control, but on click event, I find the textbox as null. Here is my code
protected void Dropdownlist1_SelectedIndexChanged(object sender, EventArgs e)
{
if (Dropdownlist1.SelectedValue != string.Empty)
And button Save click event
protected void btnSave_Click(object sender, EventArgs e)
{
TextBox txt = new TextBox();
txt = (TextBox)this.ElementPlaceHolder.FindControl("txtArea");
[Code]....
View 1 Replies
Apr 1, 2011
i have a usercontrol inside an updatepanel. when i click some button this usercontrol will be loaded. and the usercontrol itself has anither button in it. the problem is that the usercontrol code behind is never executed and when the button is clicked the usercontrol disappears.
View 1 Replies
May 15, 2012
I am using ASP: menu in my site.master page ' but when I clicked on any button or drop down from other page the menu is disappeared. Why my menu is disappearing from the site.master page ?
My code is :
<asp:Menu ID="MainMenu" runat="server" Orientation ="Horizontal" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" >
<Items >
<asp:MenuItem Text ="Home" NavigateUrl="AllEMP.aspx" >
</asp:MenuItem>
<asp:MenuItem Text ="Menu" NavigateUrl ="~/Default.aspx">
</asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>
View 1 Replies
Jul 28, 2010
I have a page with a TextBox, a Button, a GridView, and a SqlDataSource. I click the Button to execute the SQL in the TextBox using the SqlDataSource. The SqlDataSource populates the GridView. Everything works as expected until I click a column heading to sort.
When I click a column heading, the GridView disappears and I have to click the Button to display the grid again. When I do, the grid is displayed in the order of the column I clicked.
I don't understand why the GridView is disappearing when I click a column header.
Does anyone know how to fix this so the GridView is sorted and displayed only by clicking the column header?
ASPX:
[Code]....
Code behind:
[Code]....
View 9 Replies
Jun 15, 2010
I have a small problem I am returning some data from a query and have allowed paging, however when I click on the next button to view the following page the gridview disappears.
My datasource is specified in the code behind:
<asp:Panel ID="dtpanel" runat="server" Visible="False">
<asp:GridView ID="grddetails" runat="server" AutoGenerateColumns="False" AllowPaging="True"
OnPageIndexChanging="grddetails_SelectedIndexChanged" ViewStateMode="Enabled"
onselectedindexchanged="grddetails_SelectedIndexChanged" AllowSorting="True" >
<Columns>
<asp:BoundField DataField="Col1" HeaderText="Col1" SortExpression="Col1" />
<asp:BoundField DataField="Col2" HeaderText="Col2" SortExpression="Col2" />
<asp:BoundField DataField="Col3" HeaderText="Col3" SortExpression="Col3" />
<asp:BoundField DataField="Col4" HeaderText="Col4" SortExpression="Col4" />
<asp:BoundField DataField="Col5" HeaderText="Col5" SortExpression="Col5" />
<asp:BoundField DataField="Col6" HeaderText="Col6" SortExpression="Col6" />
</Columns>
</asp:GridView>
</asp:Panel>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void GridView2_SelectedIndexChanged(object sender, GridViewCommandEventArgs e)
{
int y = Convert.ToInt32(e.CommandArgument);
Control control = GridView2.Rows[y].Cells[0].Controls[0];
LinkButton btn = control as LinkButton;
string qval = btn.Text;
string query = "SELECT * FROM Table WHERE Col LIKE '%" + qval + "%'";
string connectionString = @"Data Source=servername;Initial Catalog=dbname;Integrated Security=True";
SqlConnection accessConnection = new SqlConnection(connectionString);
SqlCommand accessCommand = new SqlCommand(query, accessConnection);
SqlDataAdapter grddetailsDataAdapter = new SqlDataAdapter(accessCommand);
DataTable grddetailsDataTable = new DataTable("Table");
grddetailsDataAdapter.Fill(grddetailsDataTable);
int dataTableRowCount = grddetailsDataTable.Rows.Count;
if (dataTableRowCount > 0)
{
grddetails.DataSource = grddetailsDataTable;
grddetails.DataBind();
}
dtpanel.Visible = true;
}
protected void GridView1_SelectedIndexChanged(object sender, GridViewCommandEventArgs e)
{
int w = Convert.ToInt32(e.CommandArgument);
Control control = GridView1.Rows[w].Cells[0].Controls[0];
LinkButton btn = control as LinkButton;
string qval2 = btn.Text;
Label1.Text = btn.Text; string query = "SELECT * FROM Table WHERE Col LIKE '%" + qval2 + "%'";
string connectionString = @"Data Source=servername;Initial Catalog=dbname;Integrated Security=True";
SqlConnection accessConnection = new SqlConnection(connectionString);
SqlCommand accessCommand = new SqlCommand(query, accessConnection);
SqlDataAdapter grddetailsDataAdapter = new SqlDataAdapter(accessCommand);
DataTable grddetailsDataTable = new DataTable("Table");
grddetailsDataAdapter.Fill(grddetailsDataTable);
grddetails.DataSource = grddetailsDataTable;
grddetails.DataBind();
dtpanel.Visible = true;
}
protected void grddetails_SelectedIndexChanged(object sender, GridViewPageEventArgs e)
{
DataTable dataTable = grddetails.DataSource as DataTable;
grddetails.PageIndex = e.NewPageIndex;
grddetails.DataBind();
dtpanel.Visible = true;
}
}
View 5 Replies
Feb 7, 2011
I have a page with an AJAX TabContainer and 4 AJAX TabPanels and have Save button. On a button click im calling javascript thats make ajax tab disappear why?
View 4 Replies
Feb 21, 2011
I have an asp:UpdatePanel in my .aspx page.Within the panel I have placed an infragistics ultrawebgrid control.Upon clicking a button (placed outside the panel) , I have to export the data in the grid to excel.I am using
UltraWebGridExcelExporter(Infragistics object) for this. The export will occur only with full postback.For this I have added a PostBack tigger for the button to the update panel.But once the export is complete, if I change the selected item in a dropdownlist(Autopostback="true") in the same page,the updatepanel gets invisible.
View 1 Replies
Aug 20, 2010
So I got 2 updatepanels on my page. In one there is a Timer which updates for example a label. In the other one there is a dropdownextender. Everytime the timer ticks while the dropdown menu is displayed the menu disapears. I attached the sample code below....any insights on this? And yes, the dropdown and the label need to be in two seperate updatepanels....
[Code]....
View 3 Replies
Mar 16, 2011
we are testing the Razor webgrid with Ajax. Works absolutely fine in IE8 when sorting in paging. However in IE7, any attempt to sort or page causes the grid to vanish from the page, leaving a blank space. The HTML that should be there, isn't!Has anyone come across this issue? How could we debug it? Page code below:
[Code]....
View 7 Replies
Jul 6, 2010
I'm using the AsyncFileUpload control inside my FormView (that is in a UserControl - .ascx file), and to "simulate" a server-side event I register a javascript script to do a click event of an hidden button (this is a trick discovered in this forum).
The click event is fired after the upload complete but... when the event is finished the AsyncFileUpload ontrol DISAPPEARS from the page and it is showen this instead:
"11294------image/pjpeg"
View 2 Replies
Aug 25, 2010
Currently having problems with a modal popup. When you click its target control it will show up the hide itself again.
View 6 Replies
Oct 28, 2010
I"ve stepped through the code and it would appear that there's another postback somewhere on my MasterPage, the Popup is on my Child page, therefore it gets killed.
What i'm trying to do is on my default on_load, check for a cookie and if there isn't one, display a Popup. It seems that the child page renders before the Master???
Anyhow, I don't really want to put the code for the Popup in the Master after the rest of the controls have loaded since its only needed on the one page.
*edit* I added a button and the on_click does the exact same thing it pops up and disappears, I cannot step through the Modal process
View 2 Replies
Jan 11, 2011
here is my code
<asp:LinkButton ID="changeStatusLinkButton" runat="server" Text="Change status" />
<ajaxToolkit:ConfirmButtonExtender ID="cofirmButtonExtender" runat="server"
TargetControlID="changeStatusLinkButton"
DisplayModalPopupID="modalPopupExtender" ConfirmText="" Enabled="True" />
<ajaxToolkit:ModalPopupExtender ID="modalPopupExtender" runat="server"
[Code]....
and when I select something in my statusDropDownList, (it has AutoPostBack="true") and my modal popup disappears.
View 6 Replies
May 17, 2010
[Code]....
AJAX popup appears and then immediately disappears
View 5 Replies
Jan 12, 2010
I'm getting following error in Firefox while switching tab in the page Error: clientActiveTabChanged is not defined The following code I'm using in the master page
<cc1:TabContainer runat="server" ID="TabContainerMain" OnClientActiveTabChanged="clientActiveTabChanged">
<cc1:TabPanel runat="server" ID="TabPanelEmployee" Enabled="true" HeaderText="Employee">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanelEmployee" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="buttonEmployee" />
</Triggers>
</asp:UpdatePanel>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel runat="server" ID="TabPanelAdmin" Enabled="true" HeaderText="Admin"
Width="100%">
<ContentTemplate>
<asp:UpdatePanel ID="UpdatePanelAdmin" runat="server" UpdateMode="Conditional">
<Triggers>..........................
View 7 Replies
Apr 27, 2010
I have the latest toolkit build (3.5) and discovered that a ComboBox button width and height is being set to zero and not displaying correctly after switching tabs, posting back in UpdatePanel, and returning to original tab.
Steps to recreate:
1. Run code and start on tab 1
2. Select tab 2
3. Select a Product to postback
4. Return to tab 1 and notice combo button is gone
Master Page:
[Code]....
Page Code:
[Code]....
Code Behind:
[Code]....
View 3 Replies
Aug 6, 2010
I have a modalpopupextender and I want to show a panel after a postback which works but once the panel is shown it disappears immediately. Upon reviewing the markup, it seems as though some inline styles are being set.
style="display:none; position:fixed"
If I edit the display attribute and change it to block then the panel will displayed with all its rendered content but I need it to display after a postback. After troubleshooting the only conclusion i have is that the modalpopupextender is setting the inline styles, because when I turn off the modalpopupextender, then the Panel will show correctly.
<asp:ModalPopupExtender ID="modalPopupExtender1" runat="server"
View 10 Replies
Jun 7, 2010
The first step to reproduce the behaviour is pasting a specifc text from a PDF document into the HTMLEditor:
After that, select the text:
And then, click the Justify button. The selected text simply disappears:
The HTML code generated by the content:
The same happens for other texts like (also pasted from the same PDF):
The correspondig HTML markup generated by the HTMLEditor:
It seems like HTMLEditor has problems with some characters like " or subscripts. If the same texts are pasted into Word and then copied into the HTMLEditor, it works ok and the text is justified correctly.
View 1 Replies