In webapplication we have CodeBehind
In website we have codefile
In webapplication we have CodeBehind
In website we have codefile
>First Open Visual Studio
>Right Click on table and click on Design
>Right Click on column name left side
>Click on Indexes/Key
>Select Unique key in 'Type' Filed
Note:- Sometime unique key option is not visible
<asp:Button ID="Button1" runat="server"
PostBackUrl='<%# Eval("Id","~/Employee/Update/{0}") %>'
Text="Save" Width="75px" />
webclient in asp.net
for get
string handlerUrl = String.Format(Request.Url.Scheme+"://" +Request.Url.Authority+"{0}","/api/values");
string response = (new WebClient()).DownloadString(handlerUrl);
for post
using (var client = new WebClient())
{
string handlerUrl = String.Format(Request.Url.Scheme + "://" + Request.Url.Authority + "{0}", "/api/values");
client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
var data = "=Short test...";
string result = client.UploadString(handlerUrl, "POST", data);
Response.Write(result);
}
https://www.aspsnippets.com/Articles/2149/Call-Consume-Web-API-using-WebClient-in-ASPNet-C/
object input = new { Name ="yash"};
input = 6;
List<object> a = new List<object>();
a.Add(5);
a.Add( "ere");
object[] jji=new object[2]{ new {s = "df"}, new {s= "df"}};
some times we can use
dr.ItemArray = new Object[] {new { AgentName = "dfdf"}, new {AgentName = "df"} };