Click here to Skip to main content
15,880,427 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: clicking on a button Pin
Bradml12-Feb-07 12:14
Bradml12-Feb-07 12:14 
GeneralRe: clicking on a button Pin
liorep12-Feb-07 12:37
liorep12-Feb-07 12:37 
GeneralRe: clicking on a button Pin
Bradml12-Feb-07 12:43
Bradml12-Feb-07 12:43 
QuestionDisable selection [modified] Pin
SoftDeveloper10-Feb-07 18:01
SoftDeveloper10-Feb-07 18:01 
AnswerRe: Disable selection Pin
Bradml10-Feb-07 18:31
Bradml10-Feb-07 18:31 
GeneralRe: Disable selection Pin
SoftDeveloper12-Feb-07 1:03
SoftDeveloper12-Feb-07 1:03 
GeneralRe: Disable selection Pin
Bradml12-Feb-07 1:06
Bradml12-Feb-07 1:06 
Questionhow to implement editable table with several fixed columns? Pin
xiao bin bin10-Feb-07 6:55
xiao bin bin10-Feb-07 6:55 
AnswerRe: how to implement editable table with several fixed columns? Pin
Bradml10-Feb-07 12:57
Bradml10-Feb-07 12:57 
GeneralRe: how to implement editable table with several fixed columns? Pin
xiao bin bin10-Feb-07 18:28
xiao bin bin10-Feb-07 18:28 

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.