Click here to Skip to main content
14,740,165 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex26-Oct-16 16:41
Membersamflex26-Oct-16 16:41 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
jkirkerx27-Oct-16 8:06
professionaljkirkerx27-Oct-16 8:06 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex27-Oct-16 9:12
Membersamflex27-Oct-16 9:12 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
jkirkerx27-Oct-16 12:36
professionaljkirkerx27-Oct-16 12:36 
GeneralRe: How to submit a record and send as an email attachment at once? Pin
samflex27-Oct-16 16:11
Membersamflex27-Oct-16 16:11 
QuestionPOST xml request to an API with feedback asp.net mvc Pin
MacroSss21-Oct-16 1:11
MemberMacroSss21-Oct-16 1:11 
AnswerRe: POST xml request to an API with feedback asp.net mvc Pin
jkirkerx24-Oct-16 10:15
professionaljkirkerx24-Oct-16 10:15 
AnswerRe: POST xml request to an API with feedback asp.net mvc Pin
MacroSss26-Oct-16 2:23
MemberMacroSss26-Oct-16 2:23 
The first problem was solved this way

public async Task<ActionResult> Test()
        {
            var parameters = new List<KeyValuePair<string, string>>
            {
                new KeyValuePair<string, string>("login", ""),
                new KeyValuePair<string, string>("password", ""),
            };

            var data = new FormUrlEncodedContent(parameters);

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://ekinobilet.ru/ekbs/upload.aspx");
            request.Method = "POST";

            byte[] dataArray = await data.ReadAsByteArrayAsync();
            request.ContentLength = dataArray.Length;
            request.ContentType = "application/x-www-form-urlencoded";

            var dataStream = await request.GetRequestStreamAsync();
            dataStream.Write(dataArray, 0, dataArray.Length);
            dataStream.Close();

            var resp = await request.GetResponseAsync();
            dataStream = resp.GetResponseStream();

            Stream receiveStream = resp.GetResponseStream();
            StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
            var responseText = readStream.ReadToEnd();

            StringBuilder output = new StringBuilder();
            XmlReader reader = XmlReader.Create(new StringReader(responseText));
            {
                reader.ReadToFollowing("list");
                reader.MoveToFirstAttribute();
                string count = reader.Value;
                output.AppendLine(count);
                string size = reader.Value;
                output.AppendLine(size);
                string file = reader.Value;
                output.AppendLine(file);
                string name = reader.Value;
                output.AppendLine(name);
            }
            ViewBag.list = output.ToString();

            return View(responseText);

GeneralRe: POST xml request to an API with feedback asp.net mvc Pin
MacroSss26-Oct-16 2:24
MemberMacroSss26-Oct-16 2:24 
QuestionThere is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
amioni20-Oct-16 2:43
Memberamioni20-Oct-16 2:43 
AnswerRe: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
jkirkerx20-Oct-16 9:57
professionaljkirkerx20-Oct-16 9:57 
QuestionHow to save modal popup form into database/data table Pin
Bootzilla3319-Oct-16 11:47
MemberBootzilla3319-Oct-16 11:47 
AnswerRe: How to save modal popup form into database/data table Pin
Sahil Saini @ Software Developer19-Oct-16 20:23
professionalSahil Saini @ Software Developer19-Oct-16 20:23 
Questioni want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 10:00
Membermoj197817-Oct-16 10:00 
AnswerRe: i want fill 2 table with 1 click can I? Pin
Vincent Maverick Durano17-Oct-16 10:07
professionalVincent Maverick Durano17-Oct-16 10:07 
GeneralRe: i want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 10:13
Membermoj197817-Oct-16 10:13 
GeneralRe: i want fill 2 table with 1 click can I? Pin
Vincent Maverick Durano17-Oct-16 10:17
professionalVincent Maverick Durano17-Oct-16 10:17 
GeneralRe: i want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 10:14
Membermoj197817-Oct-16 10:14 
AnswerRe: i want fill 2 table with 1 click can I? Pin
Wendelius17-Oct-16 10:28
mveWendelius17-Oct-16 10:28 
GeneralRe: i want fill 2 table with 1 click can I? Pin
moj197817-Oct-16 11:28
Membermoj197817-Oct-16 11:28 
GeneralRe: i want fill 2 table with 1 click can I? Pin
Wendelius17-Oct-16 18:05
mveWendelius17-Oct-16 18:05 
QuestionPosting back part of a model - instead of using querystrings for filters - MVC. part of the model post back Pin
jkirkerx17-Oct-16 9:38
professionaljkirkerx17-Oct-16 9:38 
AnswerRe: Posting back part of a model - instead of using querystrings for filters - MVC. part of the model post back Pin
jkirkerx17-Oct-16 11:21
professionaljkirkerx17-Oct-16 11:21 
QuestionTracking Pin
sarwajeet singh17-Oct-16 0:42
Membersarwajeet singh17-Oct-16 0:42 
AnswerRe: Tracking Pin
Eddy Vluggen17-Oct-16 2:50
professionalEddy Vluggen17-Oct-16 2:50 

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.