|
How are you using the iframe and UpdatePanel? Anything that causes a postback will of course cause the page to reload and hence the Flash.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
i used the UpdatePanel by draging it to the masterpage and inside of it i draged my flash control, and pointed a trigger to the contentplaceholder. but that didnt work for me
about the Iframe.. im not sure if i did it the right way.
|
|
|
|
|
Farraj wrote: im not sure if i did it the right way
Neither am I, my mind reading ability is only good within 3 meters of someone.
Perhaps if you showed some code we could help.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
update panel:
masterpage cs code
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ScriptManager1.RegisterAsyncPostBackControl(ContentPlaceHolder1);
}
}
aspx code:
<form id="form1" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<uc2:menu1 ID="menu11" runat="server" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ContentPlaceHolder1" />
</Triggers>
</asp:UpdatePanel>
</form>
hmm...?
|
|
|
|
|
"Controls that are triggers for an update panel cause a refresh of the panel's content after an asynchronous postback." http://msdn.microsoft.com/en-us/library/system.web.ui.asyncpostbacktrigger.aspx[^]
So what you have configured is having the ContentPlaceHolder trigger a refresh of the UpdatePanel; however, I believe you want the reverse. Also, since ContentPlaceHolder has no events that can be triggered, nothing will happen. Finally, RegisterAsyncPostBackControl is the code behind is unnecessary since you have already specified it in the markup.
As a matter of convention ScriptManager is usually added to the top of the form.
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<uc2:menu1 ID="menu11" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="menu1" />
</Triggers>
</asp:UpdatePanel>
</form>
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
im trying this. but at the Triggers i cant point it to the Menu, i only can point it to the content placeholder
..?
|
|
|
|
|
|
hiiiiiiiii
i have a situation where i have to select a row in gridview on single mouse click and when i click the delete button the selected row should be deleted. on double click only the selected row values should be loaded into the asp controls.for the double click i had written the code in row databound as
e.Row.Attributes["ondblclick"] = (ClientScript.GetPostBackClientHyperlink(this.gv1_Country, "SELECT$" + e.Row.RowIndex));
and by this i stopped the single mouse click to the datagrid.
when coming to single mouse click i had taken a hiddenfeild value and i want to assign the selected row primary key to that hidenfeild value.
for that i had written the code in row databound as
e.Row.Attributes.Add("onclick", "document.getElementById('hiddenfeildid').value=this.rowIndex");
and now the selected row index value is not coming into the hiddenfeild value.....
i hope all u understood my problem...
anyone kindly help me.............
Thanks in Advance....
VISHNU
|
|
|
|
|
vishnukamath wrote: e.Row.Attributes.Add("onclick", "document.getElementById('hiddenfeildid').value=this.rowIndex");
Are you sure this line is correct from Javascript prospective? It might be that the hidden field used is a server field (to use it in code behind) and so the actual id of the field when page renders is not just 'hiddenfield'.
2 things:
1. try an alert box first. Popup the alert(this.rowindex);
2. Do a view source and check what is the ID of the hidden field. If step 1 works above as expected then replace the ID with what you find in viewsource.
|
|
|
|
|
Hi Vishnu,
Please take 2 seperate button fields i.e. 1)Edit button 2)Delete Button. I think it'll be easy for u to code for actions.
|
|
|
|
|
I am creating a report using rdlc files. I want page break at the end of a group , but not at the end of last one.I googled a lot.After 2 hrs of googling i dint found any correct solution....
In my example ,there is a lot of records.After 20 records,it will have to throw balance records to next page.I hav already put the condition for page break.It showed only 20 records.Please help me..Please reply fast..
|
|
|
|
|
Thanusree Duth wrote: Please reply fast..
Avoid it from next time!
Thanusree Duth wrote: I want page break at the end of a group , but not at the end of last one
It won't give a break at the end. Though you question sound incomplete, only reason to post/ask such thing could be getting a blank page after last page break at the end. If so, then it would be because of some extra space at the end in your report designer.
If this is not the case, update the question with more details.
|
|
|
|
|
i'm looking for something related to...
i would like to force pagebreak while grouping..
eg:
only 20 records per page
or
page break when specific_expression == true..
Pat
|
|
|
|
|
Hi,
First, I apologize for the bad title of the message, but the truth is that I don't have a name for this question
I've got my website http://www.mysite.com hosted on a server that does daily backup.
When I upload files to my website using an FTP client in the root folder I see 2 folders:
mysite.com (my site)
mysite.com_backup (backup)
So the URL http://www.mysite.com maps to /mysite.com/ on the server.
My question is: using VB.NET or C#, is there a way to know the virtual server path of an URL (obviously having the credentials to connect to the server)???????
http://www.mysite.com --> /mysite.com/
How to do this???
Thanks to all.
|
|
|
|
|
hmm.. I don't think you're entirely clear about what you're after, but you might want to lok at either the Request.ServerVariables collection (try Request.ServerVariables("PATH_TRANSLATED") for starters...) and/or the Server.MapPath method....
|
|
|
|
|
I'm not looking for the phisical path of the page (I know it's D:\inetpub\wwwroot\... and something else, on my server).
What I'm looking for is the virtual path of the server the maps to the site homepage.
I don't know if I'm so clear, so see this image: http://www.marcosroom.it/nosito/filezilla.bmp
My site is http://www.marcosroom.it and its files are in the /marcosroom.it/ directory of the server (red circle), while the server root (/) contains 3 folders and just one is the real website (blue rectangle).
So my question is: is there a way to know the server virtual path (red circle) of the homepage of the site, knowing just the ftp login data???
|
|
|
|
|
Sorry, you've lost me. But no server-side code can access filesystem information outside of the root folder of your site.
|
|
|
|
|
|
Hi Guys, I am new in MVC and reading book. I follow his example but after running I faced with error, I can't run the page. Could you please check the following code and tell me was the problem.
thx in advance
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MvcApplication1.Models.GuestResponse>" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title>RsvpForm</title><br />
</head><br />
<body><br />
<br />
<%using (Html.BeginForm()){ %><br />
<p>Your Name:<%:Html.TextBoxFor(x=> x.Name) %></p><br />
<p>Your Email:<%:Html.TextBoxFor(x=> x.Email) %></p><br />
<p>Your Phone:<%:Html.TextBoxFor(x=> x.Phone) %></p><br />
<p><br />
will you attend?<br />
<%Html.DropDownListFor(x=> x.Attend, <br />
new SelectListItem {Text = "Yes", Value = bool.TrueString} <br />
new SelectListItem {Text = "No", Value = bool.FalseString} <br />
}, "choose an option") %><br />
<br />
</p><br />
<input type = "submit" value= "submit RSVP" /><br />
<br />
</body><br />
</html><br />
after running page, error appear from this line
Line 18: new SelectListItem {Text = "Yes", Value = bool.TrueString}
|
|
|
|
|
Member 4674360 wrote: error appear
|
|
|
|
|
Hi Everyone,
I am wondering if we could do something like this:
well lets say my tag is like this:
<%# DataBinder.Eval(Container.DataItem,"Item")%>
let say it gives value like this:
book
Now if i need to show the output like this:
(book)
Is there any way that i can show using string format?
suchita
|
|
|
|
|
try this
<%# Eval("Item") != "" ? "("+ Eval("Item")+")" : Eval("Item").ToString()%>
|
|
|
|
|
|
This is completely unnecessary, inefficient and ugly code.
See below.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
<%# DataBinder.Eval(Container.DataItem, "Item", "({0})") %>
I know the language. I've read a book. - _Madmatt
|
|
|
|