Click here to Skip to main content
15,890,717 members

Bino B - Professional Profile



Summary

    Blog RSS
370
Authority
34
Debator
6
Enquirer
7
Organiser
304
Participant
0
Author
0
Editor
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralTesting a RegEx Pin
Bino B19-Nov-07 15:16
Bino B19-Nov-07 15:16 
GeneralRe: Testing a RegEx Pin
nurundini7-Dec-09 13:37
nurundini7-Dec-09 13:37 
GeneralContext Menu Pin
Bino B13-Nov-07 21:20
Bino B13-Nov-07 21:20 
GeneralHow to set '-' for a null datetime column Pin
Bino B12-Nov-07 17:07
Bino B12-Nov-07 17:07 
GeneralTo open up a file - C# Pin
Bino B16-Oct-07 22:37
Bino B16-Oct-07 22:37 
GeneralWriting to a Word Document in C# Pin
Bino B11-Oct-07 18:04
Bino B11-Oct-07 18:04 
GeneralSave and Retrieve Image in SQL Server Pin
Bino B4-Oct-07 23:41
Bino B4-Oct-07 23:41 
GeneralWorking with Checkbox in Javascript Pin
Bino B11-Sep-07 20:10
Bino B11-Sep-07 20:10 
GeneralWorking with Gridview Pin
Bino B10-Sep-07 21:46
Bino B10-Sep-07 21:46 
GeneralWebservice [modified] Pin
Bino B30-Aug-07 5:24
Bino B30-Aug-07 5:24 
The following is a sample webservice that will erturn the sum of two numbers. Of late we'll use it in another application facilitating the given Webservice method to be called by the application.

Step 1.
Open devenv->New Website-->ASP.Net Webservice.

Step 2.
This will create a sample Webservice page with a 'Helloworld' sample method created by default.

Lets remove this Helloworld Web method and put a sample method for our use.

[WebMethod]
public int TestSum(int a,int b) {
return (a + b);
}

The above method is just a sample for making it easy to understand. Anycase this is going to be too complicated if someone is using a Webservice,since no application will require to consume a webservice just for summing two numbers.

No lets build this Webservice. Building the Webservice will open up a window with the given method name. Clicking on that will redirect to a page where our input parameters are displayed as text inputs and an 'Invoke' button. Here by inputting the parameters and then clicking on the Invoke button will return the result. Please keep it in mind that this is just a sample interface provided by the Webservice for testing our method and wont even work if the return value is of some other types.

Now the next step is to consume this Webservice. For that what we need to do is create an application and add our Webservice location as Web Reference. Let me detail on this too.
Once we create an application, when we right click on the project in the Solution Explorer, there will be an 'Add Web Reference'. Clicking this will open up a window with a text input for URL. Now what we need to do is copy our Webservice location, ie while we run our Webservice, there will be an address in our address bar. Copy this till the '.asmx' (for example : http://localhost:3003/WebServiceTest/Service.asmx). Paste this in the URL field and click on Go. This will open up our Webservice in the sample browser on the same window. Now what we need to do is, provide a Web reference name(say in this case TestWS,since we need this in the coming steps). This can be any name and click on the 'Add Reference' button. This will create a key in the Web.config file with the given WebService URL.

The next step is to call the defined methods in our webservice from our application. For this first we need to create an object of the given class in the webservice. The object creation step will be like the following.

TestWS.Service test1 = new TestWS.Service();
Response.Write(test1.TestSum(25, 15));

in the above lines of code TestWS is the refernce name we have given for our WebService and Service is the class name inside the Webservice(Service will be the default class name).
For testing purpose we can put these line of code in a button click or something.
Thats it done. Make sure that the Webservice is running if its running thru an ASP.Net Development Server or if thru IIS there is no need to keep the Webservice running.


Regards
Bino

GeneralReading a directory of XML Files and getting the value of a given node Pin
Bino B22-Aug-07 7:21
Bino B22-Aug-07 7:21 
GeneralParsing XML in C# Pin
Bino B22-Aug-07 4:21
Bino B22-Aug-07 4:21 
GeneralUsing the OUTPUT method in SQL Server 2005 Pin
Bino B9-Aug-07 3:19
Bino B9-Aug-07 3:19 
GeneralHotkeys in ASP.Net Pin
Bino B9-Aug-07 2:57
Bino B9-Aug-07 2:57 
GeneralUsing two DBs...using OpenRowset Pin
Bino B9-Aug-07 2:48
Bino B9-Aug-07 2:48 
GeneralAdding new Start Menu>Run shortcuts thru Registry Pin
Bino B3-Aug-07 7:20
Bino B3-Aug-07 7:20 
GeneralWorking with Webparts-ASP.Net 2.0. [modified] Pin
Bino B2-Aug-07 2:30
Bino B2-Aug-07 2:30 
GeneralHandling Links in XSL Pin
Bino B10-Jul-07 3:52
Bino B10-Jul-07 3:52 
GeneralWorking with Ajax Extensions in ASP.Net Pin
Bino B10-Jul-07 3:15
Bino B10-Jul-07 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.