|
afronaut wrote:
I know the code is pristine but for some reason the Page Load isn't getting fired off in the control.
Thats because it gets fired on the page, not the control
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
I have a web page set up with several different frames. I am using some
JavaScript in an .aspx page to populate a "Tree View" type of appearance. I
have 3 seperate databases with 4 tables in each that I want to display in
the "main" frame (via command buttons in a "bottom" frame). I would like to
be able to select a database in the "Tree View" and then be able to select
one of the 4 tables in a "bottom" frame to populate the main frame. I have
been able to pupulate the main frame with one table, but I do not know how
to let the "bottom" frame know what database to choose from to display one
of the four tables. Any help would be appreciated.
Barry
|
|
|
|
|
to refer to a variable in a different frame you just have to use the:
parent.frames collection.
Each of your frames should have a name that you use to refer to it, eg:
parent.frames["myframe"].myvar
This isn't the exact same thing but it should give you a good idea-
http://www.webreference.com/js/column36/live.html
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
|
Hey all. I have a very simple user control for a phone number. It consists of three textboxes (area code, prefix and number). I want to define a readonly property that returns a string with all three values concatenated. I define the control, I add the following for the property:
<br />
public string PhoneNumber{<br />
get{<br />
return AreaCode.Text + Prefix.Text + Extension.Text;<br />
}<br />
}<br />
But when I tried to refer to it from the CodeBehind page on the ASPX file that I've got it hosted on it doesn't have a reference to the control.
So I just manually declared it in the ASPX file and everything worked fine.
Is there a way to force VS.NET to declare UserControls on the codebehind page when you drag them into the page?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
Can ASP pages run on Redhat Linux 7.1? I don't want to spent money on this. I have a small web page built in ASP. And I'd like to have it run on my linux 7.1 (Redhat) box. Is this possible for 1. And twp can it be down for free with some rpm installation or other package available for linux?
Thanks,
Derek
|
|
|
|
|
There's a couple of options I know of. Unfortunately I think they're all commercial, anyway, first option is ChiliSoft's ChiliAsp. The other is Halcyon Software's iASP (Instant ASP). Both are pretty easy to install (I've used ChiliAsp).
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
If you are using Linux, just use PHP. If you are serious about doing ASP/ASP.NET development, then use Windows.
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
Hi,
Do any of you know of an ad-rotator, that uses a timer? We would like to display banners, that "auto-rotate" as it were, every 20 secs or so, without the page being refreshed. I'm pretty sure it wouldn't take too long to write in Javascript, but was just wondering if one existed already.
Thanks
The following statement about your geekness is true. The previous statement about your geekness is false.
|
|
|
|
|
Helo
Im trying to add the SelectSingleNode funktion supported i MSXML
to Netscape/Mozilla. By implementing a prototyp-funktion that
wraps the Moz corresponding native-implementation.
Has any one done this ore a suggestion on artikels.
The idea is not to loop the XMLdocument finding the corresponding
node to the xpath, but to use the Mozilla xpath funktionality.
|
|
|
|
|
Hello,
When I am executing the ASP script, if the script times out for some reason then I want to trap that error and display the error friendly message to the user. How do I do it?
Thanks
Hitesh
|
|
|
|
|
you must modify the default error page.
look in "Internet Information Services"
in the properties of the site under the tab "Custom Errors"
Casa.Sapo.pt
|
|
|
|
|
Hello,
I have one page on the site which the user can print. Now when the user prints the page, the header and footer of the browser is also displayed. How can I remove this header and footer using the ASP or Javascript code?
Thanks in advance
Hitesh
|
|
|
|
|
Hitu wrote:
How can I remove this header and footer using the ASP or Javascript code?
In Internet Explorer you cannot remove the header and footer using JavaScript or ASP. IE intentionally seperates the browser UI from the HTML document and only selected methods and properties are modifiable, header and footer not being one of them.
I think there is a way to do it via a JavaApplet, but I do not actually know how or where I heard that (and not that I would actually want to use a JavaApplet.)
|
|
|
|
|
Where and how do I see the list of the methods used in ASP. I want to see the whole list. Any link or like that??
|
|
|
|
|
I need to get the server name. I am currently getting it using:
Request.ServerVariables("SERVER_NAME")
Is there a better way to retrieve this using Asp.Net?
Thanks
Jason W.
|
|
|
|
|
|
Thanks that pointed me in the right direction. The following is what I ended up using.
Dim ServerUtility As System.Web.HttpServerUtility
ServerUtility.MachineName
Jason W.
|
|
|
|
|
Sure, that should work, but in the same way as "Request" is a predefined HttpWebRequest, "Server" is a predefined HttpServerUtility. There should never be a reason to define a new one.
Paul
|
|
|
|
|
Hi all
I have a problem with selected items I do this :
foreach (ListItem item in CheckBoxList1.Items)
{
if (item.Selected)
}
I have noticed the IsDirty is allways true for each item. What am I doing wrong?
Thanx in advance
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
I've just tried this out, thinking it must be something simple but I have exactly the same problem.
In addition, if you set it to AutoPostBack and give it a handler for "SelectedIndexChanged" (because that's how the example in MSDN works)then it posts back but doesn't call the event.
Bizarre.
Have you thought about using normal Checkboxes? If you need to bind it, try a DataRepeater. A bit naff but it's the best I've got.
Paul
|
|
|
|
|
Paul Riley wrote:
I've just tried this out, thinking it must be something simple but I have exactly the same problem.
Guess you made the same mistake as me
I found out what I was doing wrong. In my page load event i was creating the checkboxes from an enum, BUT page load gets fired again before button click is handled (something I guess I have to keep in mind all the time). This was my solution:
private bool setup = true;
private void Page_Load(object sender, System.EventArgs e)
{
try
{
setup = (bool) ViewState["setup"];
}
catch (System.NullReferenceException){}
if (setup) SetupPage();
}
private void SetupPage()
{
setup = false;
ViewState["setup"] = setup;
}
Read setup as setup? (Do you want to setup?).... It looks a bit in reverse, but my logic prefers it. Maybe I should call it dosetup?
Hope this is the same problem as you have, else I'm clueless.
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
Hope this is the same problem as you have, else I'm clueless.
Similar. I had it Databound at the bottom of a page I'd already written and this.Databind() (too lazy to databind 8 dropdownlists and a textbox) in the Page_Load.
You have no idea how many times I've fallen into this trap of Page_Load running first. It seems so illogical.
Paul
|
|
|
|
|
Paul Riley wrote:
You have no idea how many times I've fallen into this trap of Page_Load running first. It seems so illogical.
Depends how you look at it, this is probably some nasty remains from ASP, and hopefully in ASP.NET v2, us developer wont have to write a single line of ASP code.
Currently, I'm succeeding in the site I'm doing without writing a single line of ASP code in html , besides the code inserted automatically by the VS designer. I find it is difficult to keep 2 sides in mind all the time.
Cheers
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
Depends how you look at it, this is probably some nasty remains from ASP
Well, ASP didn't have events, so I don't see how it can be. Someone has sat there and considered this and decided that Page_Load should execute every time and always before any event code. That makes no sense. When the button is pressed, the event that relates to that should execute; then the page should be loaded.
leppie wrote:
hopefully in ASP.NET v2, us developer wont have to write a single line of ASP code.
I don't get this. If you don't want to do any processing at the server side then there's no need to use ASP(.NET) at all.
What does your site do that doesn't require much code? I'm currently writing a sign-up site for a tournament (we're expecting upwards of 500 people, some will be bunched into teams of 7 or more, some will need to be able to sign up in small groups, find other small groups and then combine them into a team).
I've been doing a lot of coding for that.
To be fair, I overcomplicated things by doing all database processing in WebServices, so that I can later write programs to do the same thing, but even without that it would be a lot of code.
Paul
|
|
|
|