|
Heh, never used all those design-time things. What for? I'm always using Source editor to make pages, thus they are cleaner. But in ASP development I didn't find better tool. I tried Dreamweather (or whatever it called) and it was really sucks, too many unuseful features with less usefull. And had a headache to setup it so I can view my ASP files, lol
So still using Interdev for ASP development. If I need to make a quick layout - so FrontPage makes it easy
Maybe you can tell me some good tool for ASP development? I would like to test some, maybe I'll find better
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
I haven't tried any .asp yet. This stuff is straight HTML. Nice to know there's something that Interdev does well - it sure isn't any good for making simple web pages! I think the program you're referring to is DreamWeaver - I've seen really mixed reviews of it, too. I'm still looking for a tool that actually works, though
|
|
|
|
|
So I think I’ve discovered a bug in the JScript.Net compiler. It has to do with the VBArray object and it’s use in derived class' constructor; specifically when initializing the base class. I’ve taken a brief look into the compilers’ source code, but the problem isn’t just popping out at me, so further exploration into this will be necessary.
The following code demonstrates the bug.
class BaseClass {
private var a_ : Array;
public function BaseClass ( a : Array ) {
this.a_ = a;
}
}
class DerivedClass extends BaseClass {
public function DerivedClass ( a : VBArray ) {
super ( a.toArray () );
}
}
Here's a dump of the error, if anyone's interested. It looks like it got a problem with creating a local variable (why?), but that's just a guess at this point.
***INTERNAL COMPILER ERROR***
Microsoft.Vsa.VsaException: InternalCompilerError (0x80133021): System.ArgumentNullException: Value cannot be null.
Parameter name: local
at System.Reflection.Emit.ILGenerator.Emit(OpCode opcode, LocalBuilder local)
at Microsoft.JScript.Member.TranslateToLateBinding(ILGenerator il, Boolean speculativeEarlyBindingsExist)
at Microsoft.JScript.Binding.TranslateToIL(ILGenerator il, Type rtype, Boolean preSet, Boolean preSetPlusGet, Boolean calledFromDelete)
at Microsoft.JScript.Binding.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.Member.TranslateToILWithDupOfThisOb(ILGenerator il)
at Microsoft.JScript.Binding.TranslateToILCall(ILGenerator il, Type rtype, ASTList argList, Boolean construct, Boolean brackets)
at Microsoft.JScript.Call.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.Class.EmitInitialCalls(ILGenerator il, MethodBase supcons, ParameterInfo[] pars, ASTList argAST, Int32 callerParameterCount)
at Microsoft.JScript.FunctionObject.TranslateToIL(CompilerGlobals compilerGlobals)
at Microsoft.JScript.FunctionDeclaration.TranslateToILInitializer(ILGenerator il)
at Microsoft.JScript.Block.TranslateToILInstanceInitializers(ILGenerator il)
at Microsoft.JScript.Class.TranslateToCOMPlusClass()
at Microsoft.JScript.Class.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.Block.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.ScriptBlock.TranslateToIL(ILGenerator il, Type rtype)
at Microsoft.JScript.ScriptBlock.TranslateToILClass(CompilerGlobals compilerGlobals)
at Microsoft.JScript.VsaStaticCode.TranslateToIL()
at Microsoft.JScript.Vsa.VsaEngine.DoCompile()
at Microsoft.Vsa.BaseVsaEngine.Compile()
cheers,
-Ben
|
|
|
|
|
you ever figure this one out?
|
|
|
|
|
No, I never really looked into it any further.
Regards,
-B
"[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]
|
|
|
|
|
Friends,
I'm writing an Web Image Viewer so that our Clients can view their stuff from anywhere.
However, once the correct image has been selected, I've got a frames set-up with the image in one frame and a toolbar in the lower one, with Rotate, Invert etc commands to manipulate the Image. (all done using an ISAPI Extension). They all work OK up to a point.
If, for example, I rotate the Image by 180 (hard coded) degrees, an asp page is opened, called RotatedImage.asp, that calls the ISAPI extension, which does the processing, and displays the Image rotated. BUT, if I want to get the Image back to where it was, I should be able to hit the Rotate button again and "Hey Presto!". No way! It just stays the same.
I assume that there is a copy of the RotatedImage.asp file being held somewhere in cache and this is what is being displayed. If so, how can I stop this and get a fresh page each time I hit Rotate?
I have tried using:
function OnRotate()
{
parent.main.location.replace("RotatedImage.asp");
}
instead of:
function OnRotate()
{
parent.main.location.href("RotatedImage.asp");
}
but this doesn't work either, although it does improve things.
It seems the only way I can create a new RotatedImage page each time is by usig "window.open("RotatedImage.asp")" but that opens a new Browser window on top of the frame, so no good either.
Any ideas?
Thanks for your patience!
code dope.
|
|
|
|
|
Just a quick thought. Did you set the target correct when you used the open method? What about using the navigate method?
|
|
|
|
|
Mark Nischalke wrote:
Did you set the target correct when you used the open method?
thanks for the reply, Mark.
No, I didn't set a Target when I used the Open() method. How do I do that? The syntax?
As you can see, my knowledge of JavaScript is close to zero - I usually work in C, C++, MFC etc. Suppose I'll have to buy yet another book and learn some!
I appreciate your help anyway.
code dope.
|
|
|
|
|
Search MSDN, online or otherwise. There are plenty of sites out there for help with JavaScript.
|
|
|
|
|
Mark,
Thanks for your help - it's working fine now. I changed the toolbar from using plain buttons, with handlers for on_click, to Forms for each button so that I could use the Target, as you suggested.
I had the knowledge to do that all along but sometimes I just need a push in the right direction. It helps to get ideas from others sometimes.
Thanks again.
code dope.
|
|
|
|
|
hi !!
i have a problem in configuring the asp.net with iis so if any1 having any clue plz respond..
when i install visual studio.net iis onfigures and the explorer opens my aspx page.. but after i install exchange server 2000 the configuration is out.. n the explorer doesnot open the aspx page..
plz tell e wat to do!!
regards
|
|
|
|
|
hi mr devil
u must be having some configuration error . else it is simple as asp 3.0.
check it out
Work Hard and Test your Luck
|
|
|
|
|
You can correct this by changing the settings manually.
1) open Windows Explore
2) Tools->Folder Options->File Types (tab)
3) Scroll down to (and select) ASPX - Web Form
4) Click 'Change...' button (bellow on dailogbox)
5) Select you program
Hopefully that solves you problem
Mike M
WinInsider.com
|
|
|
|
|
I seem to be having a problem with editing datagrid columns. I have defined both ItemTemplate and EditItemTemplate for my Template columns in the datagrid.
The initial display looks good but when entering edit mode... The selected item is changed to textboxes for editing like I expected but items below the one selected are not drawn.
|
|
|
|
|
Found the problem. I was of course populating the DataGrid and the dropdown from a database. It appears that you can't use the same SqlConnection to do both. The datagrid is being populated with the normal items until it hits the item being edited. So when the connection is already open it fails to populate the remaining items.
|
|
|
|
|
I want that,when I open my email one popup windows will appear to advertise for my company.
Can do this with javascript???? please help me!
thanks.
|
|
|
|
|
If you mean to have a javascript popup displayed when you open html email in Outlook or similiar apps, I would say this is not possible, the security settings should block this.
|
|
|
|
|
I've constructed a website using the primitive (to the rest of you) plain vanilla HTML. There are about a dozen pages, all built on a single boilerplate design. The links, except one, act correctly. The one always opens a new browser window instead of replacing the current view! I thought at first that it was due to a nested table on the page, but I've since added another page with a nested table, and it works correctly. Any ideas?
|
|
|
|
|
Have you set the target correctly? Just a quick guess
|
|
|
|
|
On your suggestion I checked. I did once try using a target tag in the menu, and quickly discovered that it doesn't work unless the target is a frame. I tried naming TD, P, DIV, and SPAN elements and targeting them, but none worked. It so happens that on this particular page I had deleted my previous attempts to use target=, but I neglected to remove it from all the others! As a result, the problem page had no errors to find - it was all the others.
Thanks for the tip
|
|
|
|
|
Is it possible to have an asp.net web application that uses windows forms for dialog boxes and settings without requiring the client user to have the .net redistrubutable? Thanks.
|
|
|
|
|
Negative.
David Stone
dstone@newcenturytitle.com
MEEKNESS, n. Uncommon patience in planning a revenge that is worth while.
The Devil's Dictionary, Ambrose Bierce
|
|
|
|
|
I have the following bit of code split up into two part.... each part works
by themselves but when put together the formmail function does not work... I
don't receive any errors... I just never receive the e-mail.... Does anybody
have any ideas? Thanks!!
Janea
<%@ Language=VBScript %>
<%
'***************************************************************************
*****************
'The db will open and query the TBL_USERS table where username equals what
the user entered.
'***************************************************************************
*****************
set conn = server.CreateObject("ADODB.CONNECTION")
conn.Open "DSN=qual;"
USRx = Request.Form ("username")
USRx = Replace(USRx,"'","")
PASx = Request.Form ("ssap")
PASx = Replace(PASx,"'","")
set RSUsers = server.CreateObject ("ADODB.RECORDSET")
SQLxi = "select UID, username, password from TBL_USERS where " _
& "username = '" & USRx & "' and " _
& "password = '" & PASx & "'"
RSUsers.ActiveConnection = conn
RSUsers.open SQLxi
'***************************************************************************
*
'if record already exists, then the oops page is opened to the user.
'***************************************************************************
*
if Not RSUsers.EOF then
Response.Redirect "oops.asp"
'***************************************************************************
*******
'if record is not found then the users info. is inserted into the TBL_USERS
table.
'***************************************************************************
*******
else
FINx = Request.Form ("firstname")
FINx = Replace(FINx,"'","")
LASx = Request.Form ("lastname")
LASx = Replace(LASx,"'","")
JBx = Request.Form ("title")
JBx = Replace(JBx,"'","")
USRx = Request.Form ("username")
USRx = Replace(USRx,"'","")
PASx = Request.Form ("ssap")
PASx = Replace(PASx,"'","")
CONx = Request.Form ("confirm")
CONx= Replace(CONx,"'","")
PHNx = Request.Form ("phone")
PHNx = Replace(PHNx,"'","")
EMLx = Request.Form ("email")
EMLx = Replace(EMLx,"'","")
UNAVx = Request.Form ("usernav")
UNAVx = Replace(UNAVx,"'","")
DATEx = now()
conn.Execute "INSERT into TBL_USERS (firstname, lastname, title, username,
password, " _
& "confirm, phone, email, usernav, createdate) values (" _
& "'" & Request.Form("firstname") & "', " _
& "'" & Request.Form("lastname") & "', " _
& "'" & Request.Form("title") & "', " _
& "'" & Request.Form("username") & "', " _
& "'" & Request.Form("ssap") & "', " _
& "'" & Request.Form("confirm") & "', " _
& "'" & Request.Form("phone") & "', " _
& "'" & Request.Form("email") & "', " _
& "'" & Request.Form("usernav") & "', " _
& "'" & DATEx & "')"
set RSNx = server.CreateObject ("ADODB.RECORDSET")
SQLNx = "SELECT firstname, lastname, username, password, title, phone,
email, createdate from TBL_USERS"
RSNx.Open SQLNx, conn, 2, 2
RSNx.MoveLast
VarFirstName = Request.form("firstname")
VarLastName = Request.form("lastname")
VarUserName = Request.Form("username")
Varssap = Request.Form("ssap")
VarJobtitle = Request.Form("title")
VarPhone = Request.Form("phone")
VarEmail = Request.form("email")
VarDate = now()
'Top Half
----------------------------------------------------------------------------
----------------------------------------------------
'Bottom Half
Set mail = Server.CreateObject("Persits.MailSender")
mail.Host = "mail.studiord.com"
mail.Port = 25
Mail.From = "webmaster@studiord.com"
Mail.FromName = "webmaster@studiord.com"
' Mail.AddAddress "jtaylor@studiord.com"
Mail.AddAddress "{$GM-WEBIMPORT$}","agent@studiord.com"
mail.Subject = "New Contact To Be Added"
mail.Body = "[Instructions]" + chr(13) + _
"[Data]" + chr(13) + _
"Contact=" + request.form("name") + chr(13) + _
"Title=" + request.form("title") + chr(13) + _
"Company=" + request.form("company") + chr(13) + _
"Address1=" + request.form("address1") + chr(13) + _
"Address2=" + request.form("address2") + chr(13) + _
"City=" + request.form("city") + chr(13) + _
"State=" + request.form("state") + chr(13) + _
"zip=" + request.form("zip") + chr(13) + _
"Country=" + request.form("country") + chr(13) + _
"Phone1=" + request.form("phone") + chr(13) + _
"Source=" + request.form("source") + chr(13) + _
"Notes=" + request.form("comment") + chr(13) + _
"USRDUSER=" + request.form("username") + chr(13) + _
"USRDPASS=" + request.form("ssap") + chr(13) + _
"USRDCONF=" + request.form("confirm") + chr(13) + _
"USRDHINT=" + request.form("hint") + chr(13) + _
"USRDCURL=" + request.form("usernav") + chr(13) + _
"[ContSupp]" + chr(13) + _
"ContSupp_rectype=P" + chr(13) + _
"ContSupp_contact=E-mail Address" + chr(13) + _
"ContSupp_contsupref=" + request.form("email")
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description
End If
set mail = nothing
%>
<HTML>
<HEAD>
<TITLE>Confirm menu</TITLE>
</HEAD>
<BODY BGCOLOR="#000000">
<CENTER>
<form action="../html/FRAMES.htm" method="get" target=_top>
<TABLE BORDER=0 CELLPADDING="2" CELLSPACING="2" width="100%" height="100%">
<TR>
<TD align="center" valign="middle" width="100%" class="head"
height="100%">
<TABLE cellpadding="2" cellspacing="2" border="0" width="380"
class="head">
<TR>
<TD align="left" width="380" class="head">
<P></P>
<font face="arial, helvetica" size="2" color="#ffffff"><b>Thank you
for submitting your request to Studio RD.</b>
<BR><BR>
You will be contacted when your application has been
approved.</font><br>
<br>
<input type="submit" value="continue" name="submit"id=button>
<br>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</form>
</CENTER>
</BODY>
</HTML>
|
|
|
|
|
Hi All,
I am using a datagrid on a page to show some data from my sql database.
I just need to know if you can use a regular expression to change a 1 into 'Male'?
If not how would I change something like that.
My SQL database is returning integers and I want to display them nicely.
Thanks,
Gavin
|
|
|
|
|
Use a template column such as:
<br />
public string MyFormat()<br />
{<br />
return MyFormatedString;<br />
}<br />
<br />
<asp:DataGrid ....<br />
<ItemTemplate><br />
<% =MyFormat() %><br />
Should be enough for you to fill in the blanks. Search MSDN for ItemTemplate or look at Dino Esposito's recent three part MSDN Mag series on build a Data Navigator control.
|
|
|
|
|