Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

Rohan Priya

@Rohan Priya
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create a table on Click event
    R Rohan Priya

    Hi Chinthaka , You can write the following code in the button onclick event . Before that you should import System.Data.SqlClient namespace . SqlConnection conn= new SqlConnection("ConnectionString"); conn.Open(); MessageBox.Show("Connection est.."); SqlCommand comCreate = new SqlCommand("CREATE TABLE EMP_TABLE_CREATE(EmpID INT , EmpName VARCHAR(20))",conn); int intCreate = comCreate.ExecuteNonQuery(); MessageBox.Show("Table Created.." + intCreate); SqlCommand conInsert = new SqlCommand("INSERT INTO EMP_TABLE_CREATE VALUES(11,'MyName')",conn ) ; int intInsert = conInsert.ExecuteNonQuery(); MessageBox.Show("Row Inserted.." + intInsert); MessageBox.Show("Displaying Row : "); SqlCommand conSelect = new SqlCommand("SELECT * FROM EMP_TABLE_CREATE",conn) ; SqlDataReader dr= conSelect.ExecuteReader(); dr.Read(); while(dr.HasRows) { MessageBox.Show(dr.GetInt32(0).ToString() +":"+dr.GetString(1)) ; dr.NextResult(); } conn.Close(); Hope this is what you wanted . Let me know if you have any further queries . Thanks

    Priya Rohan

    Database csharp database tutorial question

  • How to access data from iframe
    R Rohan Priya

    iframes are nested frames which may refer to another source ( .html page) . Here is an example which displays the user name when clicking on the button 1. detailform.html

    	**Enter your name :** 
    

    2. iframesample.html - constructs iframe referring detailform.html function callclick() { var frameDocument = document.getElementById("testforiframe").Document; alert("This is your name : " + frameDocument.getElementById("txtUserName").value); } Hope this is what you wanted . revert if you have any clarifications . Thanks Priya

    Priya Rohan

    ASP.NET tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups