Click here to Skip to main content
16,003,462 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: six objects in ASP.Net Pin
Christian Graus12-May-08 0:43
protectorChristian Graus12-May-08 0:43 
GeneralRe: six objects in ASP.Net Pin
NarVish12-May-08 1:09
NarVish12-May-08 1:09 
GeneralRe: six objects in ASP.Net Pin
J4amieC12-May-08 1:48
J4amieC12-May-08 1:48 
Questionhow to call back from server side Pin
Piyush Vardhan Singh11-May-08 23:42
Piyush Vardhan Singh11-May-08 23:42 
AnswerRe: how to call back from server side Pin
Christian Graus11-May-08 23:45
protectorChristian Graus11-May-08 23:45 
GeneralRe: how to call back from server side Pin
Piyush Vardhan Singh12-May-08 0:04
Piyush Vardhan Singh12-May-08 0:04 
GeneralRe: how to call back from server side Pin
Christian Graus12-May-08 0:06
protectorChristian Graus12-May-08 0:06 
QuestionProblem with iframe control Pin
Vsree11-May-08 23:29
Vsree11-May-08 23:29 
Hi
In my webform(webform1.aspx), i have an iFrame control, along with with many web controls.
The "src" attribute of it refers to another webform.(webform2.aspx)

I want text to appear in the frame on clicking a button which fetches the
value from db. Am using a session variable to hold the text to be assigned for iframe.

And am using the following code in WebForm1.aspx
<br />
private void Button1_Click(object sender, System.EventArgs e)<br />
{<br />
 Session["Cont"]		=	"This is a page";<br />
 <br />
HtmlGenericControl	frame1	=	(HtmlGenericControl)this.FindControl("txtFrame");<br />
<br />
 frame1.Attributes["src"]	=	"WebForm2.aspx";		<br />
<br />
 Server.Execute("WebForm2.aspx");<br />
 Response.ClearContent();<br />
}<br />


And in WebForm2.aspx,Page_Load(..)
<br />
if(Session["Cont"]!=null)<br />
{<br />
	Literal1.Text	=	Session["Cont"].ToString();<br />
}<br />


The problem is when i click the button in WebForm1.aspx, along with actual text, a textbox with some characters is appearing in the iFrame though there's no other control in the target(Webform2.aspx) other than Literal control. Frown | :(

Please help me in finding out the actual problem and its solution.
Thanks

~VSree

QuestionObject reference not set to an instance of an object Pin
Saba0211-May-08 23:24
Saba0211-May-08 23:24 
AnswerRe: Object reference not set to an instance of an object Pin
Christian Graus11-May-08 23:27
protectorChristian Graus11-May-08 23:27 
AnswerRe: Object reference not set to an instance of an object Pin
eyeseetee11-May-08 23:28
eyeseetee11-May-08 23:28 
QuestionRemove additional rows from data table. Pin
rahul.net1111-May-08 22:48
rahul.net1111-May-08 22:48 
AnswerRe: Remove additional rows from data table. Pin
Christian Graus11-May-08 23:13
protectorChristian Graus11-May-08 23:13 
GeneralRe: Remove additional rows from data table. Pin
rahul.net1111-May-08 23:32
rahul.net1111-May-08 23:32 
GeneralRe: Remove additional rows from data table. Pin
Christian Graus11-May-08 23:45
protectorChristian Graus11-May-08 23:45 
GeneralRe: Remove additional rows from data table. Pin
rahul.net1112-May-08 0:02
rahul.net1112-May-08 0:02 
AnswerRe: Remove additional rows from data table. Pin
Eytukan11-May-08 23:19
Eytukan11-May-08 23:19 
QuestionRe: Remove additional rows from data table. Pin
rahul.net1111-May-08 23:29
rahul.net1111-May-08 23:29 
AnswerRe: Remove additional rows from data table. Pin
Christian Graus11-May-08 23:58
protectorChristian Graus11-May-08 23:58 
GeneralRe: Remove additional rows from data table. Pin
rahul.net1112-May-08 0:06
rahul.net1112-May-08 0:06 
GeneralRe: Remove additional rows from data table. Pin
Christian Graus12-May-08 0:07
protectorChristian Graus12-May-08 0:07 
GeneralRe: Remove additional rows from data table. Pin
rahul.net1112-May-08 0:21
rahul.net1112-May-08 0:21 
GeneralRe: Remove additional rows from data table. Pin
Christian Graus12-May-08 11:58
protectorChristian Graus12-May-08 11:58 
Questionusing google search Pin
eyeseetee11-May-08 22:00
eyeseetee11-May-08 22:00 
AnswerRe: using google search Pin
Christian Graus11-May-08 22:10
protectorChristian Graus11-May-08 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.