there are various pages in my ERP, i have a search panel, which is displayed according to the pages. i can not use all those funtion in js, as i have to hide and show various textboxes and button.
Can there be any other event,on the HTML Link to call the functions according to the page.
i have done that with asplinkbutton...but i m using now an expandable menu.
which does not work if i use asplinkbutton.
can u tell me 1 thing, when i use the asplinkbutton in plcae of html link in the collapsible menu, the collapsible property of it stop working.if i can slove this problem.......all other headache will end.
Saurab, I didn't get your scenario properly what exactly you're trying to do. What I'm assuming is that you've a search panel which is displayed where ever you navigate to but it shows controls according to the page you're on. Is this your scenario?
i have used,iframe and my page is divided into two parts..left and right.
left i have fixed,where i display the search panel and in the right panel, the page loads(in iframe).
thus keeping the main page stable and loading the page and search panel in side that main page.
the main page contains all the attributes of search panel.
can u help me,with using asplinkbutton instead of html link.
as i told u before, when i used it....1st page on click works fine along with search panel and after which the collapsiable proerty stop,until the main page is refreshed.
so, if i can use the asplinkbutton......all the problems will be sloved in the collpsiable menu.
no its not an asp menu bar.........but i used it before(asp link button)
where i had 'onclick' and 'onclientclick' events, from which i called the page from one and corresponding search panel with another one.
now in case of html menu,i just have 'onclick' event.
i call the page using js,where as my search panel is called from c# code.
i m unable to manage both on one click event...
okie picture is clear now, try calling this on html links
onclick='__doPostBack('method name to be called on postback','in arguments you can send id of page or something by which you can get which link is click! '
In your main page's code-behind, the method which is defined in __doPostback, set your search panel accordingly and open the page as per argument send by request.form['__EVENTARGUMENT'] (i might be wrong about this request.form's parameter just google how to get the value from it) and you're good to go
let me know if you need further help
Please don't forget to mark 'Good Answer', if you find it really a good one!
protected void btnSave_Click(object sender, EventArgs e)
SaveFileDialog s = new SaveFileDialog();
I want to open a saveDialog box to save a Web page...But When i run this coding it is showing me a error:
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.
How to rectify this error?
Last Visit: 31-Dec-99 19:00 Last Update: 6-Dec-22 14:56