|
I think protected Xml detailsXml; has to be public.
|
|
|
|
|
I'm a little perplexed with what would be a fairly simple linkage issue with C++.
When you create a new custom server control for an ASP.Net page and want to use it you must specify an Assembly location in the "Register" statement. MSDN says to compile it and place it in a Bin directory in the project path. I've done that but cannot get the page to recognize the existence of the assembly. So, where does it go in order for the page to find it? I'm fairly certain that I have something configured incorrectly in my development environment, but can't seem to locate the problem.
i.e.
<%@ Register TagPrefix="MyControl" Namespace="CustomControls" Assembly="Control1"%>
Where does "Control1" go?
"There's a slew of slip 'twixt cup and lip"
|
|
|
|
|
It is supposed to go in the /bin directory. Is Control1 the name of the dll? (Control1.dll)?
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Did you figure out a solution to your problem? I'm having the same problem.
Todd Smith
|
|
|
|
|
I had my control in a subdirectory of the web root
\webroot\test\bin\mycontrol.dll
\webroot\test\mycontrol.aspx
That gave me the following error
File or assembly name MyControl, or one of its dependencies, was not found.
To fix it all I had to do was move the \bin dir to the root
\webroot\bin\mycontrol.dll
\webroot\test\mycontrol.aspx
and it worked!
Todd Smith
|
|
|
|
|
My problem was basically the same thing - it was not in the directory I thought it was in.
"There's a slew of slip 'twixt cup and lip"
|
|
|
|
|
I know, I know this is not a place to ask about CGI.. but maybe someone can clarify to poor Microsoft's technologies programmer.... what is that?
Are there many types of CGI? Perl, PHP, whatever? I just got some web space on Linux machine with CGI support, and have no idea what to do with it
I went to sites with free CGI scripts and uploaded some (they said it is Perl, but the file extention is PHP), but it is not working, just displaying me all source of the file
So what sgould I do with this scripts??
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Usually to use CGI scripts you need to upload them into a folder designated by your ISP, usually something like : /cgi-bin/, you may also need to check that the scripts have executable rights ( based on server type at the ISP end of things ).
The type of scripts you refer to are basically just different languages ( like ASP or JSP ). The script could also just be an executable file written in c++, VB or whatever ( check the server type before trying to run these though ).
|
|
|
|
|
Oh, thanx... well, I played some, and I should say.... it is sucks, lol. Old CGI scripts on Perl are only supported, without any database.... I really have nothing to do with it Need at least a database to do something.
I downloaded some scripts and installed them. Imaging a message board without a database, lol. All things stored in text files, which are parsed in script, uh uh uh. Along with passwords for editing messages, LMAO.
Well, one more time the statement "Free cheese could be only in a mousetrap" confirmed, lol
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
plain jane text files are fine in some circumstances.
Storing user's preferences I think would be acceptable.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
|
Hello all,
I am trying to put a calendar control in an html page and then allow the user to select a date and then when he submits the form I want to pass the selected date to my ASP script.
I inserted the control using Visual Studiu 7 and it gave me this code :-
<OBJECT name="Calendar1" id="Calendar1" classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" >
<PARAM NAME="_Version" VALUE="524288">
<PARAM NAME="_ExtentX" VALUE="7620">
<PARAM NAME="_ExtentY" VALUE="5080">
<PARAM NAME="_StockProps" VALUE="1">
<PARAM NAME="BackColor" VALUE="-2147483633">
<PARAM NAME="Year" VALUE="2002">
<PARAM NAME="Month" VALUE="3">
<PARAM NAME="Day" VALUE="31">
<PARAM NAME="DayLength" VALUE="1">
<PARAM NAME="MonthLength" VALUE="1">
<PARAM NAME="DayFontColor" VALUE="0">
<PARAM NAME="FirstDay" VALUE="7">
<PARAM NAME="GridCellEffect" VALUE="1">
<PARAM NAME="GridFontColor" VALUE="10485760">
<PARAM NAME="GridLinesColor" VALUE="-2147483632">
<PARAM NAME="ShowDateSelectors" VALUE="-1">
<PARAM NAME="ShowDays" VALUE="-1">
<PARAM NAME="ShowHorizontalGrid" VALUE="-1">
<PARAM NAME="ShowTitle" VALUE="-1">
<PARAM NAME="ShowVerticalGrid" VALUE="-1">
<PARAM NAME="TitleFontColor" VALUE="10485760">
<PARAM NAME="ValueIsNull" VALUE="0">
</OBJECT>
Now how do I pass it to my ASP.
I tried get and post and nothing works
I tried this from a button's javascript handler and it gave me errors. The error was "Invalid Callee" :-
<script language="javascript">
function abc()
{
alert(Calendar1.Year);
}
</script>
Can someone give me some pointers please?
Nish
Has anyone seen my sig?
|
|
|
|
|
Nish,
I don't know if I got this right, but insert this after </object>:
<script language="vbscript">
Sub ShowYear()
MsgBox Calendar1.Year
End Sub
</script>
<input type="button" onClick="ShowYear()" value="Show Year">
HTH
Wanderley
|
|
|
|
|
Hi folks..
I right now use a Microsoft Access Database and store some pics along with data in one table.Now if i ahve to pull up the entire thing on my client side including the picture what do i do..
1). Help needed in coding and existing examples using it could be nice..
2). Now database stores everything as a package and there is no info on the file.So do i have to relocate the picture files when i access them in the client side.I mean what exaclty should i care about regd the pic files when i
develop my application..
Thanks..
PraDS
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
|
Have anyone used the Script Encoder? I didn't find any info which IIS supports it and other requirements. But looks like very useful thingy (for server-side scripts, not client-side).
So if someone knows what are requirements, please respond
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
I am looking for a way to generate a Web Form From the Server Side Code. Actually, I have a database having a table of LAnguages. I may change the languages so I put them into DB. Now I want to make a Form based on the entries of those languages (resides in DB). I am surprised that how can I do that
Thanks in prior if you help me and thanks for those too who are not helping
Sameers
|
|
|
|
|
I promise I will never play with Access again...
Well, I was bored and started playing with MS Access 2000, created a, came to Tools->Security->User-Level Security Wizard.... Don't laugh, lol.
It created an MDW file, then I did nothing else. I looked and told to myself that I don't need it, and deleted the MDW file. Then I tried to access the database from ASP with DSN. It didn't worked Said "Unspecified Error" on the line where I'm openning connection.
I deleted the mdb file and brought it back from backup... Still same error. I deleted and created DSN, granted rights to Users group and imported all tables to a new database (like Microsoft says), restarted computer and kicked it twice (incluing monitor). But nothing helps
All other mdb files are working good, but this one... not
What to do?? Please help me.......
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
Try exporting the data into a new MDB, or create a new MDB and import the data.
|
|
|
|
|
Did it too, this what Microsoft recommends, didn't worked
Oh and I found something interesting also, if I'm accessing the database using Jet4.0 connection string, it is ok, but not from DSN
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
|
Oh well, thank you, the link helped
You can kill me, but the prob was very simple. It changed the permissions of the file, removing Internet Guest Account from any access rights and I have Win2000, so it is serious, lol. I didn't even thought it will do such awful action, lol
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
I made a forum that displays messages within the PRE tag so the message structure would be displayed properly.
The only problem is that the message exceeds the table width because of it.
Is there any way to fix it?
Any alternative way that doesn't involve writing tedious functions?
Isaac Sasson,
Small time programmer - complainer at large.
Sonork ID 100.13704
|
|
|
|
|
Hmm, why you need to use PRE tag at all? The message text will be displayed correctly in any case, just replace all Carriage returns with BR tag, that's all. For VBScript:
strMessage = Replace(strMessage, vbCrLf, "<BR>")
Philip Patrick
Web-site: www.saintopatrick.com
"Two beer or not two beer?" Shakesbeer
Need ASP hosting? Check out 123HostNow.com
|
|
|
|
|
Philip Patrick wrote:
strMessage = Replace(strMessage, vbCrLf, "<BR>")
May not work if someone accesses the page using Unix/Linux. Because then we don't get a \r\n, just a \n which won't match the vbcrlf whoch is a \r\n. So maybe this can be done :-
strMessage = Replace(strMessage, vbCrLf, "<BR>")
strMessage = Replace(strMessage, chr(13), "<BR>")
Both lines are required. Cause otherwise in normal cases we'd have all the \rs remaining which means ugly black boxes
Nish
Has anyone seen my sig?
|
|
|
|