Hey guys, this seems to be a thorn in my side. I've been working on scraping a website which uses aspx and has eventvalidation/viewstate inputs. Every other scraping experiment I've made was not this difficult. Maybe one of you geniuses here at Daniweb has an idea of how to solve this? I've managed to get Selenium/PHPUnit to automate the process of opening the browser, typing in the URL, filling out the required fields (todays date), and then landing on the page I need to scrape and can get the viewstate and eventvalidation values from any of those pages. I've been …

Member Avatar
Member Avatar
+0 forum 2

Dajia hao, daniwebians! Just a quick question, is it possible to focus on a textbox on an externally loaded website? My goal is to load an external website, focus on a textfield, auto fill it with the current date, then submit it to then run my newly created scraper tool on the resulting page. Any ideas? I've done a bit of research and will continue to do so...

Member Avatar
Member Avatar
+0 forum 9

Can u give me a code of tranferring data through view ctate from tranferring 1 page to another or an method how to do it???? I also want that the data shoulg directly go to the gridview through viewstate.. plz answer soon....waiting for your reply

Member Avatar
Member Avatar
+0 forum 1

Hi, I am building a Contact Us Email Form. My email sending part is working fine. I just want to confirm one thing with experienced programmers. Once I click the send message button, I am calling a function to send the mail. Then I get the message saying the mail has been sent. But all the text boxes in the page are still populated with values. I dont want to disable viewstate because, if there is an error in sending mail, i would like the textboxes to retain values. So the solution that i have thought out is to reset …

Member Avatar
Member Avatar
+0 forum 2

The VIEWSTATE size is killing our apps and it keeps growing. The .aspx files are bigger than 2.5Mb in some cases. The developer is on vacation and I just installed a 90 day trial of VS 2008 to test turning form-level VIEWSTATE off then turning it on again to see if the VIEWSTATE gets reduced substantially. It didn't. It went right back to the same size. When VIEWSTATE was off the page size was 650K. With it off I tested changing one combo field and it worked. The problem is that some pages are complicated with grids and custom user …

Member Avatar
Member Avatar
+0 forum 1

I have a DropDownList that is populated from an ObjectDataSource [CODE] <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" DataSourceID="odsGetDeptByFaculty" DataTextField="Dept" DataValueField="FID" onselectedindexchanged="ddlDepartment_SelectedIndexChanged"> </asp:DropDownList> <asp:ObjectDataSource ID="odsGetDeptByFaculty" runat="server" SelectMethod="usp_GetDeptByFaculty" TypeName="DataLayer.StoredProcs"> <SelectParameters> <asp:ControlParameter ControlID="ddlFaulty" Name="fCode" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:ObjectDataSource> [/CODE] My problem is when I run the program and select the option from the dropdownlist when the postback happens it returns to the first value in the list. Please help me nip resolve this issue. Many thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

hi i have a HiddenField control that i have to create at run time. it's populated by javascript on the client end, but each postback it's created again and loses its value. where do i have to create it, or what do i have to do to make it keep its value? this is my code right now: [CODE] private HiddenField hdnSelectedValues; protected override void CreateChildControls() { base.CreateChildControls(); hdnSelectedValues = new HiddenField(); hdnSelectedValues.ID = "hdnSelectedValues"; base.Controls.Add(hdnSelectedValues); } [/CODE]

Member Avatar
Member Avatar
+0 forum 1

The End.