|
hi all
I have page main contain a iframe
On the page main have treeview and i use Ajax
tag UpdatePanel contain tree view but it not contain iframe
when i click event SelectedNodeChanged on tree view i want ReLoad iframe
On the function i try javacript but it not run
protected void treeview_SelectedNodeChanged(object sender, EventArgs e)
{
string strScript = "";
strScript += " window.parent.frames['ifmap'].ReLoad();";
//OR parent.frames['ifmap'].ReLoad();
strScript += "";
Page.RegisterStartupScript("ClientScript", strScript);
}
this is ReLoad() in iframe. it will postback to server with event LinkButton1
function ReLoad() {
__doPostBack('LinkButton1','');
}
How can i Reload or refresh my iframe on above function by any ways ?????
so when i use ajax and tag <asp:updatepanel id="UpdatePanel1" runat="server">
Any function javacript into not run. if i reject this tag so function javacript run good. ????
1. How can i refresh or reload iframe so use ajax. ?????
2. How do i run any function javacript into tag <asp:updatepanel id="UpdatePanel1" runat="server"> ?????
|
|
|
|
|
|
sorry i am very pressing ;P
|
|
|
|
|
One post is enough here.
Regards,
Satips.
|
|
|
|
|
Hello
you can use this method:
LinkButton1.OnClientClick = "javascript:window.parent.frames['ifmap'].document.location = URL;return false;";
or
LinkButton1.OnClientClick = "javascript:window.parent.frames['ifmap'].document.location = window.parent.frames['ifmap'].document.location;return false;";
We Can Do Anything, If We Want It
|
|
|
|
|
thanks but it tree view it haven't onclick or onclientclick ?????
|
|
|
|
|
u can use NavigateUrl for each treenode such as Tree1.Nodes[0].NavigateUrl = "javascript:yourfunction();return false;";
We Can Do Anything, If We Want It
|
|
|
|
|
|
i have created visual studio 2005 web application and i want to host it on apache server.
what configuration i need to do?
|
|
|
|
|
Windows Server and IIS;P
only two letters away from being an asset
|
|
|
|
|
should i put the whole project in the wwwroot.
but if i want to use apache server.
|
|
|
|
|
Hi All
I have problem regarding WebCustom Control
I am trying to develop a generic WebCustomControl for searching purpose.
What i am trying to do is to pass UI Controls such as labels textboxes etc from the hosting page to the webcustom control. I have a method in WebCustomControl Class that add these control to the Control Collection of the WebCustomControl.
The logic of the method is
public void AddControls(Controls[] UIControls)
{
foreach (Control control in UIControls)
{
this.Controls.Add(control );
}
}
The Method is called from the Hosting Page as
TextBox txt1 = new TextBox();
txt1.ID = "txtname";
Control[] c ={ txt1};
search.AddControls(c);
I creat a control array and store my textbox in it i then pass the array to the method of webcustom control.
Now the problem is that when render method of the control is called the control collection of webcutomcontrol lost its value. the logic of RenderContents is as
protected override void RenderContents(HtmlTextWriter output)
{
foreach (Control control in UIControls)
{
control .RenderControl(output);
}
}
This is fairly simple but i don't know where the problem is
Any assistance will be appreciated
Regards
Faiq shah Afridi
|
|
|
|
|
i know how to make a data grid, but i would like to add a place to enter a variable, or multiple variables (like date ranges or an individual customer)
how can i make it so?
ASP.NET 2.0 SQL Server 2005
thanks
|
|
|
|
|
what you mean by variable? are your trying to enter some text/date if so use templatefield and the text boxes in that templatefield..
-----
|
|
|
|
|
yes, data from a data box or date box.
|
|
|
|
|
tehn as I mentioned earlier, use templatefield (gridview) templatecolumn(datagrid) and add text boxes under itemtemplate
-----
|
|
|
|
|
Hi All,
I have one text box and then save button when I enter the information in the text box and press Enter key on Keyboard it should save the record .
I am not using the Tab to set the tab index for button.
Just Pressing the Enter Key How can I save the records.
Please Help me out
|
|
|
|
|
if you have only one submit button on the page then it should submit the form automatically. If not then you have to catch the enter key (use document.onkeypress function the code for enter key is 13) and fire the button's onlcick functionor submit the form.
-----
|
|
|
|
|
set onclick event of textbox to new javascript code such as onclick="if (event.keyCode == 13)document.getElementById('btn1').click();"
We Can Do Anything, If We Want It
|
|
|
|
|
Hi Guys,
I have encountered this probleme when I am having a Classic ASP code that was put inside a string variable including the directives (<% %>)
Page Error:
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/signup/checkbox4.asp, line 6
&"<%= varTemp
-------------^
Below is the my Test Classic ASP, before moving to my actual ASP Coding. I hope this can be solved. Thanks in advance
<%
Dim sCheckBox
sCheckBox = sCheckBox + "" _
&"/>" _
&"Test Checkbox" _
&""
%>
<%= sCheckBox %>
hifiger2004
|
|
|
|
|
Note this is the ASP.NET forum. You may get a better response by moving it the Web Development forum.
only two letters away from being an asset
|
|
|
|
|
|
When i want to rewrite an url which passing some parameter then it gives error in connecting.
code which i write in web.config is:
<url>param\.aspx</url>
<rewrite>UserDetail.aspx?UserName={0}</rewrite>
|
|
|
|
|
hello every body,
Can datalist be run from code behind.
actually i had an array and wants to run datalist with different select statement
is it posible to do this.
regards
rahul saini
|
|
|
|
|
Well i cud not understand your question...what r u trying to achieve...please explain the scenario
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|