Click here to Skip to main content
15,846,860 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAngular service error http 400 using .Net core api to accept json, escaped quotes crashing api Pin
jkirkerx29-Jun-20 13:48
professionaljkirkerx29-Jun-20 13:48 
AnswerRe: Angular service error http 400 using .Net core api to accept json, escaped quotes crashing api Pin
Richard Deeming30-Jun-20 0:42
mveRichard Deeming30-Jun-20 0:42 
GeneralRe: Angular service error http 400 using .Net core api to accept json, escaped quotes crashing api Pin
jkirkerx30-Jun-20 7:06
professionaljkirkerx30-Jun-20 7:06 
Questionerror server Pin
Member 1265427722-Jun-20 3:37
Member 1265427722-Jun-20 3:37 
AnswerRe: error server Pin
ZurdoDev22-Jun-20 3:44
professionalZurdoDev22-Jun-20 3:44 
AnswerRe: error server Pin
Richard Deeming22-Jun-20 6:19
mveRichard Deeming22-Jun-20 6:19 
GeneralRe: error server Pin
Member 1265427723-Jun-20 0:37
Member 1265427723-Jun-20 0:37 
AnswerRe: error server Pin
Member 1265427723-Jun-20 0:41
Member 1265427723-Jun-20 0:41 
this my code:
public DataSet GetLs(string que)
       {
           DataSet ds1 = new DataSet();
           try
           {
               cn.Open();
               cm.Connection = cn;
               cm.CommandText = que;
               cm.CommandType = CommandType.Text;
               OdbcDataAdapter da1 = new OdbcDataAdapter(cm);
               da1.Fill(ds1);
               return ds1;

           }
           catch (Exception e)
           {

               throw e;
           }
           finally
           {
               cn.Close();
                       }

       }


my function
public JsonResult LstDepartement()
     {
         DataSet ds2 =Dt.GetLsts ("select * from Departement");
         List<Departement> lstDepart = new List<Departement>();
         foreach (DataRow dr1 in ds2.Tables[0].Rows)
         {
             lstDepart.Add(new Departement
             {
                 ID = dr1["Id_Depart"].ToString(),
                 Désignation = dr1["Departement"].ToString(),
             });
         }
         return Json(lstDepart, JsonRequestBehavior.AllowGet);
     }

AnswerRe: error server Pin
OriginalGriff23-Jun-20 0:51
mveOriginalGriff23-Jun-20 0:51 
GeneralRe: error server Pin
Member 1265427723-Jun-20 2:34
Member 1265427723-Jun-20 2:34 
AnswerRe: error server Pin
OriginalGriff23-Jun-20 0:43
mveOriginalGriff23-Jun-20 0:43 
QuestionAnother NetCore question Pin
pkfox31-May-20 5:58
professionalpkfox31-May-20 5:58 
AnswerRe: Another NetCore question Pin
Mycroft Holmes31-May-20 13:22
professionalMycroft Holmes31-May-20 13:22 
GeneralRe: Another NetCore question Pin
pkfox1-Jun-20 2:58
professionalpkfox1-Jun-20 2:58 
GeneralRe: Another NetCore question Pin
Mycroft Holmes1-Jun-20 13:44
professionalMycroft Holmes1-Jun-20 13:44 
AnswerRe: Another NetCore question Pin
Richard Deeming1-Jun-20 4:31
mveRichard Deeming1-Jun-20 4:31 
GeneralRe: Another NetCore question Pin
pkfox1-Jun-20 5:08
professionalpkfox1-Jun-20 5:08 
AnswerRe: Another NetCore question Pin
jkirkerx1-Jun-20 14:47
professionaljkirkerx1-Jun-20 14:47 
GeneralRe: Another NetCore question Pin
pkfox4-Jun-20 11:54
professionalpkfox4-Jun-20 11:54 
QuestionCheckboxList Styling Problem Pin
feelblue8730-May-20 7:14
feelblue8730-May-20 7:14 
QuestionNet Core API question Pin
pkfox22-May-20 6:28
professionalpkfox22-May-20 6:28 
AnswerRe: Net Core API question Pin
Richard Deeming22-May-20 6:56
mveRichard Deeming22-May-20 6:56 
GeneralRe: Net Core API question Pin
pkfox22-May-20 8:05
professionalpkfox22-May-20 8:05 
QuestionHow do I multiple group in Active Directory ? Pin
ugurarslanm19-May-20 5:58
ugurarslanm19-May-20 5:58 
QuestionHow to invoke POST method by adding [FromBody] attribute in Postman tool Pin
meeram3918-May-20 0:33
professionalmeeram3918-May-20 0:33 

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.