English 中文(简体)
在ASP.net MVC中加入Ajax
原标题:Insert Into using Ajax in ASP.net MVC [closed]

I m woondring how to insert data into my DataBase using Ajax in ASP.net MVC. Exactly i want when user click on Add new item, a Popup is shown where user wil put some data And a Ok Onclick This will add the iserted Data and close this popup or show error Message. I m using Data entity Framework. And sorry for this Question but i m biginner at ASP.net MVc and Ajax so Please any help or Tuto link that will be nice :)

最佳回答

You might want to have a look at asp.net webapi which is built into asp.net MVC 4.

你们无需使用,但是,这是阿贾西语的 st。 然而,基本想法是你GET/POST(在酒吧使用象牙或植被)采取行动(主要是使用URL)。 之后,这一行动就把事情储存到一个数据库。

You ll want to learn about model binding and json.... thats the ability for asp.mvc to convert your C# objects to and from JSON

你们想去看一看一些 as子,如神经器,例如MVC和Ajax。

问题回答

仅看。 微软 ASP.Net MVC tutorials

他们非常有用,我无法提出更好的解决办法,然后他们就这样做了。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签