|
The protocols are layered on top of each other. A bit simplified it works like this:
SOAP - handles messages in XML form, using HTTP request and responses
HTTP - handles requests and responses, using TCP streams
TCP - handles transport of data streams, using IP packages
IP - handles tre transport of packages
...and then some lower level networking
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Iam learning Web sevices.So idon't know these simple things.
I created a web service.And iam using Visual C# Express Edition.In the Client application I added the web reference to the service i created.It generates the Reference.map,service.disco,service.wsdl.
When we click on ADD WEB REFERENCE button one proxy class is generated.I think in that proxy class we have namespace and class name and methods .Using that namespace and classname we call out web service in the client.
But in C# Express Edition How to see the proxy class contents.
Please help me.
Thanks in advance.
|
|
|
|
|
If the client is not a web site, you can see the proxy class (Reference.cs) in the same folder as other files mentioned in your post. Otherwise, you can have a look at the temporary folder of the web site to see it.
|
|
|
|
|
|
I am working on creating a DAL and BLL for my app. DAL and BLL works great for Delete and Select statements but when it comes to update the data using GridView (which is the only control I've tried) I am not having any success. This is the error msg I am getting:
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'UpdateForum' that has parameters: ForumID, forumName, forumDescription, Name, Description.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'UpdateForum' that has parameters: ForumID, forumName, forumDescription, Name, Description.
The problem is my method does not have parameters named Name & Description and I can't figure out why the GridView is passing Name and Description as parameters!
This is what my BLL method for update looks like:
[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)] public bool UpdateForum(int forumID, string forumName, string forumDescription) {
ForumDataSet.ForumsDataTable forums = Adapter.GetForumsByForumID(forumID); if (forums.Count == 0) { // no matching record found; hence return false return false; }
ForumDataSet.ForumsRow forum = forums[0]; forum.Name = forumName; forum.Description = forumDescription; forum.ForumID = forumID; // Update the product record int rowsAffected = Adapter.Update(forum); // Return true if precisely one row was updated, otherwise false return rowsAffected == 1;
}
My parameter list in DataSource looks like this:
<UpdateParameters> <asp:Parameter Name="forumID" Type="Int32" /> <asp:Parameter Name="forumName" Type="String" /> <asp:Parameter Name="forumDescription" Type="String" /> </UpdateParameters>
And my GridView looks like this:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ForumID" DataSourceID="ObjectDataSource1">
<Columns> <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" /> <asp:BoundField DataField="ForumID" HeaderText="ForumID" InsertVisible="False" ReadOnly="false" SortExpression="ForumID" /> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" /> </Columns>
</asp:GridView>
And my Data Set .xsd:
<UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="False"> <CommandText>UPDATE [Forums] SET [Name] = @Name, [Description] = @Description WHERE (([ForumID] = @Original_ForumID))</CommandText> <Parameters> <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ForumID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ForumID" SourceColumnNullMapping="False" SourceVersion="Original"> </Parameter> </Parameters> </DbCommand> </UpdateCommand>
Thanks in advance.
|
|
|
|
|
Hi there. The ObjectDataSource automatically creates the parameters for the bound fields defined in the GridView control, so you no need to specify the parameters in the UpdateParameters, and also make sure the names of the update method's parameters are similar to what specified in the DataField property.
|
|
|
|
|
in the dataset right-click the main table adapter (it should be called fill/get data()) and choose configure. Hit Advanced Options and uncheck Refresh the data table and then continue with the wizard. you will have to refresh both the objectdatasource and the gridview.
|
|
|
|
|
In defining the attributes in my SQL data base in my .ASP environment I have defined an attribute as type 'bit". I thought this would allow one to only be able to enter "1" for "yes" or 0 for "no' however, when I try enter "1" it gives me na error message: "String not recognized as boolean"! WTF!?! Grrrrrrh
Every religion's trina tell us that every other religion's going down to hell! -- Rory Lewis 1999
|
|
|
|
|
You need to convert the string to a Boolean. Please post some code so that we can help you resolve the issue.
Edit: BTW, I'm guessing that you probably need to do something like this:
<whatever your parameter is>.Value = (sBit == "1" ? true : false);
-- modified at 14:00 Thursday 24th August, 2006
|
|
|
|
|
Thank you Jon
Every religion's trina tell us that every other religion's going down to hell! -- Rory Lewis 1999
|
|
|
|
|
hi,
i want to build a web page it should contain one HOME,Help,Contacts like this CODEPROJECT page.On click of each link it should go to correcponding page And visited page link should be underlined.
kamalnath
|
|
|
|
|
|
I have an edit form, which populates values into textboxes in the load event..
These textboxes are allowed for editing, but once the user edits and presses confirm the load event of the form runs again an the original values are populated and updated resulting in the original values bein kept.
How do i fix this?
thank you
Nothing lasts but nothing is lost
|
|
|
|
|
if(!ispostback)
{
//load form
}
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
thanks, im using VB2005 so it would be...
if not ispostback then
???
end if
i dont understand what must go in the if statement and where the if statement should go?
thank you
Nothing lasts but nothing is lost
|
|
|
|
|
ok its fine i got it, its working
Thanks
Nothing lasts but nothing is lost
|
|
|
|
|
my datagrid cannot show the footertext, when i put the code into HTML
<asp:boundcolumn .........footertext="getID()">
code above not work ! Actually i want to get the id from textbox and show into the footer, but it not work !
anybody can help me !?
Best regards,
Chee ken
|
|
|
|
|
wat exactly do u mean by footertext?
an wat exactly are u displayin in the datagrid? Because maybe there is a better way to display your information....
Nothing lasts but nothing is lost
|
|
|
|
|
when i put at HTML there
asp:BoundColumn....................Footertext= getID()
actually i want to pass the ID from the textbox to display in footer
i have this function
Function getID()
Return txtID.text
End Function
but the footer not show my ID
Best regards,
Chee ken
|
|
|
|
|
Try it(check the footer and put the code) in Onitemdatabound event.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I want to learn how to use Javascript in ASP.NET.Please specify me which Book is good for it.
Thanks in advance.
|
|
|
|
|
JavaScript Bible by Danny Goodman.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Hi,
I craeted a simple web service.In c# application(Client for web service) i click on ADD Web Reference->Web Services On Local Machine.
It displays the list of web services from my system.I selected one from those web services.and click on GO.Now iam getting the parser error.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'Service'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind=@"C:\Inetpub\wwwroot\wscr01\calc\App_Code\Service.cs" Class="Service" %>
Why iam getting this error.Please help me.And please provide me the links for learning Web services.
Thanks in advance.
|
|
|
|
|
hi,
iam having an application with 6 text boxes and 2 buttons.on click of one butoon 1st need to desable first 3 text boxes .on click of one butoon 2nd need to desable first 3 text boxes using Java script.
kamalnath
|
|
|
|
|
As far as I understand you need to use code behind for first button click
and JavaScript for second button click. If this true
Your first button (ButtonName1) code behind will look something like this.
TextBox1.Enabled = False
TextBox2.Enabled = False
TextBox3.Enabled = False
For JavaScript you can add onclick attirbute to your second button at load time like this.
ButtonName2.Attributes.Add("onclick", "HideTextBoxes()")
The HideTextBoxes function must be at the bottom of you page (after controls are loaded).
function HideTextBoxes(){
document.getElementById("TextBox4").setAttribute("disabled", true)
document.getElementById("TextBox5").setAttribute("disabled", true)
document.getElementById("TextBox6").setAttribute("disabled", true)
}
|
|
|
|