C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » ASP.NET/Web Applications »

Advantage of <IFRAME> tag


Posted Date: 23 Oct 2004    Resource Type: Articles    Category: ASP.NET/Web Applications
Author: Rajeev Member Level: Silver    
Rating: 1 out of 5Points: 4



This is the simple Utility to divide the page and and helps to show large set of data. This is for the beginners who are looking to do something diffrent in Asp.net, this utility may helpfull for them.

I don't want to describe more about it. I will explain how to use this control with a Datagrid

(1)So first create a webform that contains a Datagrid bound with a Database table. we will call this webform as webform1 (2) simply Bind the Datagird as usual Eg:-

Dim connstr As String =
("server=sqlservername;database=pubs;Trusted_Connection=true;");

Dim sqlconnection As New SqlConnection(connstr)
Dim sqlda As New SqlDataAdapter("select * from employee", sqlconnection)
Dim ds As New DataSet()
sqlda.Fill(ds, "employees")
DataGrid1.DataSource = ds
DataGrid1.DataBind()


Create a Webform to Host this Datagrid

Now we create a webform on which u intend to show the data or the screen shot of webform1. we can call this form as webform2

Just add the code in the webform2 html part in the body tag

<iframe src="webform1.aspx">
</ iframe>


This form may have other web control just like any other web form. Note that IFRAME tage is specific to Internet Explorer.

Just a simple method If anyone did't understand what i had do above can mail me at
rajeev_gt@rediffmail.com.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to change the page content dynamically.
Previous Resource: Caching in .Net
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET/Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use