Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to pass parameters and values with function name in url? Pin
Not Active4-Jan-11 2:34
mentorNot Active4-Jan-11 2:34 
GeneralRe: how to pass parameters and values with function name in url? Pin
roebuck-code4-Jan-11 3:16
roebuck-code4-Jan-11 3:16 
GeneralRe: how to pass parameters and values with function name in url? [modified] Pin
Manfred Rudolf Bihy4-Jan-11 4:21
professionalManfred Rudolf Bihy4-Jan-11 4:21 
GeneralRe: how to pass parameters and values with function name in url? Pin
roebuck-code4-Jan-11 19:57
roebuck-code4-Jan-11 19:57 
GeneralRe: how to pass parameters and values with function name in url? Pin
Manfred Rudolf Bihy5-Jan-11 1:49
professionalManfred Rudolf Bihy5-Jan-11 1:49 
GeneralRe: how to pass parameters and values with function name in url? Pin
roebuck-code5-Jan-11 2:49
roebuck-code5-Jan-11 2:49 
GeneralRe: how to pass parameters and values with function name in url? Pin
Manfred Rudolf Bihy5-Jan-11 3:05
professionalManfred Rudolf Bihy5-Jan-11 3:05 
GeneralRe: how to pass parameters and values with function name in url? [modified] Pin
roebuck-code5-Jan-11 21:55
roebuck-code5-Jan-11 21:55 
i have a page in a web service:'default.asmx'

in default.cs(in App_Code) is a web method:

[WebMethod]
    public string zakhire(string s,string d)
    {
        
        string sql = " insert into FX_Forecast2 (Symbol,A) values( '"+s+"','"+d+"')";
        
        OpenDb();
       
        cmd = new SqlCommand(sql, con);
        cmd.ExecuteNonQuery();
        
        con.Close();
        return sql;
    }


type of fields 'Symbol,A' are nvarchar..

now without knowing about a software that send data to webservice,i run this page in visual studio that test this page.

after running this page and executing the method with my arrival data and press 'invoke' button,a page open and in it's url just is method name:
http://localhost:2516/WebS-t/Default.asmx/zakhire


but i need to parameters and values too.like this:

http://localhost:2516/WebS-t/Default.asmx/zakhire?fparam=s&sparam=d


i had seen in a book that has been written in vb language in visual studio that after executing the method and opening a page,arrival parameters and values been in url with method name.

i hope that explain my need clearly.

totally i have a script in mql language in another software that run this url:
http://aaaa.com/Default.asmx/methodname?S="+S+"&d="+T;


i want to insert this parameters('s' and 'd')in database.
so i build a webservice and wrote in .asmx page that code.
do i think right?

modified on Saturday, January 8, 2011 7:46 AM

AnswerRe: how to pass parameters and values with function name in url? Pin
roebuck-code12-Feb-11 20:13
roebuck-code12-Feb-11 20:13 
QuestionFail to read simple string from the registry ( code attached ) Pin
Yanshof3-Jan-11 21:46
Yanshof3-Jan-11 21:46 
AnswerRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:00
JF20153-Jan-11 22:00 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
Yanshof3-Jan-11 22:15
Yanshof3-Jan-11 22:15 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:18
JF20153-Jan-11 22:18 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
Yanshof3-Jan-11 22:32
Yanshof3-Jan-11 22:32 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:46
JF20153-Jan-11 22:46 
GeneralRe: Fail to read simple string from the registry ( code attached ) Pin
JF20153-Jan-11 22:25
JF20153-Jan-11 22:25 
AnswerRe: Fail to read simple string from the registry ( code attached ) Pin
Luc Pattyn4-Jan-11 1:43
sitebuilderLuc Pattyn4-Jan-11 1:43 
QuestionAOP logging Pin
ATM@CodeProject3-Jan-11 19:08
ATM@CodeProject3-Jan-11 19:08 
QuestionError while Extracting Files in zip folder Pin
arun_pk3-Jan-11 18:34
arun_pk3-Jan-11 18:34 
AnswerRe: Error while Extracting Files in zip folder Pin
OriginalGriff3-Jan-11 22:40
mveOriginalGriff3-Jan-11 22:40 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk3-Jan-11 23:34
arun_pk3-Jan-11 23:34 
GeneralRe: Error while Extracting Files in zip folder Pin
OriginalGriff3-Jan-11 23:38
mveOriginalGriff3-Jan-11 23:38 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk3-Jan-11 23:54
arun_pk3-Jan-11 23:54 
GeneralRe: Error while Extracting Files in zip folder Pin
OriginalGriff4-Jan-11 2:06
mveOriginalGriff4-Jan-11 2:06 
GeneralRe: Error while Extracting Files in zip folder Pin
arun_pk4-Jan-11 17:38
arun_pk4-Jan-11 17:38 

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.