|
|
|
How many rows are you trying to bind to the Grid ?
Make sure you select only the columns necessary and build filtering logic in so that you are not attempting to display thousands of rows to a grid.
|
|
|
|
|
I wonder if any of you could help me on this. I am new to using AJAX, so do please explain as simply as possible.
I have a ModalPopUpExtender which, for some reason, will not bring up the pop up as expected. I did suspect that the script manager was not being inherited from the master page, but the RoundedCornersExtender seems to work as expected, so that would rule that issue out.
I know the number of properties of the extender is a little basic at the moment, but I just want to get the div to appear as a pop up before I start assigning the buttons or formatting the background.
The code is as follows:
<asp:modalpopupextender id="MPEProphetAndLoss1" runat="server" popupcontrolid="divProphetAndLoss1"
="" targetcontrolid="LinkButtonIntroductionText">
<asp:roundedcornersextender id="RCEProphetAndLoss1" runat="server" targetcontrolid="divProphetAndLoss1"
="" radius="10" corners="All">
<asp:roundedcornersextender id="RCEProphetAndLoss1InnerContainer" runat="server"
="" targetcontrolid="divProphetAndLoss1InnerContainer" radius="10" corners="All">
<asp:button id="btnProphetAndLoss1" runat="server" onclick="btnProphetAndLoss1_Click"
="" text="Close" backcolor="#A1B9AF" width="100px">
<asp:linkbutton id="LinkButtonIntroductionText" runat="server" text="Prophet And Loss: The Introduction"
="" onclick="btnIntroductionText_Click">
And the code behind for the 'onclick' is:
protected void btnIntroductionText_Click(object sender, EventArgs e)
{
divProphetAndLoss1.Visible = true;
}
Should the div be inside a panel for it to work, or can it work just within the div itself?
|
|
|
|
|
I don't think you need the btnIntroductionText_Click event since the Popup Extender is already taking care of it when you set the TargetControlID.
|
|
|
|
|
Check your PopUpTitle CSS, sometimes the AJAX fired and worked, but the proper css was not available, to alter.
In other words, the modelopopupextender just makes a change to the css, which makes it pop up, and then changes the css back to the original parameters to hide the popup.
So change your css to show the popup, and change the css back to hide the popup, before implementing the popup extender.
If the popup extender still doesn't work after that, then your missing a extender property, which should trigger an error.
I didn't see the close button target id.
<asp:ModalPopupExtender I
ID="MPEProphetAndLoss1"
runat="server"
PopupControlID="divProphetAndLoss1"
TargetControlID="LinkButtonIntroductionText"
CancelControlID = "bt_Modal_Cancel"
>
Test your css class for show and hide by altering the css
<div id="divProphetAndLoss1" runat="server" class="PopUpTitle"
This should be show or hide
protected void btnIntroductionText_Click(object sender, EventArgs e)
{
MPEProphetAndLoss1.Show();
}
}
|
|
|
|
|
I have generated a 2010 web setup and deployment project that works and is created to deploy to an iis7 server. When running the setup.exe installer that I have genrated, the user can select the values for site and application pool. The user can not select the value for virtual directory.
My problem is the user just want to hit the 'next' button all the time. They want all the values predetermined for them. Thus can you tell me and/or point me to a reference that will tell me how to have the values for:
a. application pool, and
b. site preset for the user?
|
|
|
|
|
Just off the top of my head but can't you disable the next button until an option has been selected? (I'm guessing here: have not had need to use that functionality)
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I think IIS only needs to Config directory. other not used.
|
|
|
|
|
I do not want to give the user an option. I just want them to take the defaults that are setup. Is that possible?
|
|
|
|
|
All the options are in the properties window F4, you have to dig deep, and F4 each object until you find that option.
|
|
|
|
|
hi
where the view state is stored,intiailized in the page life cycle
|
|
|
|
|
|
+5 for useful link..
Happy Coding...
|
|
|
|
|
Hi,
I have a web application,my requirement is like this to integrate the visual studio web Site Administration Tool to the Web application.Is It possible.Please Replay
Thanks &Regards
Lijo
|
|
|
|
|
|
Hi,
Thanks for your replay.I have one more doubt
1. Can i use mysql instead of MsSQL .
2. Instead of mssqlexpress can i use other data base like master database in mssql for user management administration.Please Replay.
Thanks&Regards
lijo
|
|
|
|
|
yes you can integrate the WSAT into your web applications. go to asp.net configuration option. there you can access the Wsat and add it to your web app
|
|
|
|
|
Guys;
As you might know, all extenders are created by calling the function $create() just on the event Sys.Application.init . And disposed by calling the function $find('componentId').dispose() ether on the event Sys.Application.unload (closing the page) or by updating the containing UpdatePanel .
My question is; in case we create the behavior(the extender) dynamically by calling the function $create() through the client script, then how to register disposing it when the UpdatePanel is updated?
Help people,so poeple can help you.
|
|
|
|
|
We can achieve that by by calling the function Sys.WebForms.PageRequestManager._registerDisposeScript(); which registers the the component on updating the parent UpdatePanel just like the code below:
Sys.WebForms.PageRequestManager.getInstance()._registerDisposeScript('parentupdatepanelid', 'var component = $find("componentid"); if (component != null)component.dispose()';
The disposing script(the second argument) is executed by the function Sys.WebForms.PageRequestManager._updatePanel which is called when an UpdatePanel is updated. (the code below)
function Sys$WebForms$PageRequestManager$_updatePanel(updatePanelElement, rendering) {
for (var updatePanelID in this._scriptDisposes) {
if (this._elementContains(updatePanelElement, document.getElementById(updatePanelID))) {
var disposeScripts = this._scriptDisposes[updatePanelID];
for (var i = 0, l = disposeScripts.length; i < l; i++) {
eval(disposeScripts[i]);
}
delete this._scriptDisposes[updatePanelID];
}
}
this._destroyTree(updatePanelElement);
updatePanelElement.innerHTML = rendering;
}
I added the if statement to the disposing script because the component can be disposed before the UpdatePanel is updated so the function $find() would return a null and we would have a Null Reference Exception.
So what about the behaviors that is created after ExtenderControls on the Page that have disposing scripts of '$find("componentid").dispose();' ?
Help people,so poeple can help you.
modified 11-May-12 10:33am.
|
|
|
|
|
HI
I want:(Below)
Redirect to login page when i dont touch the page. (After Session time out).
I dont want like this:(Below)
Not to refresh the page or set a timer in javascript.
Regards,
Shirish Manda
|
|
|
|
|
Sir;
you can add an if statement to the function that handles the load event of the page checking if the session is null and redirecting to the logging page. Just like the code below;
if (Session["UserName"] == null) Response.Redirect("~/loggingpage.aspx");
Help people,so poeple can help you.
|
|
|
|
|
If this is written in Page Load event. It fires only when page is loaded. It does'nt fires (Page Load Event) when session timeout.
Regards,
Shirish . M
|
|
|
|
|
Sir;
I use it all the time and it works.
Help people,so poeple can help you.
|
|
|
|
|
Every Time The Page Loads, check for any Session Variable You Set At The Time Of Login IS NOT NULL.. If It Is NULL, Then Redirect To The Login Page Else Complete The Request.
- Happy Coding -
Vishal Vashishta
|
|
|
|