Page 1 of 2 12 LastLast
Results 1 to 25 of 31

Thread: C#

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27

    C#

    web . System.Text.RegularExpressions .

    , , , . .



    1. ( string b=null; ) , (string b= c; ). , :
    A local variable named 'b' cannot be declared in this scope because it would give a different meaning to 'b', which is already used in a 'parent or current' scope to denote something else.


    2. "Match m" (m = Regex.Match) , "m" , , , ? ( , )
    Cannot implicitly convert type 'System.Text.RegularExpressions.Match' to 'string'


    3. , , "http://" "string a", , ?
    string site1 = "http://"+c;
    4. 5 "int" ( ), ( if i>1000).
    RPs</strong></td>
    <td class="p11_666699"><strong>1,500
    5. - , 6 web , . + (Enter "OK" ),

  2. #2
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    , ,
    , 5 . C# ( ). , , .
    - :
    1. C#, , ..
    2. , .

  3. #3
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    , C, BorlandC . , . . , , -.

    , .

  4. #4
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    icaci 1.



    string b = null;
    // other code here...
    string b = c;



    string b = null;
    // other code here...
    b = c;

    , b 'string b = c;', .

  5. #5
    Executor Lan's Avatar
    Join Date: Nov:2005
    Location:
    Posts: 3,304
    :
    string number = text.SubString(text.Length - 5).Replace(",", string.Empty);
    int digit = int.Parse(number);

    I mourn thee by dusk | I mourn thee by dawn
    Crave for thy gloss | to seek the silent glades beyond

  6. #6
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    .

    , , BorlandC
    .
    "'System.Text.RegularExpressions. Match" "string"
    string s = m.ToString();
    , , , . , e .
    string sub = s.Substring(13, 2);
    int i = int.Parse(sub);
    , , -. , .

    Edit: Lan, . .
    Last edited by DreamInvader; 28th January 2009 at 03:33.

  7. #7
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    , 1 2.

    1. b, - . b b. , . C, C#.

    2. m System.Text.RegularExpressions.Match, . property Groups, , .

    3. , . string.Format().

    4. int.Parse(). string .

    5. WebClient.
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  8. #8
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    Win32 API ?
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  9. #9
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    75hz C. , . a Web Forma
    Console Windows Application . , .

  10. #10
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , C Win32 API. , C, . Win32 API, . , , - .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  11. #11
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    . , . .

  12. #12
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    SDK. . .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  13. #13
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    , :
    ":/Temp/httpauth/vcproj cannot be opened because its project type (.vcproj) is not supported by this version of the application. To open it, please use a version that supports this type of project."

  14. #14
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ?
    .cpp , .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  15. #15
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    CPP- C
    Microsoft Visual C# 2008 Express Edition with SP1 - ENU , , C#. , , , .

    , Google, - ?

  16. #16
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    Visual Studio 2005 , . . , , :
    httpauth.exe - ____ _
    :
    Code:
    httpauth.exe - www.hardwarebg.com /forum
    ( , !). , , , .
    - HTTP , , . .
    #, , - # , .

    . - C Win32 API .

    , C#, :
    http://msdn.microsoft.com/en-us/libr...henticate.aspx
    Last edited by Bombera; 28th January 2009 at 04:48.
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  17. #17
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27

    , , , . :
    https://shop.playrohan.com/Exchange/...?SaleSep=27823
    C# 7 , . WebRequest WebClient.
    Last edited by DreamInvader; 29th January 2009 at 16:47.

  18. #18
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    - WebRequest # ,
    , , . , , , . - POST HTTP , , . , - , .
    , , , , , , .
    , , .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  19. #19
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    a , authentication credentials POST. . POST . http://developer.yahoo.com/dotnet/howto-rest_cs.html

  20. #20
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    . , . , , , .
    , , Web Developer Toolbar-a, . , , .
    , !
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  21. #21
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    Mozilla , , <inputname="userpwd">.
    , , . , , cookies . Username: hardwarebg, Password: hardware.

    , , .

  22. #22
    The Lord of the Death altoas's Avatar
    Join Date: Jun:2006
    Location: varna
    Posts: 315
    , perl ..

  23. #23
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ?
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  24. #24
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    WebDeveloper session cookies, , . :
    System.Diagnostics.Process.Start ("firefox.exe", "url");
    T -, delay , , tab popup- firefox.
    Bombera POST , 6 . delay, .

    , Console Application authentication + POST -, , OSK . .

    - :
    https://shop.playrohan.com/Exchange/...?SaleSep=27823
    ( , username: hardwarebg , password: hardware)
    Last edited by BobyTT; 31st January 2009 at 09:54.

  25. #25
    Registered User
    Join Date: Jan:2009
    Location: Varna
    Posts: 27
    , .

    "Fiddler" HTTPS , . ( ) .

    ( Fiddler).
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("URL ");
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    .
    String cookie = response.GetResponseHeader("Set-Cookie");
    POST ( Fiddler) .
    request = (HttpWebRequest)WebRequest.Create("URL ");
    request.Headers.Add (HttpRequestHeader.Cookie, cookie);
    POST .
    String postString = "";
    System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
    request.Method = "POST";
    byte[] requestData = encoding.GetBytes(postString);
    request.ContentType = "application/x-www-form-urlencoded";
    request.ContentLength = requestData.Length;

    Stream requestStream = request.GetRequestStream();
    requestStream.Write(requestData, 0, requestData.Length);
    requestStream.Close();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |