1. [SoapDocumentMethod(OneWay = true)]

    Date: 03/17/08     Keywords: database, web

    I am trying to create a "fire and forget" webservice that I can kick off from a webpage.


    This is the code I have in the webservice:

    using System;
    using System.Web;
    using System.Collections;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Data;


    [WebService(Namespace = "http://www.tempuri.org")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]


    public class TestWebService : System.Web.Services.WebService
    {

    public TestWebService()
    {

    //Uncomment the following line if using designed components
    //InitializeComponent();
    }



    [SoapDocumentMethod(OneWay = true)]
    [WebMethod]
    public void MultipleDatabaseHits()
    {

    // ..... do a bunch of database stuff

    }


    }



    When I launch it from a page using this code, the page doesnt complete loading untill the database work is done.



    protected void Button1_Click(object sender, EventArgs e)
    {

    TestWebService mySvc = new TestWebService();
    mySvc.MultipleDatabaseHits();

    }



    What am I doing wrong ?



    I'm not using RPC for soap so I know that the [SoapDocumentMethod(OneWay = true)] command is the correct one to use. I've seen examples where [SoapDocumentMethod(OneWay = true)] came before or after [WebMethod] - I tried it in both places and it didnt make a difference.

    Source: http://aspdotnet.livejournal.com/97095.html

  2. [SoapDocumentMethod(OneWay = true)]

    Date: 03/17/08     Keywords: database, web

    I am trying to create a "fire and forget" webservice that I can kick off from a webpage.


    This is the code I have in the webservice:

    using System;
    using System.Web;
    using System.Collections;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Data;


    [WebService(Namespace = "http://www.tempuri.org")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]


    public class TestWebService : System.Web.Services.WebService
    {

    public TestWebService()
    {

    //Uncomment the following line if using designed components
    //InitializeComponent();
    }



    [SoapDocumentMethod(OneWay = true)]
    [WebMethod]
    public void MultipleDatabaseHits()
    {

    // ..... do a bunch of database stuff

    }


    }



    When I launch it from a page using this code, the page doesnt complete loading untill the database work is done.



    protected void Button1_Click(object sender, EventArgs e)
    {

    TestWebService mySvc = new TestWebService();
    mySvc.MultipleDatabaseHits();

    }



    What am I doing wrong ?



    I'm not using RPC for soap so I know that the [SoapDocumentMethod(OneWay = true)] command is the correct one to use. I've seen examples where [SoapDocumentMethod(OneWay = true)] came before or after [WebMethod] - I tried it in both places and it didnt make a difference.

    Source: https://aspdotnet.livejournal.com/97095.html

  3. ComboBoxes in two pages.

    Date: 03/12/08     Keywords: programming, asp, web

    Hi. I'm newbie both in ASP.NET and in web programming, so my question may be dumb. Sorry if so.
    I have two pages in my project and each page contains combo box. Comboboxes bind to one data source.
    I need to solve following task: if user select combo box item in one page, the same item must be selected in another page automatically.
    Is there any ways to do this or it's impossible?

    Source: http://community.livejournal.com/aspdotnet/97019.html

  4. ComboBoxes in two pages.

    Date: 03/12/08     Keywords: programming, asp, web

    Hi. I'm newbie both in ASP.NET and in web programming, so my question may be dumb. Sorry if so.
    I have two pages in my project and each page contains combo box. Comboboxes bind to one data source.
    I need to solve following task: if user select combo box item in one page, the same item must be selected in another page automatically.
    Is there any ways to do this or it's impossible?

    Source: http://aspdotnet.livejournal.com/97019.html

  5. ComboBoxes in two pages.

    Date: 03/12/08     Keywords: programming, asp, web

    Hi. I'm newbie both in ASP.NET and in web programming, so my question may be dumb. Sorry if so.
    I have two pages in my project and each page contains combo box. Comboboxes bind to one data source.
    I need to solve following task: if user select combo box item in one page, the same item must be selected in another page automatically.
    Is there any ways to do this or it's impossible?

    Source: https://aspdotnet.livejournal.com/97019.html

  6. Creating details page based off of Gridview/XML Binding

    Date: 03/03/08     Keywords: xml

    I know this is a rather dumb question, but basically I have a main page with a gridview bound to an XML source, and I want you to click on a link that each item has, and when you do that it directs you to a "Details" page (ie you click on a movie title and it directs you to a page that has more info on that movie, with the info being generated from the XML file based on the ID that is sent from the previous page.)

    I know how to do this in .Net 1.1, which involved making a separate class and putting the XML info in that, but I imagine there HAS to be an easier way within the 2.0 framework, considering the implementation of Gridview and Detailsview. When I try and have the info binded on the details page, all it does is show the details of the first id, regardless of what id value is passed. I can post the XML file if necessary, but its a rather basic XML setup. I've tried using the XmlDataSource as opposed to manually coding everything myself. I was trained in developing everything by code as opposed to controls that generate it, but I figure if the control can do it more easily and quickly, it isn't a bad idea to learn that method.

    So I guess the question is how do you efficiently create a "details" page when trying to pass a value from a previous page and then grab that info from a binded XML file?

    ;p

    TIA

    Source: http://community.livejournal.com/aspdotnet/96558.html

  7. Creating details page based off of Gridview/XML Binding

    Date: 03/03/08     Keywords: xml

    I know this is a rather dumb question, but basically I have a main page with a gridview bound to an XML source, and I want you to click on a link that each item has, and when you do that it directs you to a "Details" page (ie you click on a movie title and it directs you to a page that has more info on that movie, with the info being generated from the XML file based on the ID that is sent from the previous page.)

    I know how to do this in .Net 1.1, which involved making a separate class and putting the XML info in that, but I imagine there HAS to be an easier way within the 2.0 framework, considering the implementation of Gridview and Detailsview. When I try and have the info binded on the details page, all it does is show the details of the first id, regardless of what id value is passed. I can post the XML file if necessary, but its a rather basic XML setup. I've tried using the XmlDataSource as opposed to manually coding everything myself. I was trained in developing everything by code as opposed to controls that generate it, but I figure if the control can do it more easily and quickly, it isn't a bad idea to learn that method.

    So I guess the question is how do you efficiently create a "details" page when trying to pass a value from a previous page and then grab that info from a binded XML file?

    ;p

    TIA

    Source: http://aspdotnet.livejournal.com/96558.html

  8. Creating details page based off of Gridview/XML Binding

    Date: 03/03/08     Keywords: xml

    I know this is a rather dumb question, but basically I have a main page with a gridview bound to an XML source, and I want you to click on a link that each item has, and when you do that it directs you to a "Details" page (ie you click on a movie title and it directs you to a page that has more info on that movie, with the info being generated from the XML file based on the ID that is sent from the previous page.)

    I know how to do this in .Net 1.1, which involved making a separate class and putting the XML info in that, but I imagine there HAS to be an easier way within the 2.0 framework, considering the implementation of Gridview and Detailsview. When I try and have the info binded on the details page, all it does is show the details of the first id, regardless of what id value is passed. I can post the XML file if necessary, but its a rather basic XML setup. I've tried using the XmlDataSource as opposed to manually coding everything myself. I was trained in developing everything by code as opposed to controls that generate it, but I figure if the control can do it more easily and quickly, it isn't a bad idea to learn that method.

    So I guess the question is how do you efficiently create a "details" page when trying to pass a value from a previous page and then grab that info from a binded XML file?

    ;p

    TIA

    Source: https://aspdotnet.livejournal.com/96558.html

  9. CollapsePanelExtender and FireFox

    Date: 02/29/08     Keywords: no keywords

    I have page that contains a Date Control, update panel, and then a regular panel that is opened or closed via a "CollapsePanelExtender"

    When I first load the page, everything works fine, the Panel is open all the way and you can see all of the data. When you change the date, it triggers the UpdatePanel and the panel reloads the data based on the new date. The problem is that the Panel is now "clipped". If I Collapse and then Expand the Panel, it opens to full size and shows everything.

    This only occurs in FireFox.

    Any ideas?

    Source: http://community.livejournal.com/aspdotnet/96389.html

  10. CollapsePanelExtender and FireFox

    Date: 02/29/08     Keywords: no keywords

    I have page that contains a Date Control, update panel, and then a regular panel that is opened or closed via a "CollapsePanelExtender"

    When I first load the page, everything works fine, the Panel is open all the way and you can see all of the data. When you change the date, it triggers the UpdatePanel and the panel reloads the data based on the new date. The problem is that the Panel is now "clipped". If I Collapse and then Expand the Panel, it opens to full size and shows everything.

    This only occurs in FireFox.

    Any ideas?

    Source: http://aspdotnet.livejournal.com/96389.html

  11. CollapsePanelExtender and FireFox

    Date: 02/29/08     Keywords: no keywords

    I have page that contains a Date Control, update panel, and then a regular panel that is opened or closed via a "CollapsePanelExtender"

    When I first load the page, everything works fine, the Panel is open all the way and you can see all of the data. When you change the date, it triggers the UpdatePanel and the panel reloads the data based on the new date. The problem is that the Panel is now "clipped". If I Collapse and then Expand the Panel, it opens to full size and shows everything.

    This only occurs in FireFox.

    Any ideas?

    Source: https://aspdotnet.livejournal.com/96389.html

  12. Reading Page Content of remote web page

    Date: 02/15/08     Keywords: asp, web

    Hi there,
    For my project I need to read an external web page and then parse the content.
    What I have found on the internet is for asp:
    <%
    url = "http://www.espn.com/main.html"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, false
    xmlhttp.send ""
    Response.write xmlhttp.responseText
    set xmlhttp = nothing
    %>
    And I need the same for ASP.NET 2.0
    Can anybody show me how to do that?
    Thank you.

    Source: http://community.livejournal.com/aspdotnet/96005.html

  13. Reading Page Content of remote web page

    Date: 02/15/08     Keywords: asp, web

    Hi there,
    For my project I need to read an external web page and then parse the content.
    What I have found on the internet is for asp:
    <%
    url = "http://www.espn.com/main.html"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, false
    xmlhttp.send ""
    Response.write xmlhttp.responseText
    set xmlhttp = nothing
    %>
    And I need the same for ASP.NET 2.0
    Can anybody show me how to do that?
    Thank you.

    Source: http://aspdotnet.livejournal.com/96005.html

  14. Reading Page Content of remote web page

    Date: 02/15/08     Keywords: asp, web

    Hi there,
    For my project I need to read an external web page and then parse the content.
    What I have found on the internet is for asp:
    <%
    url = "http://www.espn.com/main.html"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, false
    xmlhttp.send ""
    Response.write xmlhttp.responseText
    set xmlhttp = nothing
    %>
    And I need the same for ASP.NET 2.0
    Can anybody show me how to do that?
    Thank you.

    Source: https://aspdotnet.livejournal.com/96005.html

  15. Dynamic change text on Select button in GridView

    Date: 02/11/08     Keywords: web

    I am trying to set the Text of a select button in a GridView with no success.
    Here is my code. I get the following error - 'System.Web.UI.WebControls.GridViewRowEventArgs' does not contain a definition for 'Item'
    What I want to do is set the Text of each Select button to = drv["Subject"].ToString()

    protected void MessagesGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
    e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.MessagesGridView, "Select$" + e.Row.RowIndex);
    LinkButton SelectButton = (LinkButton)e.Row.Cells[7].Controls[0];

    DataRowView drv = (DataRowView)e.Item.DataItem;
    SelectButton.Text = drv["Subject"].ToString();
    }
    }

    Does anyone know how I do this ?

    Source: http://community.livejournal.com/aspdotnet/95815.html

  16. Dynamic change text on Select button in GridView

    Date: 02/11/08     Keywords: web

    I am trying to set the Text of a select button in a GridView with no success.
    Here is my code. I get the following error - 'System.Web.UI.WebControls.GridViewRowEventArgs' does not contain a definition for 'Item'
    What I want to do is set the Text of each Select button to = drv["Subject"].ToString()

    protected void MessagesGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
    e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.MessagesGridView, "Select$" + e.Row.RowIndex);
    LinkButton SelectButton = (LinkButton)e.Row.Cells[7].Controls[0];

    DataRowView drv = (DataRowView)e.Item.DataItem;
    SelectButton.Text = drv["Subject"].ToString();
    }
    }

    Does anyone know how I do this ?

    Source: http://aspdotnet.livejournal.com/95815.html

  17. Dynamic change text on Select button in GridView

    Date: 02/11/08     Keywords: web

    I am trying to set the Text of a select button in a GridView with no success.
    Here is my code. I get the following error - 'System.Web.UI.WebControls.GridViewRowEventArgs' does not contain a definition for 'Item'
    What I want to do is set the Text of each Select button to = drv["Subject"].ToString()

    protected void MessagesGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
    e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.MessagesGridView, "Select$" + e.Row.RowIndex);
    LinkButton SelectButton = (LinkButton)e.Row.Cells[7].Controls[0];

    DataRowView drv = (DataRowView)e.Item.DataItem;
    SelectButton.Text = drv["Subject"].ToString();
    }
    }

    Does anyone know how I do this ?

    Source: https://aspdotnet.livejournal.com/95815.html

  18. select checkbox or select row

    Date: 02/08/08     Keywords: database, yahoo

    I need a grid where I can select a checkbox or select everything else in the row.

    So I could select the checkbox and hit the delete button and the row is deleted in the database. Or I could click on one of the other columns in the row and the item is opened in another page. (Kinda the way Yahoo Mail works)

    Does anyone know if that is possible ? (And have you seen an example if it is ?)

    Source: http://community.livejournal.com/aspdotnet/95513.html

  19. select checkbox or select row

    Date: 02/08/08     Keywords: database, yahoo

    I need a grid where I can select a checkbox or select everything else in the row.

    So I could select the checkbox and hit the delete button and the row is deleted in the database. Or I could click on one of the other columns in the row and the item is opened in another page. (Kinda the way Yahoo Mail works)

    Does anyone know if that is possible ? (And have you seen an example if it is ?)

    Source: http://aspdotnet.livejournal.com/95513.html

  20. select checkbox or select row

    Date: 02/08/08     Keywords: database, yahoo

    I need a grid where I can select a checkbox or select everything else in the row.

    So I could select the checkbox and hit the delete button and the row is deleted in the database. Or I could click on one of the other columns in the row and the item is opened in another page. (Kinda the way Yahoo Mail works)

    Does anyone know if that is possible ? (And have you seen an example if it is ?)

    Source: https://aspdotnet.livejournal.com/95513.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home