Hello,
I have a problem, i have a event in asp.net codebehind file that
updating a datasource. If that update went well i want to refresh my
treeview thats on another page. The script works well, the problem
is.... the client script runs before the updatemethod !
I give u some ex code here...
aspx page
<script language=3D"javascript" type=3D"text/javascript">
function UpdateFieldTree()
{
parent.UpdateMenu();
}
</script>
<asp:Button ID=3D"BtnAddCostCenter" Text=3D"L=E4gg till" runat=3D"server"
OnClick=3D"AddData_Click" />
aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
this.BtnAddCostCenter.Attributes.Add("onclick",
"javascript:parent.UpdateMenu();");
}
protected void AddData_Click(object sender, EventArgs e)
{
// Save list
jm.orderweb.formmanagement.ListManagement.SaveList(listObject);
// Now i want to run the javascript !!
}
Hope you have some ideas that can help me, this should not be some odd
case.=20
Thanks=20
Jeppe
|
|
0
|
|
|
|
Reply
|
jesper_lofgren (2)
|
1/16/2007 8:02:55 AM |
|