
Lot's of LIVE projects available here. Welcome to SMI Studio We Provide Best Software Solutions using Latest Technology with Design, Developement, Testing and Maintenance. RAD with Agile Methodology. We developed many kinds of Applications & Works on lot of programming languages and Technologies like Angular, ASP.Net, C#.Net, Web API, Node npm, PHP, JSP, MVC.Net, jQuery, Bootstrap, HTML/CSS/ javaScript. Awesome various types of database MS SQL Server, Firebase, MariyaDB.
Call Web Service | SOAP | WSDL | asmx
Here ParameterService is a Service name on references and ParameterServiceSoapClient is a class name on autogenerated file reference.cs .
public void TestMethod()
{
try
{
ParameterService.ParameterServiceSoapClient FObjFetchParameters = new ParameterService.ParameterServiceSoapClient();
DataSet dtSurnoc = new DataSet();
dtSurnoc = FObjFetchParameters.GetSNo(24,1,3,5,12);
}
catch (Exception ex)
{
throw;
}
}
c# read all table with column dataset / datatable
{
Console.WriteLine("Table - "+dtab.TableName);
foreach (DataColumn dc in dtab.Columns)
Console.WriteLine("Col- "+dc.ColumnName);
}
GridView - Selected row data using datakey name | Asp.Net c#
GridView - Dynamic Select Button | Asp.Net c#
Home.aspx
asp:GridView runat="server" ID="GrdLandDetails" CssClass="table table-striped table-bordered table-hover gridasp" PageSize="10" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="id,age" AutoGenerateSelectButton="true" OnSelectedIndexChanging="GrdLandDetails_SelectedIndexChanging"
Columns
asp:BoundField HeaderText="Name" DataField="Sname"
asp:BoundField HeaderText="Amount" DataField="amt"
asp:
Home.aspx.cs | Code Behind
protected void gv_bindowners_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
string Fname = gv_bindowners.DataKeys[e.NewSelectedIndex].Values["Sname"].toString;
string Age = gv_bindowners.DataKeys[e.NewSelectedIndex].Values["age"].toString;
string Amount = gv_bindowners.DataKeys[e.NewSelectedIndex].Values["amt"].toString;
}
imgbtn I ASP.NET C# | Image Button Properties | SMI Studio
using System;
using System.Web.UI;
using System.Drawing;
namespace WebApplication4
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if (e.X >= 0 && e.X < (imbtn.Width.Value/2))
{
if (e.Y >= 0 && e.Y < (imbtn.Height.Value / 2))
{
lbl.ForeColor = Color.Yellow;
lbl.Text = "you cicked on yellow button";
}
else
{
lbl.ForeColor = Color.Red;
lbl.Text = "you cicked on RED button";
}
}
else
{
if (e.Y >= 0 && e.Y < (imbtn.Height.Value / 2))
{
lbl.ForeColor = Color.Blue;
lbl.Text = "you cicked on BLUE button";
}
else
{
lbl.ForeColor = Color.Green;
lbl.Text = "you cicked on GREEN button";
}
}
}
}
}