we post this code(<a href="http://icelab.in/" target="_blank"> Ice lab </a>) in blog it will show Ice lab so we cant post html code to blog how to avoid this problem
first change < to & lt; and change > to & gt;
Showing posts with label ASP.NET C#. Show all posts
Showing posts with label ASP.NET C#. Show all posts
How to open link in new window
Open link in new window
<a href="http://icelab.in/" target="_blank"> Ice lab </a>
<a href="http://icelab.in/" target="_blank"> Ice lab </a>
What is an ASP File?
What is an ASP File?
An ASP file is just the same as an HTML file
An ASP file can contain text, HTML, XML, and scripts
Scripts in an ASP file are executed on the server
An ASP file has the file extension ".asp"
How Does it Work?
When a browser requests an HTML file, the server returns the file
When a browser requests an ASP file, IIS passes the request to the ASP engine on the server
The ASP engine reads the file, line by line, and executes the scripts in the file
Finally, the ASP file is returned to the browser as plain HTML
Shortcut Keys in .NET
Shortcut Keys
| Key | What it Does? |
| Ctrl + N | Opens the New Project Dialogue Box |
| Ctrl + Shift + O | Opens the Open File Dialog Box |
| Ctrl + Shift + A | Opens Add New Item window |
| Ctrl + D | Opens Add Existing Item window |
| Ctrl + S | Saves Current Form |
| Ctrl + Shift + S | Saves everything from Application |
| Alt + Q | Exits Visual Studio. NET |
| Ctrl + Z | Undo |
| Ctrl + Shift + Z | Redo |
| Ctrl + X | Cuts your selection |
| Ctrl + C | Copies your selection |
| Ctrl + V | Pastes your selection |
| Ctrl + A | Selects All |
| Del | Deletes your selection |
| Ctrl + F | Opens Find window |
| Ctrl + H | Opens Find and Replace window |
| Ctrl + Shift + H | Opens Replace in Files window |
| Ctrl + Alt + Shift + F12 | Opens Find Symbol window |
| F7 | Opens Code Designer window |
| Shift + F7 | Gets you back to Design View |
| Ctrl + R | Opens the Solution Explorer window |
| Ctrl + Alt + S | Opens the Server Explorer window |
| Ctrl + Shift + C | Opens the Class View window |
| F4 | Opens the Properties window |
| Ctrl + Shift + E | Opens the Resource view window |
| Ctrl + Alt + X | Opens the Toolbar window |
| Shift + Alt + Enter | Takes you to Full Screen View |
| Alt+F8 | Opens Macro Explorer window |
| F2 | Opens Object Browser window |
| Ctrl + Alt + T | Opens Document Outline window |
| Ctrl + Alt + K | Opens Task List window |
| Ctrl + Alt + A | Opens Command window |
| Ctrl + Alt + O | Opens Output window |
| Ctrl + Alt + Y | Opens Find Symbol Results window |
| Ctrl + Alt + F | Lists Items under the Favorites Menu in your Internet Explorer |
| Ctrl + Shift + B | Builds your project |
| F5 | Runs your Application |
| Ctrl + F5 | Runs your Application without Debugging |
| Ctrl + Alt + E | Opens the Exceptions Dialog Box |
| F8 | Used while Debugging Applications |
| Shift + F8 | Used While Debugging Applications |
| Ctrl + B | Inserts a New Breakpoint |
| Ctrl + Shift + F9 | Clears All Breakpoints |
| Ctrl + Alt + P | Opens the Processes Dialog box |
| Ctrl + T | Opens Customize Toolbox window |
| Ctrl + Shift + P | Runs Temporary Macro |
| Ctrl + Shift + R | Records Temporary Macro |
| Alt + F11 | Opens Macros IDE |
| Ctrl + F1 | Opens Dynamic Help window |
| Ctrl +Alt + F1 | Opens Help window sorted by Contents |
| Ctrl + Alt + F2 | Opens Help window sorted by Index |
| Ctrl + Alt + F3 | Opens Help Search window |
| Shift + Alt + F2 | Opens Index Results window |
| Shift + Alt + F3 | Opens Search Results window |
How to make paging for grid in asp.net
How to make paging for grid in asp.net
first take PageIndexChanging event and paste this code
-------------------------------------------------------------------------------------------------
protected void Gridalldisplay_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
Gridalldisplay.PageIndex = e.NewPageIndex;
grid();
}
............................................................................................................................................................................
public void grid() //function for populating grid
{
dt = obj.call("Select * from table_name");
if (dt.Rows.Count > 0)
Gridalldisplay.DataSource = dt;
Gridalldisplay.DataBind();
}
-------------------------------------------------------------------------------------------------
Read function for asp.net
Read function for asp.net
-------------------------------------------------------------------------------------------------
public DataTable read_function(string cal)
{
con.Open();
SqlDataAdapter da = new SqlDataAdapter(cal, con);
DataTable dt = new DataTable();
da.Fill(dt);
con.Close();
return dt;
}
---------------------------------------------------------------------------------------------------
Insert function for asp.net
Insert function for asp.net
this function can used for delete,insert and update operations
-------------------------------------------------------------------------------------------------
public int insert_function_with _int_returntype(string sav){
int ret;
con.Open();
SqlCommand cmd = new SqlCommand(sav, con);
ret = cmd.ExecuteNonQuery();
con.Close();
return ret;
}
************************************************************************************
public void insert_function(string sav)
{
con.Open();
SqlCommand cmd = new SqlCommand(sav, con);
cmd.ExecuteNonQuery();
con.Close();
}
-----------------------------------------------------------------------------------
HOW TO ADD DATA FROM DATADASE TO GRID IN ASP.NET
FUNCTION FOR ADDING DATA FROM DATADASE TO GRID IN ASP.NET
-------------------------------------------------------------------------------------
public void grid()
{
DataTable dt = new DataTable();
string qu1 = "select * from shop_category";
dt = obj.call(qu1);
if (dt.Rows.Count > 0)
{
Gridcategory.DataSource = dt;
Gridcategory.DataBind();
}
else
{
}
}
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
public void grid()
{
DataTable dt = new DataTable();
string qu1 = "select * from shop_category";
dt = obj.call(qu1);
if (dt.Rows.Count > 0)
{
Gridcategory.DataSource = dt;
Gridcategory.DataBind();
}
else
{
}
}
-------------------------------------------------------------------------------------
Subscribe to:
Posts (Atom)