Please looking related post for Asp.Net / Microsoft technologies related post under the "Related Post" section.
Hope you like those posts and please keep reading blog.
Please give your suggestions and comments for blog improvement.
Kalpesh Satasiya
12:48 PM
.CS class, asp.net, Asp.Net 5, asp.net MVC 6, Enum to HashTable
No comments
Kalpesh Satasiya
3:55 PM
.CS class, asp.net, GridView, Header
No comments
if (dt.rows.count > 0) { grdview.DataSource = dt; grdview.DataBind(); } else { var dummyTable = new DataTable(); dummyTable.Columns.Add("Column1"); dummyTable.Columns.Add("Column2"); dummyTable.Rows.Add(dummyTable.NewRow()); grdview.DataSource = dummyTable; grdview.DataBind(); grdview.Rows[0].Style.Add(HtmlTextWriterStyle.Display, "none"); }Hope you would like it and please share your suggestions and comments for improvement.
Kalpesh Satasiya
2:06 PM
.CS class, .VB and .CS class file use in one project, .VB class, ahmedabad, asp.net, india, software developer, software development
No comments
When I was creating my one of the site, I chose to write it in C#. I had a problem with the App_Code folder because I had some code in VB.NET code and some C# code I needed to put in there. I didn't want to rewrite my VB.NET code in the App_Code folder just so I could write the rest of the code for the site in C#.
Luckily, the ASP.NET Team had already thought about just this kind of circumstance. They implemented a way to partition the App_Code folder into sub-folders, one for each set of code files written in the same programming language. Awesome, I didn't have to spend a couple hours converting code from VB.NET to C#!
The below works with ASP.NET 2.0 and later.
Even if you don't use multiple different programming languages for your code files in the App_Code folder, you could use this feature to organize your sets of related code files into sub-folders.
Step 1: Add the following lines to the web.config
Step 2: Create a sub-folder in the App_Code folder for each language you want to support.
For Example:
/App_Code/VB_Code
/App_Code/CS_Code
Step 3: Place your VB.NET code in the VB_Code folder and place C# code in the CS_Code folder.