jimib 0 Newbie Poster

would be nice if you shared how you got it working with those of us who have not.

jimib 0 Newbie Poster

Here's the code I use to show an swf file that's located inside my project (in the directory SWF. It works fine. However, SWF files are huge and I would like to keep them in an external directory. I put some in my development server (C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\SWF) to test. Can anyone help me with the syntax to replace SWF\0001.swf with in order to embed these swf files?

Dim filepath = "<embed src=""" & SWF\0001.swf"" width=700 height=400 /></embed>"

Dim vid As Literal = New Literal
vid.Text = FilePath

Dim divVid As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl("DIV")
divVid.Style.Add("position", "absolute")
divVid.Style.Add("left", "20px")
divVid.Style.Add("top", "20px")
divVid.Style.Add("border-style", "none")
divVid.Style.Add("z-index", "-1")
divVid.Controls.Add(vid)
form1.Controls.Add(divVid)
jimib 0 Newbie Poster

Check this out: http://tutorial.jcwcn.com/Web-Design/ASP-NET/NET/2007-07-03/1921.html You will have to convert your ASP files to ASPX files with aspcompat="True" in the page directive header. Then you will have to fix the errors because you have VB script instead of VB. It's a pain but the debugger will then work. Next, learn ASP.NET before Microsoft decides to change to something else!

jimib 0 Newbie Poster

OK, I solved this myself by making several page headers for the main report that contained conditional data that would be blank and not display except on the proper page.

jimib 0 Newbie Poster

I have a very complex multi-page form I am developing in the Crystal Reports which is included in VS2008.

There is always 1 Page A.
There may be 1 or more page B.
There may be 1 or more Page C.
Page A has 7 subreports and a header from the main table.
Pages B and C hold overflow records that won't fit on Page A.
Page(s) B holds 1 subreport and a header from the main table.
Page(s) C holds 3 subreports and a header from the main table.

My problem is the page header on pages B and C does not print except on the first page B or C and I need it to print at the top of each one. (There could be many) Pages B and C are currently subreports but evidently that doesn't work.

I have to format the report this way, it's a gov't form.
Does anyone know how to get a subreport (which is actually a working report) and which can grow past a single page, to display a page header at the top of each new page?

jimib 0 Newbie Poster

I solved this problem myself.
The answer is:

<input size=50 name=src  value="<%=src%>">

instead of

<input size=50 name=src  value=<%=src%>>
jimib 0 Newbie Poster

Try this:

Dim src As String =  Chr(32) & "bet" & Chr(32)

Not sure if it will solve your problem, but it appears as though it is being trimmed (trim())...

No, really it's a variable, which may or may not contain the leading and trailing spaces. When you assign as the value of a textbox, it is automatically trimmed. I'm looking for some kind of way to override that and leave the blanks in there.

jimib 0 Newbie Poster

could be this is an HTML problem, but I'll take the help anywhere I can find it...

<%
@ Page Language = "VB" aspcompat=true Explicit="True" 
Dim src As String = " bet "
%>

<html>
<head ></head>
<body >

<form name=loc action=testsac.aspx method=get>
<table class=s0 width=100% cellpadding=1 cellspacing=1 align=center border=1>
  <tr class=s0 align=center>
    <td>
    Search For:
    <input class=s0 size=50 name=src  value=<%=src%>>
    <input class=s0 type=submit value=Search />
    <td></td>
  </tr>
</table>
</form>

</body>
</html>

on the screen, "bet" is the search string, but I want " bet "
any ideas?

jimib 0 Newbie Poster
<%@ Page Language = "VB" aspcompat=true Explicit="True"%> 
<%Dim src As String = " bet "%>

<html>
<head ></head>
<body >

<form name=loc action=testsac.aspx method=get>
<table class=s0 width=100% cellpadding=1 cellspacing=1 align=center border=1>
  <tr class=s0 align=center>
    <td>
    Search For:
    <input class=s0 size=50 name=src  value=<%=src%>>
    <input class=s0 type=submit value=Search />
    <td></td>
  </tr>
</table>
</form>

</body>
</html>

on the screen, "bet" is the search string, but I want " bet "
any ideas?

jimib 0 Newbie Poster

Hi I've a web application in ASP. I'm planning to develope the future pages in ASP.Net. Is there any way to use the same old ASP pages (without converting them to .aspx) and built the future pages in ASP.net.

You can use the asp pages side by side with the asp.net pages. The only problem you might run into is sharing session variables. You can also use ASP Compatible mode of ASP.NET with your old ASP pages without a whole lot of conversion (there is some) and gain the benefit of the ASP.NET debugger. Good Luck!

jimib 0 Newbie Poster

I have a text box that I use as part of a search function.
Whenever the user searches for "bet" it finds the first string that includes "bet", as in "abet". That's OK. When the user searches for " bet " it finds the first instance of " bet ". Still OK. Now, I have a "Next" button that searces for the next instance. It works, but the blanks in " bet " are gone and it finds "abet". What is happening is that the next button is an href that has as a parameter the contents of the search string " bet ", but when I request it, I get "bet". Does anyone have any idea how to override this behavior?

jimib 0 Newbie Poster

I need to write to a textfile and name it with an extension other than ".txt" (an archive file) . For example: myfile.123
I can't seem to get around the file system object adding ".txt" so my filename becomes myfile_123.txt
Do I need to write it another way or is there some way to do this with fso, which I'm comfortable with?
My (nonworking) code:

Conn = fs.OpenTextFile("c:/inetpub/wwwroot/app/files/f.123", 2, True)
for each obj in s 
  Conn.WriteLine( obj & "'" )
next obj
Conn.Close()
jimib 0 Newbie Poster
fs = CreateObject("Scripting.FileSystemObject")
  mfile = "nameit"
  outdir = "c:/dir/" 
  mstring = outdir & mfile 
  Conn = fs.OpenTextFile(mstring, 2, True)
  Conn.WriteLine( "mytextline1" )
  Conn.WriteLine( "mytextline2" )
  Conn.Close()
  Conn = Nothing
  fs = Nothing
jimib 0 Newbie Poster

<%@ Page Language = "VB" aspcompat=true Explicit="True" %>
<!-- #INCLUDE file="utils.aspx" -->

<%
Your vbs script here
%>

jimib 0 Newbie Poster

P.S.
Childdatasource.SelectCommand = "Select * From child where id_parent="+ ParentGridView.Rows(0).Cells (1).Text
has to be placed in the page load event as well for initial functionality...

jimib 0 Newbie Poster

I solved my own problem, like this in case it will help another beginner:

Protected Sub ParentGridView_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles ParentGridView.PageIndexChanging
ParentGridView.PageIndex = e.NewPageIndex
ParentGridView.DataBind()
Childdatasource.SelectCommand = "Select * From child where id_parent="+ ParentGridView.Rows(0).Cells (1).Text
End Sub

where

ParentGridView.Rows(0).Cells (1).Text is the index field of the parent grid

jimib 0 Newbie Poster

If rsArticles.EOF = True

jimib 0 Newbie Poster

I am new to asp.net though not to asp. I want to display two gridboxes, the first with master records and the second with child records linked to the master table id. The idea is to change the child records when the parent record is selected, or ideally, when the page index is changed. Is there any way to do this without a complicated song and dance? I am not using MS SQL Server, but MySQL, so it is not possible to specify a parameter in the Data Source configuration dialog.

jimib 0 Newbie Poster

I am trying to do something similar, so I may have as many questions as answers. Try something like WHERE (bd_id = OneUserID) where OneUserID is a legitamite user id and see if the problem is really your userid parameter, or maybe something else.

jimib 0 Newbie Poster

How is the user logged in? If you are using the asp.net login control you can refer to his user id as user.identity.name
hope it helps

jimib 0 Newbie Poster

I was able to solve this problem by using a system DSN that i added in ODBC (Start->Contol Panel->Administrative tools->ODBC->System DSN->Add) The rest is pretty straitforward: Choose type, enter databasename,username,password,ect. Then, in the configure data source wizard, choose "one user or system datasource name" from the dropdown menu. Hope I helped someone with the same problem i had and thanks to all of you who replied.

jimib 0 Newbie Poster

I will look into that. I am new to both asp.net and postgresql so I have double trouble. Good thing I only have four projects!

jimib 0 Newbie Poster

I am attempting to configure a datasource in an AJAX web page from an existing postgreSQL database that resides on our server. I have done this many times with MySQL, no problem. When I finish the configuration for the PostgreSQL Database in the "Add Connection" wizard of Visual studio 2008, the "Test Connection" is Successful, but there are no tables in the server explorer icon that appears. Can anyone there shed some light on this mystery? I have been stuck for two days and will be eternally grateful...