Showing posts with label aspx. Show all posts
Showing posts with label aspx. Show all posts

Wednesday, March 28, 2012

Trouble building aspx page in the HTML designer

Hi,

I am building a aspx page. I have noticed that when use <Table><Tr><Td> with
<asp:Checkbox> that the intellisense does not show for <asp:whateverObject> Is there a way to show the intellisense for asp .net objects? If so, how. Or you just can't mix the two. Furthermore, I am building the page through the HTML designer.

Any help will be very much appreciated.

Thanks,

poc1010What HTML Designer are you using? I know that intellisense works with VS.net and maybe WebMatrix. Beyond that I'm not sure.

Jeff
Jeff,

I am using VS.Net. It does work when I only use <asp:Table><asp:TableRow><asp:TableCell> and then use the <asp:any object>. But it does not work when you use <Table><Tr><Td> and then use the <asp:any object>. I am modifying code and do not wish to change the whole page.

I thought there was a way.

Thanks,

poc1010
It should still work. What version of visual studio are you using? What operating system?

Jeff
Jeff,

I am using vs.net 2003 and windows 2000 NT.

poc1010
Which did you install first: visual studio.net or IIS?

Jeff

Trouble compiling HelloWorld with vbc

Hi,
I can't compile anything with vbc, so i am asking for help please.
I have a file helloworld.aspx written in asp.net using vb, here it is:
<script runat="server" language="vb">
'=======================================
====================================
==
'=======================================
====================================
==
' HelloWorld.aspx
'=======================================
====================================
==
'=======================================
====================================
==
' ========================================
=============
' Begin
' ========================================
=============
Private Sub Page_Load()
' Print "Hello World !"
Response.write ("Hello World !")
End Sub
' ========================================
=============
' End
' ========================================
=============
</script>
Then i have a file compilehelloworld.bat, here it is:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc.exe helloworld.aspx
/target:library /out:helloworld.dll /reference:System.dll > comp.log
The file helloworld.aspx works great when i don't compile it, but when
i execute compilehelloworld.bat, here is the result:
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
D:\dev\jct\source\helloworld.aspx(1) : error BC30636: '>' expected.
<script runat="server" language="vb">
~~~~~
D:\dev\jct\source\helloworld.aspx(13) : error BC30001: Statement is
not valid in a namespace.
Private Sub Page_Load()
~~~~~~~~~~~~~~~~~~~~~~~
D:\dev\jct\source\helloworld.aspx(21) : error BC30203: Identifier
expected.
</script>
~
Can anyone tell me what is wrong ? Thanks.You should use "code behind" if you do this. For now you can't compile ASPX
page, they are compiled on the fly and are pre-processed before compilation
(for example <script> is not part of the VB.NET language).
Patrice
"Mister.programmer" <mister.mwa@.laposte.net> a crit dans le message de
news:16785fd2.0502100939.354ae34b@.posting.google.com...
> Hi,
> I can't compile anything with vbc, so i am asking for help please.
> I have a file helloworld.aspx written in asp.net using vb, here it is:
>
> <script runat="server" language="vb">
>
'=======================================
====================================
==
>
'=======================================
====================================
==
> ' HelloWorld.aspx
>
'=======================================
====================================
==
>
'=======================================
====================================
==
>
> ' ========================================
=============
> ' Begin
> ' ========================================
=============
> Private Sub Page_Load()
> ' Print "Hello World !"
> Response.write ("Hello World !")
> End Sub
> ' ========================================
=============
> ' End
> ' ========================================
=============
> </script>
>
> Then i have a file compilehelloworld.bat, here it is:
>
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc.exe helloworld.aspx
> /target:library /out:helloworld.dll /reference:System.dll > comp.log
>
> The file helloworld.aspx works great when i don't compile it, but when
> i execute compilehelloworld.bat, here is the result:
>
> Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322.573
> Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
> D:\dev\jct\source\helloworld.aspx(1) : error BC30636: '>' expected.
> <script runat="server" language="vb">
> ~~~~~
> D:\dev\jct\source\helloworld.aspx(13) : error BC30001: Statement is
> not valid in a namespace.
> Private Sub Page_Load()
> ~~~~~~~~~~~~~~~~~~~~~~~
> D:\dev\jct\source\helloworld.aspx(21) : error BC30203: Identifier
> expected.
> </script>
> ~
>
> Can anyone tell me what is wrong ? Thanks.
Patrice wrote:
> You should use "code behind" if you do this. For now you can't
compile ASPX
> page, they are compiled on the fly and are pre-processed before
compilation
> (for example <script> is not part of the VB.NET language).
> Patrice
>
Thank you for this information. Could you give me the equivalent in
"code behind" for this helloworld.aspx and compilehelloworld.bat ?
Thanks.
Me again: For anyone having the same question and coming to this
thread, here is a good link.
http://www.samspublishing.com/artic...cle.asp?p=25468

Trouble compiling HelloWorld with vbc

Hi,

I can't compile anything with vbc, so i am asking for help please.

I have a file helloworld.aspx written in asp.net using vb, here it is:

<script runat="server" language="vb">
'================================================= ============================
'================================================= ============================
' HelloWorld.aspx
'================================================= ============================
'================================================= ============================

' ================================================== ===
' Begin
' ================================================== ===

Private Sub Page_Load()
' Print "Hello World !"
Response.write ("Hello World !")
End Sub
' ================================================== ===
' End
' ================================================== ===

</script
Then i have a file compilehelloworld.bat, here it is:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc.e xe helloworld.aspx
/target:library /out:helloworld.dll /reference:System.dll > comp.log

The file helloworld.aspx works great when i don't compile it, but when
i execute compilehelloworld.bat, here is the result:

Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

D:\dev\jct\source\helloworld.aspx(1) : error BC30636: '>' expected.

<script runat="server" language="vb">
~~~~~
D:\dev\jct\source\helloworld.aspx(13) : error BC30001: Statement is
not valid in a namespace.

Private Sub Page_Load()
~~~~~~~~~~~~~~~~~~~~~~~
D:\dev\jct\source\helloworld.aspx(21) : error BC30203: Identifier
expected.

</script>
~

Can anyone tell me what is wrong ? Thanks.You should use "code behind" if you do this. For now you can't compile ASPX
page, they are compiled on the fly and are pre-processed before compilation
(for example <script> is not part of the VB.NET language).

Patrice

--

"Mister.programmer" <mister.mwa@.laposte.net> a crit dans le message de
news:16785fd2.0502100939.354ae34b@.posting.google.c om...
> Hi,
> I can't compile anything with vbc, so i am asking for help please.
> I have a file helloworld.aspx written in asp.net using vb, here it is:
>
> <script runat="server" language="vb">
'================================================= ==========================
==
'================================================= ==========================
==
> ' HelloWorld.aspx
'================================================= ==========================
==
'================================================= ==========================
==
>
> ' ================================================== ===
> ' Begin
> ' ================================================== ===
> Private Sub Page_Load()
> ' Print "Hello World !"
> Response.write ("Hello World !")
> End Sub
> ' ================================================== ===
> ' End
> ' ================================================== ===
> </script>
>
> Then i have a file compilehelloworld.bat, here it is:
>
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc.e xe helloworld.aspx
> /target:library /out:helloworld.dll /reference:System.dll > comp.log
>
> The file helloworld.aspx works great when i don't compile it, but when
> i execute compilehelloworld.bat, here is the result:
>
> Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
> for Microsoft (R) .NET Framework version 1.1.4322.573
> Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
> D:\dev\jct\source\helloworld.aspx(1) : error BC30636: '>' expected.
> <script runat="server" language="vb">
> ~~~~~
> D:\dev\jct\source\helloworld.aspx(13) : error BC30001: Statement is
> not valid in a namespace.
> Private Sub Page_Load()
> ~~~~~~~~~~~~~~~~~~~~~~~
> D:\dev\jct\source\helloworld.aspx(21) : error BC30203: Identifier
> expected.
> </script>
> ~
>
> Can anyone tell me what is wrong ? Thanks.
Patrice wrote:
> You should use "code behind" if you do this. For now you can't
compile ASPX
> page, they are compiled on the fly and are pre-processed before
compilation
> (for example <script> is not part of the VB.NET language).
> Patrice

Thank you for this information. Could you give me the equivalent in
"code behind" for this helloworld.aspx and compilehelloworld.bat ?

Thanks.
Me again: For anyone having the same question and coming to this
thread, here is a good link.

http://www.samspublishing.com/artic...cle.asp?p=25468

Trouble deploying changes to aspx

Hi, I hope this is the right place...
Basically, I have read that aspx dlls get cached, so changes do not show up until these cached dlls are dealt with... I have moved the new folders with recompiled dlls in to replace the old. I have tried deleting temporary asp.net folders, I have searched out older versions of the dlls, and restarted IIS. What do I have to do to see the changes?
I would greatly appreciate any help. Please be thorough. I have checked a bunch of different posts and I would like to be sure that I am following the directions correctly.
thanks,
-b.

If you have recompiled the dll's and placed the new version in the bin folder you should see the changes.

You could try this: In IE > Tools> Internet Options>Settings. Now select 'every visit to the page'.
This will gaurantee that the browser is looking for the newest version of the page.
If that doesn't work I don't know what to tell you,
Hope this helped.


You aren't going to be happy with the answer. If you drop the new dll's over the top of your old dll's then the cache is flushed. The next request will use the new dll's.

Monday, March 26, 2012

Trouble displaying Japanese text with aspx

Friends,
I am having trouble displaying Japanese text within a textbox (or
anywhere else) in an aspx page with .net 2.0 framework. Initial
default text in Japanese displays perfectly but when I attempt to
change the text following a button-click event, it displays as junk.
I have tried setting the globalization tag in the web.config file but
that does not help eiter.
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8"
fileEncoding="UTF-8"/>
I should mention that the problem does not happen in my development pc
where I am using the Visual Web Developer 2005 IDE. It happens only
when I deploy the files to the actual IIS webserver on Windows 2000.
Would greatly appreciate any help.
Here's what I have:
1. TestJP.aspx contains:
<%@dotnet.itags.org. Page Language="C#" AutoEventWireup="true"
CodeFile="TestJP.aspx.cs" Inherits="TestJP" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test JP</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtJP" runat="server" Height="101px"
Width="374px">Default Japanese Text</asp:TextBox>
<br />
<asp:Button ID="cmdJP" runat="server" Text="Change Text"
OnClick="cmdJP_Click" />
</div>
</form>
</body>
</html>
2. TestJP.aspx.cs contains:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class TestJP : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void cmdJP_Click(object sender, EventArgs e)
{
txtJP.Text = "New Japanese text";
}
}On May 8, 9:16 am, pardesiya <zenst...@.gmail.com> wrote:
> Friends,
> I am having trouble displaying Japanese text within a textbox (or
> anywhere else) in an aspx page with .net 2.0 framework. Initial
> default text in Japanese displays perfectly but when I attempt to
> change the text following a button-click event, it displays as junk.
> I have tried setting the globalization tag in the web.config file but
> that does not help eiter.
> <globalization requestEncoding="UTF-8" responseEncoding="UTF-8"
> fileEncoding="UTF-8"/>
> I should mention that the problem does not happen in my development pc
> where I am using the Visual Web Developer 2005 IDE. It happens only
> when I deploy the files to the actual IIS webserver on Windows 2000.
> Would greatly appreciate any help.
> Here's what I have:
> 1. TestJP.aspx contains:
> <%@. Page Language="C#" AutoEventWireup="true"
> CodeFile="TestJP.aspx.cs" Inherits="TestJP" %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www
.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" >
> <head runat="server">
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> <title>Test JP</title>
> </head>
> <body>
> <form id="form1" runat="server">
> <div>
> <asp:TextBox ID="txtJP" runat="server" Height="101px"
> Width="374px">Default Japanese Text</asp:TextBox>
> <br />
> <asp:Button ID="cmdJP" runat="server" Text="Change Text"
> OnClick="cmdJP_Click" />
> </div>
> </form>
> </body>
> </html>
> 2. TestJP.aspx.cs contains:
> using System;
> using System.Data;
> using System.Configuration;
> using System.Collections;
> using System.Web;
> using System.Web.Security;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Web.UI.WebControls.WebParts;
> using System.Web.UI.HtmlControls;
> public partial class TestJP : System.Web.UI.Page
> {
> protected void Page_Load(object sender, EventArgs e)
> {
> }
> protected void cmdJP_Click(object sender, EventArgs e)
> {
> txtJP.Text = "New Japanese text";
> }
>
> }- Hide quoted text -
> - Show quoted text -
Go to File - Save .aspx As - point to Save and select Save with
Encoding... What encoding do you use to save the file?
On May 8, 9:30 am, Alexey Smirnov <alexey.smir...@.gmail.com> wrote:
> Go to File - Save .aspx As - point to Save and select Save with
> Encoding... What encoding do you use to save the file... Hide quoted text -
>
Wait... you have to check the encoding for your TestJP.aspx.cs file.
It seems that it saved in a different encoding...
Alexey thanks a lot for your prompt suggestion. That worked!
TestJP.aspx.cs and TestJP.aspx were saved with Shift_JIS. Changed
that to UTF-8 and it works fine!
I have a second question which is related. I query data into a dataset
and display the result in the same text box but it appears junk. Is
there any way I should set the charset of the DataSet? The database is
probably encoded with Unicode.
DataSet dsTables = new DataSet();
dsTables = <code to get data from database>
txtJP.Text = dsTables.Tables[0].Rows[0]["japanese_name"].ToString();
using System.Data.OleDb;
On May 8, 10:32 am, pardesiya <zenst...@.gmail.com> wrote:
> Alexey thanks a lot for your prompt suggestion. That worked!
> TestJP.aspx.cs and TestJP.aspx were saved with Shift_JIS. Changed
> that to UTF-8 and it works fine!
> I have a second question which is related. I query data into a dataset
> and display the result in the same text box but it appears junk. Is
> there any way I should set the charset of the DataSet? The database is
> probably encoded with Unicode.
> DataSet dsTables = new DataSet();
> dsTables = <code to get data from database>
> txtJP.Text = dsTables.Tables[0].Rows[0]["japanese_name"].ToString();
Where data came from? Did you do that from your asp.net application?
It seems that the data encoded in other format...
Try to change encoding of your result page, in IE right click,
Encoding - Shift_JIS (or any other)
Thanks Alexey. Yes, I'm getting the data from asp.net application.
But changing the encoding in IE doesnt seem to help. As you mention
maybe the data is encoded differently. Probably I should post this as
a separate thread.
using System.Data.OleDb;
OleDbConnection OledbConn = new OleDbConnection();
OleDbDataAdapter OledbDataAdap = new OleDbDataAdapter();
DataSet OleDbDS = new DataSet();
OledbConn.ConnectionString = <connection string to Sybase
database>;
OledbConn.Open();
OledbDataAdap.SelectCommand = new OleDbCommand("select
japanese_name from ... ", OledbConn);
OledbDataAdap.Fill(OleDbDS);
OledbConn.Close();
return OleDbDS;
On May 8, 11:06 am, pardesiya <zenst...@.gmail.com> wrote:
> Thanks Alexey. Yes, I'm getting the data from asp.net application.
> But changing the encoding in IE doesnt seem to help. As you mention
> maybe the data is encoded differently. Probably I should post this as
> a separate thread.
> using System.Data.OleDb;
> OleDbConnection OledbConn = new OleDbConnection();
> OleDbDataAdapter OledbDataAdap = new OleDbDataAdapter();
> DataSet OleDbDS = new DataSet();
> OledbConn.ConnectionString = <connection string to Sybase
> database>;
> OledbConn.Open();
> OledbDataAdap.SelectCommand = new OleDbCommand("select
> japanese_name from ... ", OledbConn);
> OledbDataAdap.Fill(OleDbDS);
> OledbConn.Close();
> return OleDbDS;
Sorry, I think I was not clear. I'm interesting in the code which
stored the data in the database. I guess, you have a kind of web form
with fields and submit button which fires the code-behind action. This
form has to be in UTF encoded
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
not sure about a code (want to see it first)
and your database should support that encoding.
Actually, if you browse the database using a shell, do you see the
correct characters? Are you able to insert any data in Japanese (using
a shell) and see that text on the website?
Ok I understand what you mean. Actually I am not sure about how the
data is stored in the database. The people who maintain the database
have some kind of tool or database application to insert the data. I
only try to retrieve some data using an oledb connection in my asp.net
form.
But I am able to browse the database using Microsoft Query and see the
Japanese data correctly. I can even download the correct data into
Excel. I dont have permission to insert data so cannot check that
part.
On May 8, 11:50 am, pardesiya <zenst...@.gmail.com> wrote:
> Ok I understand what you mean. Actually I am not sure about how the
> data is stored in the database. The people who maintain the database
> have some kind of tool or database application to insert the data. I
> only try to retrieve some data using an oledb connection in my asp.net
> form.
> But I am able to browse the database using Microsoft Query and see the
> Japanese data correctly. I can even download the correct data into
> Excel. I dont have permission to insert data so cannot check that
> part.
1. Check the existing output. Maybe it will give you idea about
encoding.
2. Try to encode
System.Text.Encoding en1 = System.Text.Encoding.Unicode;
System.Text.Encoding en2 = System.Text.Encoding.UTF8;
txtJP.Text = en2.GetString(en1.GetBytes(dsTables.Tables[0].Rows[0]
["japanese_name"].ToString()));
or
System.Text.Encoding en1 =
System.Text.Encoding.Encoding.GetEncoding("Shift_JIS"); // or any
other standard JP-encoding
System.Text.Encoding en2 = System.Text.Encoding.UTF8;
txtJP.Text = en2.GetString(en1.GetBytes(dsTables.Tables[0].Rows[0]
["japanese_name"].ToString()));
3. Check code page of your database
4. Contact db-developers :-)

Trouble editing HTML Elements version 0.6

Hi
I just encountered something very weird. I opened an existing aspx fileto make some changes. When I click on an HTML element, such as a textbox, I get the open squares that say it is selected. The Propertieswindow opens up on the right but when I try to make any changes in thatwindow, the open squares become gray squares around the HTML element.Certain properties (e.g. Type) can be changed. Others such as ID cannot be changed. However I can go into the HTML code and make thechanges there. I am using version 0.6 of ASP.NET.
Any ideas on what happened? If it helps, I am working on the Guest Book example in Chapter 10 of Mike Pope's starter book.
Danny Low

version 0.6 of ASP.NET


As far as I know there has never been a ver. 0.6 of Asp.Net. You are either using ver. 1.0, 1.1 or 2.0. Are you perhaps talking about some kind of development tool here, like Visual Studio?

As far as I know there has never been a ver. 0.6 of Asp.Net.
When you ask for version number with Help->About the window thatpops up says version 0.6 build(812). This is what I downloaded from theasp.net download section.
Danny Low

What window is this? Asp.Net is part of the .NET Framework and does not come with an Interface. There are three versions of .NET; 1.0, 1.1 and 2.0. Is it Web Matrix your are referring to??
Yes, it is Web Matrix that I am referring to. All I did was save myaspx file at a convenient stop point and shut down my system for thenight. The next day when I resumed working on the sample program, I noticed the weird behavior of not being able to edit some propertiesof the page elements when in the Design mode. And it is not just theexisting elements but any new elements that I add to the page.
Danny

Saturday, March 24, 2012

trouble with an aspx page

I have developed my first page in aspx, I have done with webmatrix and executing ( f5 ) it works fine but when I try to test using explorer it don´t work.

My SO is w 2000 profesional and I have installed IIS.

thanks in advanceHi,

can you explain more specifically what you mean by "it doesn't work"?
when I open the file .aspx with the explorer I get the next message:

Error in execution

line 3
Error: Expected ';'

it happen openning all the aspx pages with webmatrix they work without trouble.

Thanks for your reply
Can you please show the code in question? Are you using C#? In that case, are you using "line terminator" (;) as it should be used?
How are you opening the page? Are you including localhost (eg http://localhost/test.aspx)?
My code is:


<%@. Page Language="VB" %>
<script runat="server"
Sub Button1_Click(sender As Object, e As EventArgs)
if TextBox1.text = "" then
msgbox("Nooo")
end if
Label1.text = " hola " & TextBox1.text & ". Buenos días, la fecha es: " & Calendar1.selecteddate
TextBox1.text = ""
End Sub

Sub Calendar1_Load(sender As Object, e As EventArgs)
dim hoy
hoy = Now
calendar1.selecteddate = hoy
End Sub

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<!-- Insert content here -->
<table style="WIDTH: 194px; HEIGHT: 170px">
<tbody>
<tr>
<td>
<asp:Label id="Label1" runat="server" width="123px">Label</asp:Label></td>
</tr>
<tr>
<td>
<asp:TextBox id="TextBox1" runat="server">Anto</asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Calendar id="Calendar1" runat="server" Width="232px" BackColor="White" DayNameFormat="FirstLetter" ForeColor="Black" Height="180px" Font-Size="8pt" Font-Names="Verdana" BorderColor="#999999" CellPadding="4" OnLoad="Calendar1_Load">
<TodayDayStyle forecolor="Black" backcolor="#CCCCCC"></TodayDayStyle>
<SelectorStyle backcolor="#CCCCCC"></SelectorStyle>
<NextPrevStyle verticalalign="Bottom"></NextPrevStyle>
<DayHeaderStyle font-size="7pt" font-bold="True" backcolor="#CCCCCC"></DayHeaderStyle>
<SelectedDayStyle font-bold="True" forecolor="White" backcolor="#666666"></SelectedDayStyle>
<TitleStyle font-bold="True" bordercolor="Black" backcolor="#999999"></TitleStyle>
<WeekendDayStyle backcolor="#FFFFCC"></WeekendDayStyle>
<OtherMonthDayStyle forecolor="Gray"></OtherMonthDayStyle>
</asp:Calendar>
</td>
</tr>
<tr>
<td>
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>


I don't think that your code is the issue here (although you can't use msgbox in ASP.NET - it's JavaScript) as it has been working in WebMatrix. In order for the script to be processed you need to type http://localhost/[filename].aspx in the address bar. Are you doing this?
No ,

I open webmatrix
open myfile.aspx
menu wiev F5
I choose the option : Use Asp Webmatrix Server Port 8080 and it works

when the another options it don´t work gives the error .
In your first post you said that it didn't work when you open it in [internet] explorer. I don't know what the options are (in WebMatrix), but it sounds like there isn't really a problem - you need to use Port 8080 to use HTTP.

Thursday, March 22, 2012

Trouble with getting start ?

Hi everyone,

I have a problem with getting my project run. I put everything in my .aspx design but when i click "Start", IE appears with nothing inside and the address in IE is empty ? Anyone helps me pleaseDid you specify your start page?, if not in VS right click and PICK "Set as Start Page"...
I am using Web Matrix, where should i right click ? I didn't see "Set as Start Page" ?
Hi Harmonic,

I've been using .net web matrix for just about a week so i might say something wrong or that doesn't make much sense, but anyway I had your same problem and this is what i do:

I save my files in a folder called "test" which i created in my root folder (wwwroot) of IIS

then i open my browser and navigate to http://localhost/test/nameofthefile.aspx

hope it helps

Trouble with popups

I have a aspx page and I want to do a popup to another page when my page is loaded and when click a button into a data grid. How can I do it ?

I have tried the next but It don`t work.
with a button out of a datagrid it works fine.

miboton is the name of a button in an itemtemplate into a datagrid. The compiler not recognize the name of the control. Why is it in a datagrid??

thanks in advance

Sub Page_Load(sender As Object, e As EventArgs)
openpopup(miboton,"http://www.baanfans.com", "ventana", 200, 300)
end Sub

Sub OpenPopUp(ByVal opener As System.Web.UI.WebControls.WebControl, ByVal PagePath As String, ByVal windowName As String, ByVal width As Integer, ByVal height As Integer)

Dim clientScript As String
Dim windowAttribs As String

windowAttribs = "width=" & width & "px," & _
"height=" & height & "px," & _
"left='+((screen.width -" & width & ") / 2)+'," & _
"top='+ (screen.height - " & height & ") / 2+'"

clientScript = "window.open('" & PagePath & "','" & windowName & "','" & windowAttribs & "');return false;"
opener.Attributes.Add("onclick", clientScript)

End SubMaybe you can take a look atthis control.

Grz, Kris.
Hello, you would like to check this link:Pop Up Window.

Good Luck.
the code that I posted above works fine. The trouble is what I want is to do a pop up when my page is loaded and click a button that it is in an item template. I have any trouble to do the popup with a button alone.

thanks for your reply.
Hello, could u please check this article.Embedding Java Scripts in ASP.NET

Good Luck.