Subscribe: Custom Server Controls
Added By: Feedage Forager Feedage Grade B rated
Language: English
add  cmd parameters  cmd  end  error  file  new  parameters add  parameters  reportviewer  request querystring  sqldbtype  string  tabservicos 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Custom Server Controls

All Forums

All Forums

Last Build Date: Wed, 26 Apr 2017 01:16:10 -0700


What date Format to use in POST to Web Api



I did the following:

1) I created a Customers table in SQLServer 2008

for testing purpose on DateTime

CustId              int
CustomerName        nvarchar(50)
CustomerPassword    nvarchar(50)
CustomerEmailAddr   nvarchar(100)
CustomerMobileNo    nvarchar(20)
CreatedOn           DateTime   <---only this allow Nulls

2) I have created Web Api Project with Entities DataModel

2.1) This the CustomerRepository.cs file inside Web Api Project

public class CustomerRepository : ICustomerRepository
  MyEntities ctx = new MyEntities();

 public void Add([FromBody] customer contact)

      var addedContact = ctx.Customers.Add(contact);


3) Assume my Web Api is working as I did a Get thru Fiddler. I got the result correctly.

4) I have problem in POST for the above Code.

I used Fiddler to do testing: POST

a) I use POST selection in fiddler
b) I added
    Accept: application/json
    Content-Type : application/json

c) I added this Json-data-string in the request-body section for post

{"CustomerName":"Will Smith", "CustomerPassword":"Will133", "CustomerEmailAddr":"123, Hollywood Blvd","CustomerMobileNo":"12346788","CreatedOn":"2017-04-25T07:22Z"}

Problem :
Http Status Code : 415  ( this means wrong type?)

I have these questions:

1) is this "CreatedOn":" see the date format below" causing the problem?

I tried these, I could not add it to SQL Server

1.1) What date format I must use in the Json data string above base on

 a) When submit thru Fiddler
 b) Using HttpClient

2) Must the order in the Json-data-string MUST match the order in the SQL Server customer table that I have designed?

3) Since the field CreatedOn declared as allow Null

  3.1) Can I exclude it in the Json-data-string?
  3.1) Can I include it but give empty string But how? "CreatedOn":"' '" ?

4)  For those fields declared as  ( Not Allow Null), Must I include all or some?


.Polyline to draw a path with DB values?


Hi Everyone,

When I click an item from the drop down down list, it plots those on the map.

What I need is for it to also Draw a poly line from my current location to each item(coordinates on the map).

It plots the correct items when I click the name in the drop down list but how do I get it to also draw a poly line for each of those each time I click a new item?

for (i = 0; i < gmarkers.length; i++) {
                    type: "POST",
                    url: '@Url.Action("Search", "Map")', //"../Map/Search"
                    contentType: "application/json; charset=utf-8",
                    data: JSON.stringify({ "Location": x }),
                    dataType: "json",
                    success: function (data) {
                        var table = "";
                        $.each(data, function (index, value) {
                            table += "";
                            var latlng = new google.maps.LatLng(value.MapLat, value.MapLong);

                            //var flightPlanCoordinates = [];


                            var marker = new google.maps.Marker({
                                position: latlng,
                                icon: "../car-dealer.svg",
                                animation: google.maps.Animation.DROP,
                                map: map

                            //var flightPath = new google.maps.Polyline({
                            //    path: latlng,
                            //    geodesic: true,
                            //    strokeColor: '#FF0000',
                            //    strokeOpacity: 1.0,
                            //    strokeWeight: 2


                        table += "
" + value.Model_ID + "
"; // $("#myData").html(table); if (x == "") { for (j = 0; j < gmarkers.length; j++) { gmarkers[j].setMap(null); } } } }); });

Send an array through the Url to the web api


I want to send a put request to update a record in the database from a windows forms application through a web api, I want to send an array to the method found in the api and want to see if this is the correct way to do it.

Here's the code I wrote:

windows appl code: 

private async void updtTMed(int[] num)
            using (var client = new HttpClient())
                string URI = string.Format("http://localhost:1891/api/serious/updtTM");

                var serializedProduct = JsonConvert.SerializeObject(num); //num is an array of integers
                var content = new StringContent(serializedProduct, Encoding.UTF8, "application/json");
                var result = await client.PutAsync(URI, content);



Web api code:

        public void updtTM(int[] num)
            string query = "update TeaMedicament set MaxAnnualDepreciation = " + num[0] + " where ID=" + num[1] + "";
            DAL.dynamiccommection(query, "am");

Is this the correct way to send an array over or is there another way?

Show Sub Header With Data In GridviewItem Name Qty Belongs To : A Apple 1 Mango 9 Lemon 8 Belongs To : B Orange 2 Mango 6



My Gridview Look like This below

Belongs To

Item Name

















I want Like This Below

Item Name


               Belongs To :    A







              Belongs To : B





How To Do So..?

Jquery datepicker show highlighted date after calender load



I have jquery date picker and an input html control. In html input control i have dates with comma seperated like this on page load. ie. getting value from DB

How to click on a datalist row to go to some page (link)


Hi all! I have this datalist: with the following code: ASPX: Dim StrCon As String = ConfigurationSettings.AppSettings("strconexao") Dim Con As OleDbConnection Dim Cmd As OleDbCommand Dim Dtr As OleDbDataReader Dim Adpt as OleDbDataAdapter Dim Cmb As OleDbCommandBuilder Dim Dset As DataSet Dim Drw As Datarow Dim CriacaoId As String = Guid.NewGuid.ToString 'LISTA SERVIÇOS--------------------------------------------------------------------------- Sub ListaServicosAtivos3() Con = New OleDbConnection(StrCon) Cmd = New OleDbCommand("SELECT TabServicos.ServicoCod, TabServicos.EstadoCod, TabServicos.ServicoDataCriacao, TabServicos.ServicoHoraCriacao, TabServicos.ServicoData, TabServicos.ServicoHora, TabServicos.ServicoVolumes, TabServicos.ServicoPeso, TabServicos.ServicoOrigem, TabServicos.ServicoDestino, TabServicos.ServicoDestinoContato, TabServicos.ServicoRetorno, TabServicos.ServicoDescricao, TabServicos.ServicoCobranca, TabServicos.ServicoOBS, TabServicos.ServicoAnotacao, TabServicos.ClienteCod, TabServicos.ProdutoCod, TabServicos.ClienteTipoCod, TabServicos.ServicoId, TabServicos.OrcamentoEstadoCod, TabServicos.ServicoValorFaturado, TabServicos.ServicoRecebidoPor, TabProdutos.ProdutoCod, TabProdutos.ProdutoTitulo, TabProdutos.ProdutoBreveDescricao, TabProdutos.ProdutoDescricao, TabProdutos.ProdutoUrgente, TabProdutos.ProdutoTiming, TabClienteTipo.ClienteTipoCod, TabClienteTipo.ClienteTipoTitulo, TabCliente.ClienteEntidade, TabServicos.OrcamentoCod, TabServicos.ServicoExtra, TabContatosDepartamentos.ContatoDepartamentoNome, TabViaturas.ViaturaTipo FROM (TabProdutos INNER JOIN (TabClienteTipo INNER JOIN (TabCliente INNER JOIN (TabContatosDepartamentos RIGHT JOIN TabServicos ON TabContatosDepartamentos.ContatoDepartamentoCod = TabServicos.ContatoDepartamentoCod) ON TabCliente.ClienteCod = TabServicos.ClienteCod) ON TabClienteTipo.ClienteTipoCod = TabServicos.ClienteTipoCod) ON TabProdutos.ProdutoCod = TabServicos.ProdutoCod) INNER JOIN TabViaturas ON TabServicos.ViaturaCod = TabViaturas.ViaturaCod WHERE (((TabServicos.EstadoCod)=1 Or (TabServicos.EstadoCod)=2 Or (TabServicos.EstadoCod)=3 Or (TabServicos.EstadoCod)=6)) ORDER BY TabServicos.EstadoCod, TabServicos.ServicoData, TabServicos.ServicoHora", Con) Con.Open() Dtr = Cmd.ExecuteReader(CommandBehavior.CloseConnection) RptServicos3.DataSource = Dtr RptServicos3.DataBind() Con.Close() End Sub Sub Page_Load() ListaServicosAtivos3() End Sub HTML:
Selec. Id
Transporte Entidade Origem Destino Produto

Exception: Call to Node module failed with error: Error: Uncaught (in promise): Error: DI Error


After I created a base servise class I got this exception on the index.cshtml System.Exception: Call to Node module failed with error: Error: Uncaught (in promise): Error: DI Error Error: DI Error at NoProviderError.ZoneAwareError (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74842:33) at NoProviderError.BaseError [as constructor] (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:1312:20) at NoProviderError.AbstractProviderError [as constructor] (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:1438:20) at new NoProviderError (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:1478:20) at ReflectiveInjector_._throwOrNull (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:3010:23) at ReflectiveInjector_._getByKeyDefault (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:3049:29) at ReflectiveInjector_._getByKey (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:2981:29) at ReflectiveInjector_.get (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:2850:25) at AppModuleInjector.NgModuleInjector.get (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:8564:56) at CompiledTemplate.proxyViewClass.AppView.injectorGet (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:12008:49) at ElementInjector.get (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:11863:31) at ReflectiveInjector_._getByKeyDefault (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:3046:28) at ReflectiveInjector_._getByKey (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:2981:29) at ReflectiveInjector_.get (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:2850:25) at CompiledTemplate.proxyViewClass.AppView.injectorGet (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:12008:49) at resolvePromise (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74515:31) [angular] at resolvePromise (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74486:17) [angular] at C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74563:17 [angular] at Object.onInvokeTask (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:4044:41) [angular] at ZoneDelegate.module.exports.ZoneDelegate.invokeTask (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74216:36) [angular] at Zone.module.exports.Zone.runTask (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74016:47) [ => angular] at drainMicroTaskQueue (C:\Projetos\Despesas\Desenv\20170313_Inicio\Fontes\Despesas\WA\ClientApp\dist\vendor:74396:35) [] at runMicrotasksCallback (internal/process/next_tick:58:5) [] at _combinedTickCallback (internal/process/next_tick:67:7) [] at process._tickCallback (internal/process/next_tick:98:9) [] at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.d__7`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.d__14`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNo[...]

Error TS1148 Cannot use imports, exports, or module augmentations when '--module' is 'none'. TypeScript Virtual Projects



I am having trouble getting anything working with Angular 2 and ASP.NET Core. I paste below a few lines from Package.Json

The problem that I have is with my app.component.ts

Error TS1148 Cannot use imports, exports, or module augmentations when '--module' is 'none'. TypeScript Virtual Projects

then it goes on to fail to find

import { NgModule } from '@angular/core';

app.module.ts just fails to find angular/core

"dependencies": {
"@angular/animations": "4.0.0",
"@angular/common": "4.0.0",
"@angular/compiler": "4.0.0",
"@angular/compiler-cli": "4.0.0",
"@angular/core": "4.0.0",
"@angular/forms": "4.0.0",

ASP.NET Sessions are getting crossed or mixed up


Dear Microsoft From,

We have our B2B based website where our customer login and gets the benefit or our product. Recently from one month, we are getting one issues that after login, some time, customer is viewing the details of other customer and when we visit to other page, session details corrected.

For checking, we start adding Sessionid in code behind in hidden, On wrong page, it is showing different sessionID and when we click on other page, it start showing correct sessionid.

Our website is using StateServer 4.0.*.* with 60 minute of expiry. But after trying lots of thing and tracking through code, we does not find the solution.

Kindly request you to please suggest any solution.

Application in .net hosted on IIS 7.

Eagerly waiting for your response.


Raj Shekhar

Need RowDataBound event of Nested (Child) GridView


Hi Folks,

Hope You all are coding well.

But I am stuck, where I need to fire RowDataBound event of Nested (Child) GridView.

Have Bound child grid in parent's RowDataBound event.

But I want to findcontrols in RowDataBound event of Nested (Child) GridView.

Please Assists...

Some Errors starting my asp net core project


Hello, i have an error:

Unhandled Exception: System.InvalidOperationException: AddIdentity must be called on the service collection.
at Microsoft.AspNetCore.Builder.BuilderExtensions.UseIdentity(IApplicationBuilder app)
at Altram.Web.Donate.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in D:\Development\C#\Visual Studio\Altram System\Altram.Web.Donate\Startup.cs:line 122
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Altram.Web.Donate.Program.Main(String[] args) in D:\Development\C#\Visual Studio\Altram System\Altram.Web.Donate\Program.cs:line 10

When i start my project on Linux machine, i use Windows 10 as dev platform with VS2017 and Net Core 1.1.1 and i trying to publish the project on my linux machine from windows but i get this error, but when i use Windows, it works well, what can i do to be able to fix this?

RDLC session expired


I am using RDLC reports for creating reports but when client is viewing reports or export to PDF or Excel is giving an error session has expired or could not be found string UserName = Request.QueryString["Login"] == null ? string.Empty : Request.QueryString["Login"].ToString(); string type = Request.QueryString["type"] == null ? string.Empty : Request.QueryString["type"].ToString(); string ReportStatus = Request.QueryString["ReportStatus"] == null ? string.Empty : Request.QueryString["ReportStatus"].ToString(); if (UserName != string.Empty) //If report will not get username, then do not show report { string Start = Request.QueryString["start"] == null ? string.Empty : Request.QueryString["start"].ToString(); string End = Request.QueryString["end"] == null ? string.Empty : Request.QueryString["end"].ToString(); DateTime Startdate = Convert.ToDateTime(Start); DateTime Enddate = Convert.ToDateTime(End); ReportViewer1.BackColor = System.Drawing.Color.Transparent; //ReportViewer1.ShowExportControls = false; ReportViewer1.ShowPrintButton = false; ReportViewer1.ShowPageNavigationControls = true; ReportViewer1.ShowRefreshButton = false; ReportViewer1.ShowFindControls = false; ReportViewer1.ShowBackButton = false; ReportViewer1.LocalReport.EnableHyperlinks = true; ReportViewer1.PageCountMode = PageCountMode.Actual; ReportViewer1.ProcessingMode = ProcessingMode.Local; ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/ExpenseDetailReport.rdlc"); ExpenseDetailReport dsExpenseDetailReport = GetData(Startdate, Enddate, type, UserName, ReportStatus); ReportDataSource datasource = new ReportDataSource("ExpenseDetailReportDataSet", dsExpenseDetailReport.Tables[0]); ReportParameter[] rparameter = new ReportParameter[] { new ReportParameter("StartDate",Start), new ReportParameter("EndDate",End), new ReportParameter("UserName",UserName) }; ReportViewer1.LocalReport.DataSources.Clear(); ReportViewer1.LocalReport.SetParameters(rparameter); ReportViewer1.LocalReport.DataSources.Add(datasource); ReportViewer1.LocalReport.Refresh(); DisableUnwantedExportFormat(ReportViewer1, "PDF"); DisableUnwantedExportFormat(ReportViewer1, "WORDOPENXML"); private ExpenseDetailReport GetData(DateTime Start, DateTime End, string type, string UserName , string ReportStatus) { string conString = ConfigurationManager.AppSettings["constr"]; SqlCommand cmd = new SqlCommand("SP_ExpenseDetailReport"); using (SqlConnection con = new SqlConnection(conString)) { using (SqlDataAdapter sda = new SqlDataAdapter()) { cmd.Connection = con; cmd.CommandType = CommandType.StoredProcedure; [...]

The type or namespace name 'FromBody' could not be found (are you missing a using directive or an assembly reference?


Hi I did the following:

I am using VS2015
I added a Class Library into my Web Api Project
I added a reference for this ClassLibrary in the web Api Project
I added the Entities DataModel in the ClassLibrary

I got an error  when compiling :

The type or namespace name 'FromBody' could not be found (are you missing a using directive or an assembly reference?)

-- these are in the Class Library

1) ICustomerRepository

    public interface ICustomerRepository
        IEnumerable GetAll();
        User GetById(int CustId);
        int Update(Customer cust);
        void Add(Customer custinfo);
        void Delete(int CustId);

2) CustomerRepository
public class CustomerRepository :ICustomerRepository
        MyEntities ctx = new MyEntities();    

        public IEnumerable GetAll()
            return ctx.Customers;

        public Customer GetById(int contactId)
            IQueryable customers = ctx.Customers.Where(a => a.CustId == contactId);
            return Customers.FirstOrDefault();

//problem :

        public void Add([FromBody]Customer contact)
            var addedContact = ctx.Customers.Add(contact);


Gridview and SQL Sorting Issues


I have a  question on using the Gridview.

My grid is attached to a MsSql Database, I have Paging selected and can click on column header to sort by that column - also have alternate row shading.

All functionality works ok as it is.

Area giving me difficulty is:

Initial form load shows grid with alternate colored lines sorted by CUSTOMER_NAME - am using a SqlDataSource bound to the Gridview and that has the initial SELECT command. When I click on column heading to sort by CITY why do I loose alternate colors in the CITY column?  How to preserve Alternating Colors in sorted by column?

Hope you can help.


Import PDF file


Hi , can i help you please , how i can import pdf with ?

How can I hide certain fields when accessing database from DbContext


In my database I have relations, for example, I have a table like:

CarId, Model, Manufacturer, Owner where Owner is a foreign key to another table. 

I have a DbSet

How can I select all columns without Owner in my get action using LINQ?

public IEnumerable Accounts()
    return _db.Cars.Select(car => new { Id = car.CarId, Model = car.Model, Manufacturer = car.Manufacturer }).AsEnumerable();

Is this the right way of doing it? I use Entity Framework Core.

convert a jpg/png/txt or any file format to pdf using mvc5


ow do i convert a jpg/png/txt or any file format to pdf using mvc c#. Here is the code:

public ActionResult SaveProfileDocument(string code)
            bool isSavedSuccessfully = true;
            string fName = "";
            string _documentname = String.Empty;

                foreach (string fileName in Request.Files)
                    HttpPostedFileBase file = Request.Files[fileName];
                    //Save file content goes here
                    fName = file.FileName;
                    if (file != null && file.ContentLength > 0)

                        var originalDirectory = new DirectoryInfo(string.Format("{0}Documents\\Profile\\" + code, Server.MapPath(@"\")));

                        string pathString = System.IO.Path.Combine(originalDirectory.ToString());

                        var fileName1 = Path.GetFileName(file.FileName);

                        bool isExists = System.IO.Directory.Exists(pathString);

                        if (!isExists)


                        var path = string.Format("{0}\\{1}", pathString, file.FileName);
                        if (System.IO.File.Exists(path)) {

                            var path2 = string.Format("{0}\\{1}", pathString,_documentname );
                        else {



            catch (Exception ex)
                isSavedSuccessfully = false;

            if (isSavedSuccessfully)
                return Json(new { Message = fName, documentname = _documentname });
                return Json(new { Message = "Error in saving file", documentname=""});

In the above code i am saving the file.but here i need to convert the file and then save.

so for convert i need a separate class or method here only call that method.

The thing is that while upload a file inthat time need to convert pdf any file to convert pdf. and save in folder or whatever.


code for fetching events from database to the full calender according to the start date and end date stored in database.please help


code for fetching events from database to the full calender according to the start date and end date stored in database.please help

Error handling in webmethod


how can I apply error handling in a webmethod, how can I return ex.Message ? I have this code for example _ Public Function SrcTblReg(ByVal SrchTxt As String, ByVal FnameSrctxt As String, _ ByVal SnameSrctxt As String, ByVal TnameSrctxt As String, _ ByVal LnameSrctxt As String, ByVal TelSrcTxt As String, _ ByVal SSNSrcTxt As String, ByVal EmailSrctxt As String, _ ByVal DOBSrcTxt As String) Dim constr As String = ConfigurationManager.ConnectionStrings("ARTSQLConStrng").ConnectionString Using con As New SqlConnection(constr) Using cmd As New SqlCommand("TblRegSearch", con) cmd.CommandType = CommandType.StoredProcedure If (String.IsNullOrEmpty(SrchTxt)) Then cmd.Parameters.Add("@Searchtxt", SqlDbType.NVarChar).Value = DBNull.Value Else cmd.Parameters.Add("@Searchtxt", SqlDbType.NVarChar).Value = SrchTxt End If If (String.IsNullOrEmpty(FnameSrctxt)) Then cmd.Parameters.Add("@Fname", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@Fname", SqlDbType.NVarChar).Value = FnameSrctxt End If If (String.IsNullOrEmpty(SnameSrctxt)) Then cmd.Parameters.Add("@Sname", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@Sname", SqlDbType.NVarChar).Value = SnameSrctxt End If If (String.IsNullOrEmpty(TnameSrctxt)) Then cmd.Parameters.Add("@Tname", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@Tname", SqlDbType.NVarChar).Value = TnameSrctxt End If If (String.IsNullOrEmpty(LnameSrctxt)) Then cmd.Parameters.Add("@Lname", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@Lname", SqlDbType.NVarChar).Value = LnameSrctxt End If If (String.IsNullOrEmpty(TelSrcTxt)) Then cmd.Parameters.Add("@TelMob", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@TelMob", SqlDbType.NVarChar).Value = TelSrcTxt End If If (String.IsNullOrEmpty(SSNSrcTxt)) Then cmd.Parameters.Add("@SSnum", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@SSnum", SqlDbType.NVarChar).Value = SSNSrcTxt End If If (String.IsNullOrEmpty(EmailSrctxt)) Then cmd.Parameters.Add("@Email", SqlDbType.Int).Value = DBNull.Value Else cmd.Parameters.Add("@Email", SqlDbType.NVarChar).Value = EmailSrctxt End If If (String.IsNullOrEmpty(DOBSrcTxt)) Then cmd.Parameters.Add("@DOB", SqlDbType.Date).Value = DBNull.Value Else Dim DOBDte As DateTime = String.Format("{0:dd-MMMM-yyyy}", DOBSrcTxt) cmd.Parameters.Add("@DOB", SqlDbType.Date).Value = DOBDte [...]

responsive images


I try to ad some image's to my site . I would like to know how to make them responsive ?