Asp.Net Gridview : Bind Database Table

  Рет қаралды 239,680

CodAffection

CodAffection

Күн бұрын

🍒 Related Videos
Asp.Net Core MVC Tutorials: • Asp.Net Core MVC Tutorial
MVC Login & User Registration: • Asp.Net Core MVC & Ide...
CRUD in Asp Web Form: • C# Asp.Net Web Form CR...
GridView CRUD in Asp Web Form : • Asp.Net Web Form Gridv...
MySQL CRUD in Asp Web Form: • Asp.Net Web Form CRUD ...
jQuery DataTable Playlist with Asp Web Form: • jQuery Datatable and A...
Login in Asp Web Form: • How to Create Login Pa...
More Asp.Net Web Form Tutorials: • Asp WebForm MVC Tutori...
📂 GitHub Repository
► goo.gl/z4nwbc
💖 Channel Support
➤ Paypal: bit.ly/3L36ut4
➤ UPI App: geni.us/ScanQR...
➤ Amazon: geni.us/Amazon...
💌 For Business Inquiries
➤ codaffection@gmail.com
🚶‍♂️ Follow us
Facebook : / codaffection
Discord : / discord
Twitter : / codaffection
---
How to Bind Database Table in Asp.Net Gridview
In this video, we have discussed how to bind or display database table in asp.net gridview using SQL Server. In the last column, we have shown a link button to select a row.
#AspNet #CodAffection

Пікірлер: 81
@CodAffection
@CodAffection 7 жыл бұрын
goo.gl/bPcyXW : Buy me a Coffee bit.ly/30fPDMg : AspNet Core MVC Tutorials bit.ly/3yTsztF : More AspNet Web Form Tutorials bit.ly/36IA1cH : CRUD in AspNet Core MVC bit.ly/2Z7PI3e : CRUD in Asp Web Form bit.ly/2TA9N14 : GridView CRUD in Asp Web Form bit.ly/2Z784pi : MySQL CRUD in Asp Web Form bit.ly/3Z5uWUR : jQuery DataTable Playlist with Asp Web Form bit.ly/2MlkMuM : Login in Asp Web Form
@coledalton5581
@coledalton5581 3 жыл бұрын
i know Im kinda randomly asking but do anyone know of a good website to stream newly released series online ?
@zevsawyer7457
@zevsawyer7457 3 жыл бұрын
@Cole Dalton Try FlixZone. Just google for it :)
@malcolmvivaan7841
@malcolmvivaan7841 3 жыл бұрын
@Zev Sawyer Definitely, been using flixzone for since april myself =)
@coledalton5581
@coledalton5581 3 жыл бұрын
@Zev Sawyer thank you, signed up and it seems like they got a lot of movies there :) I appreciate it !!
@zevsawyer7457
@zevsawyer7457 3 жыл бұрын
@Cole Dalton Happy to help :D
@fabiandibia1858
@fabiandibia1858 5 жыл бұрын
One of the best Online tutorial I have ever seen. Not too great English but the message was crystal clear. Well delivered and Thank you for this.
@CodAffection
@CodAffection 5 жыл бұрын
glad you found the video helpful.
@jontelletxea809
@jontelletxea809 3 жыл бұрын
You are my father! You saved my life! :)
@vidhyaarumugam341
@vidhyaarumugam341 Жыл бұрын
Thank for the video ... my job is still there for me bcaz of u people...
@csrajeshwarrao
@csrajeshwarrao 4 жыл бұрын
This Post may be 3 years back but it helped me. :) Thank you
@bunnygirl1615
@bunnygirl1615 2 жыл бұрын
thank you so much it solved my biggest problem 1.4K liker congratz
@CodAffection
@CodAffection 2 жыл бұрын
😊
@barthosouza7328
@barthosouza7328 2 жыл бұрын
Very helpful, nice explanation, thanks a lot
@TheYosi277
@TheYosi277 2 жыл бұрын
you recommended to do the SQL class you did as a static class so i wont create a instence of the data base every function?
@jancsovicsmark3409
@jancsovicsmark3409 Жыл бұрын
Thank you so much! You helped me a lot! 🙂
@CodAffection
@CodAffection Жыл бұрын
Glad I could help!
@grbsql
@grbsql 3 жыл бұрын
Thank you very much for sharing such excellent work
@mglx6
@mglx6 5 жыл бұрын
Thanks a lot!! from Chile
@marrohom5
@marrohom5 2 жыл бұрын
Thats great!, I have a doubt, how can I assign an ID to the table generated, I would like to add styles on it with JS... Thanks
@NassosKranidiotis
@NassosKranidiotis 6 жыл бұрын
Thank you very much! That was very helpful.
@phamanh-cy2vb
@phamanh-cy2vb 5 жыл бұрын
how a helpful tutorial, many thanks from Vietnam
@CodAffection
@CodAffection 5 жыл бұрын
you are welcome.
@kennethmonteroponce8356
@kennethmonteroponce8356 6 жыл бұрын
Very Good, thank you, excellent video.
@CodAffection
@CodAffection 6 жыл бұрын
my pleasure. thanks for the comment.
@manishkumar-mu2if
@manishkumar-mu2if 6 жыл бұрын
sir how to copy string connectionstring = @"?" from sql database table ?
@CodAffection
@CodAffection 6 жыл бұрын
try this : kzbin.info/www/bejne/jXuQdJebiayrppo
@avaniprajapati2642
@avaniprajapati2642 5 жыл бұрын
Very easy to contact connection string
@miguelrivas3781
@miguelrivas3781 4 жыл бұрын
You are amazing, thank you for sharing this video!!
@Spirittism
@Spirittism 4 жыл бұрын
In Windows form, there is a cell click that automatically selects all rows, is that possible in asp.net?
@Joyddep
@Joyddep 5 жыл бұрын
Got what i was looking for! Thanks a lot bro :)
@najjmahamud
@najjmahamud 6 жыл бұрын
Great Tutorials :-) Tnx
@kitsabee
@kitsabee 3 жыл бұрын
How can I capture this value in the client side javascript?
@nickpawsey
@nickpawsey 5 жыл бұрын
This helped a lot! Thanks man
@acolad_AD
@acolad_AD 3 жыл бұрын
nice one very helpful.
@kpeando
@kpeando 6 жыл бұрын
Good video , from chile
@CodAffection
@CodAffection 6 жыл бұрын
Glad you found the video helpful.
@kpeando
@kpeando 6 жыл бұрын
Thank you
@siddanatibhargav3070
@siddanatibhargav3070 5 жыл бұрын
hey hello bro in sql we write a qurey like select column1,column2,... tablename where column4=data; it gives the data in table when column is a country name is equal to india then it gives all columns have country is india it gives that data.but how to implement in asp.net i mean when user given a input that input is accepted by the database and give r display the data. how to work with this in asp.net
@CodAffection
@CodAffection 5 жыл бұрын
hope I understood your question. you can stored procedure with parameter. you can see them here : kzbin.info/www/bejne/eaWndmydidygr9E
@mickeykutti5165
@mickeykutti5165 2 жыл бұрын
When I click the design button all columns are displaying like databound databound..... What's the error plz help me
@tanujgarg792
@tanujgarg792 2 жыл бұрын
it will show databound until the data you want to show has been bonded.
@saimedianellai
@saimedianellai 3 жыл бұрын
Thank you so much sir
@shaznishiraz
@shaznishiraz 6 жыл бұрын
Thank You So much helped me :)
@CodAffection
@CodAffection 6 жыл бұрын
glad you found the video helpful.
@burhanaditya5072
@burhanaditya5072 7 жыл бұрын
Can you do it with innerjoin table sir?
@CodAffection
@CodAffection 7 жыл бұрын
sure, mention column name from join result
@burhanaditya5072
@burhanaditya5072 7 жыл бұрын
Dotnet Mob I still have trouble. When operating a crud with an innerjoin table. Whether the actual innerjoin requires a key relationship? Maybe next time you can explain it?
@CodAffection
@CodAffection 7 жыл бұрын
Yes. SELECT * FROM table as t1 INNER JOIN table as t2 ON t1.Key = t2.Key
@burhanaditya5072
@burhanaditya5072 7 жыл бұрын
Dotnet Mob Can inner join be done by using stored procedure only? I've been doing innerjoin with view options
@CodAffection
@CodAffection 7 жыл бұрын
sure
@numanduraklar5022
@numanduraklar5022 6 жыл бұрын
Thank you man!!!
@CodAffection
@CodAffection 6 жыл бұрын
you are welcome.
@anzimk1620
@anzimk1620 3 жыл бұрын
Thankz a alot
@premsagarshukla1766
@premsagarshukla1766 3 жыл бұрын
Thanks
@lalit7000
@lalit7000 5 жыл бұрын
thank you... it helped me...
@susmitahazra1886
@susmitahazra1886 3 жыл бұрын
Sir I need a help
@akhterhussain5842
@akhterhussain5842 6 жыл бұрын
I need help
@Buzca
@Buzca 3 жыл бұрын
Thank you!
@yousseftiko691
@yousseftiko691 4 жыл бұрын
THAANKS
@elvingonzalez8932
@elvingonzalez8932 5 жыл бұрын
Please do the same in a form desktop program with c# .NET only not asp.net please
@fahadamin7176
@fahadamin7176 4 жыл бұрын
local host reload but grid view not showing #CodAffection
@TheSclare
@TheSclare 7 жыл бұрын
Thank you so much.
@CodAffection
@CodAffection 7 жыл бұрын
My Pleasure.
@jayantacodingclass
@jayantacodingclass 2 жыл бұрын
Gridview to textbox retrieve data -kzbin.info/www/bejne/npa7q3aumbadhZI
@vrajkuvadiya3233
@vrajkuvadiya3233 Жыл бұрын
speak slowly
@mickeykutti5165
@mickeykutti5165 2 жыл бұрын
Hiii
@SunShine24024
@SunShine24024 4 жыл бұрын
👍👍
@danielriojas9559
@danielriojas9559 5 жыл бұрын
te amo
@MK-kl4es
@MK-kl4es Жыл бұрын
13 protected void Page_Load(object sender, EventArgs e) { table.Columns.Add("1", typeof(int)); table.Columns.Add("2", typeof(string)); table.Columns.Add("3", typeof(string)); table.Columns.Add("3", typeof(string)); table.Columns.Add("4", typeof(string)); table.Columns.Add("5", typeof(string)); table.Columns.Add("6", typeof(string)); string path = Server.MapPath("~/text/people.txt"); string[] dataa = File.ReadAllLines(ppath); foreach (string p in dataa) { string[] kolone = p.Split(';'); table.Rows.Add(kolone); } GridView1.DataSource = table; GridView1.DataBind(); List place = new List(); foreach (string p in dataa) { string[] rows = p.Split(';'); place.Add(rows[6]); } DropDownList1.Items.Add(new ListItem(String.Empty, "-1")); foreach (string m in place) { ListItem item = new ListItem(m); if (!DropDownList1.Items.Contains(item)) { DropDownList1.Items.Add(item); } } } protected void Button1_Click(object sender, EventArgs e) { DataTable temp = table.Copy(); for (int i = 0; i < temp.Rows.Count; i++) { if (!temp.Rows[i][1].ToString().Contains(TextBox1.Text) || !temp.Rows[i][2].ToString().Contains(TextBox2.Text) || !temp.Rows[i][3].ToString().Contains(TextBox3.Text) || !temp.Rows[i][4].ToString().Contains(TextBox4.Text) || !temp.Rows[i][5].ToString().Contains(TextBox5.Text) || !temp.Rows[i][6].ToString().Contains(DropDownList1.SelectedItem.Text)) { temp.Rows.RemoveAt(i); i--; } } GridView1.DataSource = temp; GridView1.DataBind(); }
@MK-kl4es
@MK-kl4es Жыл бұрын
78 protected void insert() { XmlTextReader reader = new XmlTextReader(Server.MapPath("/XMLL/XMLFile1.xml")); DataSet ds = new DataSet(); ds.ReadXml(reader); DataView dv = new DataView(ds.Tables[0]); DataTable dt = dv.Table; dt.DefaultView.Sort = "citano DESC"; dt = dt.DefaultView.ToTable(true); reader.Close(); GridView1.DataSource = dt; GridView1.DataBind(); } SqlConnection con = new SqlConnection(""); protected void btnPosalji_Click(object sender, EventArgs e) { SqlCommand com = new SqlCommand("INSERT INTO table values(@item1, @item2, @item3, @item4)", con); com.Parameters.AddWithValue("@item1", tb1.Text); com.Parameters.AddWithValue("@item2", tb2.Text); com.Parameters.AddWithValue("@item3", tb3.Text); com.Parameters.AddWithValue("@item4", DateTime.Now.ToShortDateString()); con.Open(); com.ExecuteNonQuery(); }
@MK-kl4es
@MK-kl4es Жыл бұрын
15 public void insert() { if (DropDownList1.SelectedIndex > -1) { string pathh= Server.MapPath($"~/TXT/{DropDownList1.SelectedValue}.txt"); string[] liness = File.ReadAllLines(putanja); foreach (string line in liness) { if (line.StartsWith("SMER")) { string smer = line.Remove(0, 5); DropDownList2.Items.Add(smer); } } } } protected void Button1_Click(object sender, EventArgs e) { GridView1.DataSource = null; GridView1.DataBind(); DataSet ds = new DataSet(); ds.Tables.Add(new DataTable()); ds.Tables.Add(new DataTable()); ds.Tables[0].Columns.Add("RBR", typeof(string)); ds.Tables[0].Columns.Add("Polazak", typeof(string)); ds.Tables[1].Columns.Add("RBR", typeof(string)); ds.Tables[1].Columns.Add("Polazak", typeof(string)); if (DropDownList1.SelectedIndex > -1 && DropDownList2.SelectedIndex > -1) { string pathh = Server.MapPath($"~/TXT/{DropDownList1.SelectedValue}.txt"); string[] liness = File.ReadAllLines(pathh); int i = -1, j = 0; foreach (string line in liness) { if (line.StartsWith("SMER")) { i++; j = 0; } else { j++; ds.Tables[i].Rows.Add(j, line); } } if (DropDownList2.SelectedIndex == 0) { GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } else if (DropDownList2.SelectedIndex == 1) { GridView1.DataSource = ds.Tables[1]; GridView1.DataBind(); } }
@ublweb1279
@ublweb1279 3 жыл бұрын
Thank you very much! That was very helpful.
@RamdevDarak
@RamdevDarak 3 жыл бұрын
This helped a lot! Thanks man
@solankidisha337
@solankidisha337 5 жыл бұрын
Thank you so much
@mickeykutti5165
@mickeykutti5165 2 жыл бұрын
I need help
ASP.Net GridView Control | Binding Controls | DataSource, in Hindi
24:05
Dr. Ritesh Magre
Рет қаралды 10 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
How to bind data to gridview from database using asp net c#
19:46
𝐂𝐨𝐝𝐞𝐖𝐢𝐭𝐡𝐆𝐨𝐩𝐢
Рет қаралды 4,5 М.
Asp.Net Gridview Tutorial - Bind Database Table To Gridview - Tutorial 1
13:29
Coding Solutions With Ankit
Рет қаралды 12 М.
ASP.NET - GridView Control
6:46
TutorialsPoint
Рет қаралды 26 М.
Add checkbox and Delete data in Gridview | Asp.Net C#
23:59
Dawa CIT
Рет қаралды 14 М.
Views in SQL | SQL in tamil | Tech with Hema Tamil
19:51
Tech with Hema
Рет қаралды 7 М.
Asp.Net MVC CRUD Operations Using Datatable
1:00:51
CodAffection
Рет қаралды 385 М.
Insert, Edit, Update, Delete Data in GridView Using Asp.Net C# | Hindi | Free Online Classes
28:56
Save image to database using asp net
16:54
kudvenkat
Рет қаралды 202 М.