|
Actually, I had couple of problems.
First thing was, the issue with drop down lists. I had some 5 drop down lists. If i fill a particular drop down list out of 5 the events stopped working. When I commented out the code to fill that one particular drop down. the events worked. that's strange.
And another problem i had was with calender controls. My events wont fire if i have some 4 buttons along with 2 calender controls. I replaced 2 buttons with hyperlinks and events started firing, but then I had some validation controls too on the page and if the Page was invalid, then next time
a SelectionChanged Event on calender is fired, it opens a new window and throws a java script error.
So The Asp.Net Events are killing me.
I will follow your suggestion paul for the drop down lists.
|
|
|
|
|
Okay so here is the status:
The code works if i comment out all the five databindings that i do on that page.I knew the page was working fine with 2 databinds before i added three more.
So first i brought it to the same 2 databinds.And it did not work.
Now when i comment out all the 5 it works.
How more wild can a challenge get..
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Okay after laboring for over 3 hrs i just give up.The maximum number of databinds i can do on a page is 4.if its 4 it works fine.Otherwise it goofs up.I tried it in many different ways.And then again which 4 kind of depends.i had some data mismatches with my database and i had to look at that too.
But this is one weird problem.So i now have a form that does not allow changing of data for 2 columns in one page but it does in other.Boy my users are going to think im 'a nut..
Thank you Paul and Taks..
Pradhip
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
I refuse to let you give up
So what's the pattern? Is there one that always doesn't work or a combination of two that screw things up?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Okay the pattern.
Well first i had 5. what i did was remove all.The page worked.
Then i went ahead and added 4 of them except the one that was causing me trouble and had some possible data mismatches on the DB( This is combineSN).
THEN it started bombing out.So i removed it.Now we are back to 4 working and the page loads and the next page button also works.
Okay then i removed one more thats working just fine(REPAIRTYPE) and instead added this troublesome one the one with the data problems.Then now after that it loaded fine.But the next page button would not fire.
Then what i did was remove the trouble some one(COMBINEsn).Add the old guy(Repairtype) and add one more(Failuretype)..so that makes it 5 and the page did not work.Then i removed failure type and it worked.
So then i goto the next page and add combineSN AND FAILURETYPE AND THEY ALSO WORK FINE IN THE NEXT PAGE.so i have failure type and combinesn grayed out in page one but can be edited in page 2.
So thats that for now.
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Sounds to me like there's a problem with the COM object, returning a DataSet that's not quite right. Strange that they work on another page though. Have you tried stepping through the program and examining these datasets in detail?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul:
The COM OBJECT looks fine.The dataset that its supposed to return is correct.I even verified it with SQL.So it is kind of okay.
pradhip.s
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
If it's not a bug in the COM object, it MUST be a bug in ASP.NET (or possibly in the Interop). You could get really brave and ask Microsoft
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul Riley wrote:
So what's the pattern? Is there one that always doesn't work or a combination of two that screw things up?
So Paul , you wanna find a patter? Come try find out why random tables are adding extra padding in my tables, and why some does "weird" shifting things. Even though the code is the same for almost every item.
Cheers
PS: Did you get my email, Paul (damn Intellisense doesnt work in this textbox) ?
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
So Paul , you wanna find a patter? Come try find out why random tables are adding extra padding in my tables, and why some does "weird" shifting things.
Oh come on! You know the plan. Stick a new thread up with a bit more information and we'll all take a look
leppie wrote:
Did you get my email, Paul ?
Yes, I did. However, I didn't notice it til I read this because it came in the middle of a batch of CodeProject mails and I figured I'd answer them all on the site. Sorry
I will get in touch with my guy but I'm trying to get him to figure out why his site is only sending one of my pages at 100 bytes per sec. Once I get that conversation done with, I'll mention this to him.
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul Riley wrote:
Oh come on! You know the plan. Stick a new thread up with a bit more information and we'll all take a look
This a bit too random..... , but try me[^], although I cant gaurentee it will connect (severe bandwidth problems on this side of the world, damn *nix trojans). 2nd last one from the bottom of the page and the first one on the 2nd page, has that problem. Doing a forum suckx bad as you have to make a 1000 posts yourself to see if it works and you dont even get credit for it! OK, admin rights is cool Please ignore the content and note the "author uptime" at the bottom
Paul Riley wrote:
I will get in touch with my guy but I'm trying to get him to figure out why his site is only sending one of my pages at 100 bytes per sec.
Sounds like the same XP problem I am having, it only allows 2 connections
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
This a bit too random....., but try me
It took me at least ten minutes to even see the problem, I sure as hell can't see what's causing it. Maybe some temporary table borders would help?
leppie wrote:
Please ignore the content and note the "author uptime"
Corrr! That's a long time
leppie wrote:
Sounds like the same XP problem I am having, it only allows 2 connections
Except this is Win 2K Pro accepting 10 connections and there's only about 10 people know it's there (at least 4 of those won't even be looking!) .
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Paul Riley wrote:
Corrr! That's a long time
Maybe you saw it later, but I managed about 33 hours
Paul Riley wrote:
It took me at least ten minutes to even see the problem, I sure as hell can't see what's causing it. Maybe some temporary table borders would help?
Hmm, everything is tables. Maybe it will work. It's not so bad anyways I havent seen it happen again though
Paul Riley wrote:
Except this is Win 2K Pro accepting 10 connections and there's only about 10 people know it's there (at least 4 of those won't even be looking!) .
That should be OK. you can increase to 40 though, but you didnt hear that from me Anyways 10 is better than 2/3 like I have in XP! Meaning when I develop, I need one connection for VS and one for debugging.
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
I forgot to ask...
So what do think so far? The numbering schemes took about 3 days to get it perfect. Didnt realize the post placing would be so difficult, especially when you deal with threads that span longer than the search time (ever noticed that on CP how well the posts are positioned? i wouldnt mind comparing mine to theirs ) . Luckyly the paging fit into my "well-thought-of" scheme so well, it took a whole 5 minutes to implement
Anyway cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Hi Paul:
I tried it the way u said.But still its the same.I created all the datasets on the design time.did the matching of the datasets to the corresponding control in the design page by setting the datasource property.
And all that i really did in the code was get the data from the Dbase and populating the listboxes with them.But still would not work.
Now i shall try commenting out the population one by one and see what happens
Taks and Paul thanks anyows for the help.U folks are great
Pradhip
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Pradhip wrote:
Taks and Paul thanks anyows for the help.U folks are great
Don't thank us til we get a result. In fact I should thank you... I didn't know those FindBy functions existed for DropDownLists until I read your code; that'll be really useful for me.
So tell me... what is that DataAccessService? Is that something of yours or something I can download?
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|
|
Oh that's just a COM object we got to do our dataaccess.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
I had a similar 'problem' recently. I had inadvertently removed the 'onclick' directive on the control. This needs to point at the function/sub that handles the click. I know how you feel - its like the https://sitename:8081/securepage.aspx problem I had - for some reason this won't work. After 4 hours of debug/code change/network sniffing , etc...I finally realized that you cannot specify a port when redirecting to https (by default 443). Stupid cockpit error!!! It's one of those things you can looks at all day and not realize what happened. I hope your problem is the 'onclick'!;)
Cheers, James
|
|
|
|
|
Hi...
Just wanna know it there is a code to give me a dropdown menu list.... like what you will find in "http://www.creative.com". Anyone to help... with any link??
|
|
|
|
|
Try here:
Clickety[^]
Sheesh.. does anyone use Google anymore?
|
|
|
|
|
try www.apycom.com.
these guys ahve some real cool menus and detailed documentation on using them.
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
|
I am wondering which would be beter here..
In the older ASP days I would place any global values that I needed to set into a asp file that would be included at the top of every other page in the system. I could tehn refer to those vars inside the page that they were included in.
I have been playing around with different ways of doign this now that I am getting into the ASP.NET stuff. I notice that I can place variables (and the properties that can get/set them) intothe global.asax file of my site and then refer to them by simply using 'Gloabl.<property_name>'.
Is there any advantage to one way Vs. the other? My thinking is that using the global.asax method might be a bit faster since it does not require a physical file to be read and included as part of the one being displayed. I don't however have any data to back this up.
Being new to the ASP.NET arena I am also wondering how to go about configuring some global functions. I would like to have several functions that would be used at various points int he site and am htinking that the global.asax might be a good way to make them available as well.
While I am on the subject of global things on a web site, what about instances of classes? I was considering creating a class of User that I could us through out the site, but I am at a loss as to where I would creat an instance of it, as well as when I would destroy it. It would be handy to simply create a an instance of it on my login page, then have it worry about user validation to the DB on the backend, returning a property for authenticated or not, but how to I take care of it when the user 'logs off' so to speak.
Thanks for any insight anyone here can provide...
|
|
|
|
|
Ray Cassick wrote:
I was considering creating a class of User that I could us through out the site, but I am at a loss as to where I would creat an instance of it, as well as when I would destroy it.
I was thinking of the same. Although I havent worked with Cookies I think that will be the best option. Then use the variables you stored to recreate a User class for the page on load. Thats sounds like the "logical" way to do it.
Maybe the User instance class can be set as a Session Variable, that could work too I think....So we would retrieve Cookie values at session start make User class, validate with DB , and persist it for the remainder of the session.
I would probably have a look at this over the weekend, so if I find more info I will let you know
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
No idea which would be the faster way of using global values but I'd imagine Global.asax is the least bug-prone (not relying on you to remember to include it). You can also use a module for things like this.
The same applies to functions.
As for user verification, it's worth SERIOUSLY considering Forms Authentication. Takes all the work out of it for you.
This article[^] is quite a complicated example and it's still a lot more simple than coding a cheap and nasty authentication yourself .
There's a nice explanation of Forms Authentication in O'Reilly's Inside ASP.NET if you have access to Safari.
Paul
Life is just a sexually transmitted desease - Matthew Wright (ex-journalist, TV presenter) 10-Oct-02
I finally have a sig! - Paul Riley (part-time deity) 10-Oct-02
|
|
|
|