I have one requirement when developing a module.
I need to retrive HTML content of Budget part from the whole rendered HTML Page and save it in to database. This HTML content needs to displayed in a pop up window on the click of Details link of another page.
Firstly, I think by adding this Budget part into panel or
tag and then finding the budget part by the id of
/panel control be helful. However this Budget part also had
and panel cotrols inside it. So it is very difficult to get the indexOf ending
I got a very good solution for this. If you add <!-- Start Budget part --> and <!-- End Budget Part --> in your aspx code, you can get these comments in the compile page HTML code. Another comment like <%-- Start Budget part --%> <%-- End Budget part --%> will not occur in the compile page HTML.
int startind = strResult.IndexOf("<!-- Start Budget part -->");
strResult = strResult.Substring(startind);
int endind = strResult.IndexOf("<!-- End Budget part -->");
strResult = strResult.Substring(0, endind);
And thus I only need to find the indexof <!-- Start Budget part --> and <!-- End Budget Part --> and made a substring to retrieve the content.
Sandesh has a 11 years of total professional experience in a software development. He first handled the computer in his school days when he was in 7th std working on Lotus. In summer vacation, the school authorities allowed him and other students to use the computers for practicing Lotus and playing different games
He has done computer engineering. Currently he is working in Net 4.0 framework. Even though he is using .Net 4.0 framework for development but still he has not got a chance to work with newer technologies like MVC, WCF etc. However he always try to learn these technologies from his end and eagerly waiting for a chance to work with the newer technologies like MVC, WCF and Silverlight etc.