Reputation: 7566
These is my aspx, how i can perform from js?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RetailReport._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server" enableviewstate="false">
<link href="layout/Images/logo.ico" rel="shortcut icon" />
<title>My Site</title>
</head>
<frameset border="0" rows="55, *" id="rowsFrameset" runat="server" enableviewstate="false">
<frame name="header" src="Header.aspx" noresize="noresize" frameborder="0" scrolling="no">
<frame name="mainpanel" src="ChildForm/Home.htm" noresize="noresize" frameborder="0">
<noframes>
<p id="p1">
Reporting System
</p>
</noframes>
</frameset>
</html>
I have tried :
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
but doesn't work. this is the postback js call __doPostBack('rowsFrameset', 'myAction');
Any ideas?
Upvotes: 0
Views: 564
Reputation: 1554
I agree with Erik. You'd want the element somewhere in the code for a postback to occur.
I don't see any button or control to trigger of the postback.
Upvotes: 1