Maybe you can be a little more specific about the "data" you are looking for. I'm assuming you need the items displayed in the 6 column result table on the page ? Patt
patt
Posts
-
Access web page text from C# -
Access web page text from C#Try System.Net.Webrequest .. to create a request for the page, and if you're not sure of a correct response, use WebResponse.GetResponseStream() to process the response Patt
-
determine length Response.OutputStreamDear Sandeep, Thank you for your response. Unfortunately WebRequest and WebResponse are not part of the context here. I'm way up the ASP.NET Stack intercepting the Http response. Patt
-
determine length Response.OutputStreamhello, I'm trying to intercept the Response.OutputStream in a HttpModule. Since Response.OutputStream is write-only I tried to filter it using the Filter property, but without success. I need to find a way to modify the stream if it's an image in the BeginRequest or EndRequest event. All I've seen is examples where ppl modify the HTML by filtering. Since my response contains only image data this doesn't work for me. I've been at it for days now X| Ideas anyone ? tia. Patt
-
ObjectDatasource Deletemethod w custom Business Object [modified]That worked. Thanks. Eh, you wouldn't know how to keep it working even if I set the ID field readonly ?
-
problem with expressions in switch statementThe frustrating thing is that you will have to use if statements in C# to do this....
-
How to handle a click of a hyperlinkAs far as I can tell there's no click event associated to the Hyperlink webcontrol. There is a ServerClick event for the HtmlAnchor control however, that will qualify for what you're trying to do. Personally I'd try to work with the Attributes collection of the HyperLink or the Style collection of the table cell. Hope this helps, Patt
-
ObjectDatasource Deletemethod w custom Business Object [modified]Hi, I've tried to create a business object that can fully bind to the ObjectDatasource to be used in a DetailsView object for example. Everything works f X| ine here, but I cannot seem to get the deletemethod to do anything. This is the testobject I created: public class BO { private int _id = 0; public int Id { get { return _id; } set { _id = value; } } private string _Field = string.Empty; public string Field1 { get { return _Field; } set { _Field = value; } } private string _Field2 = string.Empty; public string Field2 { get { return _Field2; } set { _Field2 = value; } } public BO() { } public BO(string fld1, string fld2) { Field1 = fld1; Field2 = fld2; } public BO LoadMe() { return (HttpContext.Current.Session["bo"] != null)?(BO)HttpContext.Current.Session["bo"]:new BO(); } public void AddMe(BO bo) { HttpContext.Current.Session["bo"] = bo; } public void DeleteMe(BO bo) { BO InMem = (HttpContext.Current.Session["bo"] != null) ? (BO)HttpContext.Current.Session["bo"] : new BO(); if (InMem.Id == bo.Id) // Why is bo empty ?? HttpContext.Current.Session["bo"] = new BO(); } I created a page with an objectdatasource, selecting LoadMe as the SELECT method, AddMe() as the INSERT method, and DeleteMe() as the DELETE method. The odd thing is that DeleteMe() fires, but the parameter bo is passed with just empty values.. Does anyone know what I'm doing wrong (if I'm doing something wrong) ? Never mind the working of the object, I just need the Delete method to work. tia, Patt -- modified at 10:37 Thursday 22nd June, 2006