Пример #1
0
        protected void grvKlijenti_SelectedIndexChanged(object sender, EventArgs e)
        {
            using (PoslovniKlubBL temp = new PoslovniKlubBL())
            {
                GridViewRow row = grvKlijenti.SelectedRow;

                //Ova 2 reda ispod bi trebala da preetvaraju string u Title Case (using System.Globalization)
                //TextInfo myTI = new CultureInfo("en-US", false).TextInfo;
                //string opstina= myTI.ToTitleCase(myTI.ToLower(row.Cells[5].Text));

                int grad = temp.GetGradByOpstina(row.Cells[6].Text);

                Response.Redirect("Registracija.aspx?" + "&JMBG=" + Server.UrlEncode(row.Cells[2].Text) + "&Prezime=" + Server.UrlEncode(row.Cells[3].Text) + "&Ime=" +
                 Server.UrlEncode(row.Cells[4].Text) + "&Adresa=" + Server.UrlEncode(row.Cells[5].Text) + "&Opstina=" + grad +
                 "&Telefon=" + Server.UrlEncode(row.Cells[7].Text) + "&Telefon2=" + Server.UrlEncode(row.Cells[8].Text) + "&Mobitel=" + Server.UrlEncode(row.Cells[9].Text) +
                 "&EmailKS=" + row.Cells[10].Text + "&Filijala=" + Server.UrlEncode(ddlFilijale.SelectedValue));
            }
        }