Click here to Skip to main content
15,867,834 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Saving images to a database Pin
Kschuler12-Feb-07 9:04
Kschuler12-Feb-07 9:04 
QuestionWEB application Pin
Mangorange12-Feb-07 4:43
Mangorange12-Feb-07 4:43 
GeneralCheck for file access [modified] Pin
Rage12-Feb-07 4:39
professionalRage12-Feb-07 4:39 
GeneralRe: Check for file access Pin
Bradml12-Feb-07 12:01
Bradml12-Feb-07 12:01 
GeneralRe: Check for file access Pin
Rage13-Feb-07 6:03
professionalRage13-Feb-07 6:03 
QuestionWeb Services Pin
LCI12-Feb-07 3:57
LCI12-Feb-07 3:57 
AnswerRe: Web Services Pin
Christian Graus13-Feb-07 8:51
protectorChristian Graus13-Feb-07 8:51 
QuestionExample web sites Pin
Jerry Evans12-Feb-07 3:50
Jerry Evans12-Feb-07 3:50 
AnswerRe: Example web sites Pin
Bradml12-Feb-07 12:01
Bradml12-Feb-07 12:01 
AnswerRe: Example web sites Pin
MatrixCoder12-Feb-07 12:23
MatrixCoder12-Feb-07 12:23 
QuestionDrag/drop Pin
Jerry Evans12-Feb-07 3:49
Jerry Evans12-Feb-07 3:49 
AnswerRe: Drag/drop Pin
Bradml12-Feb-07 12:02
Bradml12-Feb-07 12:02 
QuestionRotbots.txt Pin
militiaware12-Feb-07 3:17
militiaware12-Feb-07 3:17 
QuestionRefresh and unload ? Pin
ALAQUNAIBI12-Feb-07 2:23
ALAQUNAIBI12-Feb-07 2:23 
Questionconnection with Microsoft Active Directory.. Pin
hiral_shah11-Feb-07 21:25
hiral_shah11-Feb-07 21:25 
AnswerRe: connection with Microsoft Active Directory.. Pin
hiral_shah9-Mar-07 20:13
hiral_shah9-Mar-07 20:13 
QuestionWeb-service enforced authentication Pin
alabax11-Feb-07 20:45
alabax11-Feb-07 20:45 
AnswerHttp basic authentication for web-services Pin
alabax12-Feb-07 2:19
alabax12-Feb-07 2:19 
To use the http authentication one has to override the GetWebRequest function and append http authorization header as follows:
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Web.Services.Protocols;<br />
using System.Net;<br />
<br />
namespace WindowsApplication1.WebServiceAPI<br />
{<br />
    public class WebServiceAPIAuth : WebServiceAPI<br />
    {<br />
        public string UserName;<br />
        public string Password;<br />
<br />
        private string S2Base(string s)<br />
        {<br />
            byte [] ba;<br />
            ba=Encoding.ASCII.GetBytes(s);<br />
            return Convert.ToBase64String(ba);<br />
        }<br />
<br />
        protected override System.Net.WebRequest GetWebRequest(Uri uri)<br />
        {<br />
            CredentialCache cc = new CredentialCache();<br />
            WebRequest wr = base.GetWebRequest(uri);<br />
            wr.Headers.Add(HttpRequestHeader.Authorization, "Basic "+S2Base(UserName+':'+Password));<br />
            return wr;<br />
        }<br />
    }<br />
}<br />

Questionclicking on a button Pin
liorep11-Feb-07 7:45
liorep11-Feb-07 7:45 
AnswerRe: clicking on a button Pin
Bradml11-Feb-07 19:31
Bradml11-Feb-07 19:31 
GeneralRe: clicking on a button Pin
liorep11-Feb-07 19:48
liorep11-Feb-07 19:48 
GeneralRe: clicking on a button Pin
Bradml11-Feb-07 19:53
Bradml11-Feb-07 19:53 
GeneralRe: clicking on a button Pin
liorep12-Feb-07 10:01
liorep12-Feb-07 10:01 
GeneralRe: clicking on a button Pin
Bradml12-Feb-07 11:17
Bradml12-Feb-07 11:17 
GeneralRe: clicking on a button Pin
liorep12-Feb-07 12:12
liorep12-Feb-07 12:12 

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.