Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi there, i'm kinda new to ASP.net

 

here the prob, i want to retrieve data from database but inside the table that i create. Normally <script> xtreme </script> i put it on the upper part, but now i want to split it up.

 

[highlight=asp]

<script language=c# runat=server debug=true>

 

void Page_Load (object sender, EventArgs e)

{

*//retrieve data but now the placing takes prob

*

Response.Write("haha"); -> is executed i saw the result

}

 

</script>

 

///////////////////////////

now inside the body..

//////////////////////////

 

<html>

*//i got table create here. i want to put the data that i retrieve inside here

*

<script> Response.Write("haha"); </script> -> got no result at all

 

*

</html>

[/highlight]

if i put <%Response.Write("haha");%> it works!!

 

guys any idea?

Edited by PlausiblyDamp
Posted

Why not use <% %>?

 

if i put <%Response.Write("haha");%> it works!!

 

Why not just use the <% %> tags then? As far as I know they have the same effect.

 

Incidentally, your later <script> tags may not be working since you did not specify the runat and language attributes.

Never trouble another for what you can do for yourself.
Posted

well what do you mean with literal control?

 

Table A

-----------

| | |

-----------

| X | |

-----------

 

here is my problem, suppose i want to show the data from database in X mark position. I create a table then the coding of retrieving data is on the upper part then the result, data will be shown above the table, i try to put the code (split it up) it on the X mark still can not work.

 

oh ya..

<% %> i use it for trapdoor only. ^^

<script> part actually has had complete attributes <- lol

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...