473,378 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Weird Problem in Asp.Net 2.0 App

Hi all , and lets Get to the point :

To create the Problem i have ,please do this :

info : ASP.net 1.1,

1 - Create a Sub that Contains a code to creat a control Like a dropdown
List and Fill It with dummy Data, Please Note that u need a contaier to
put the control in "Place Holer ....."!

2 -Put this sub in the sub in the page Load event
3 - Now Creat another Sub and code the Script to find the Control u
created By the First Sub and , and use it in a button Named "FindMe" i used
"me.findControl(blablabal.......".and get the Control value and show it where
ever u Like

3 - So Far so good No Errors , NOW Rem the Sub in the Page Load Event , and
put another Button , and use the Sub that Creats the
Control and name it "CreatMe", note that we are not using the sub in the
Load event any More , run the Page Click on Creat Me Button Yepeee No
Prob,the Control is on the Page Nice and neeeet. and I can See it ;ok Now
click on the Find Me Wops Where did it GO "DA**" and an error booooom on the
Page,

So any Idea.whats Going On is it a bug or whats wrong.
Mar 17 '06 #1
1 943
Morad,

I am not sure that I understand you. However because that a page is
stateless, is there no information anymore when there is a post back.

Therefore you have to recreate all data that should be in the page,
including dynamicly created controls etc. This has nothing to do with a bug,
you find this back in all other kinds of behaviour.

I hope this gives an idea.

Cor
"Mr. Morad Jamal" <Mr**********@discussions.microsoft.com> schreef in
bericht news:87**********************************@microsof t.com...
Hi all , and lets Get to the point :

To create the Problem i have ,please do this :

info : ASP.net 1.1,

1 - Create a Sub that Contains a code to creat a control Like a dropdown
List and Fill It with dummy Data, Please Note that u need a contaier to
put the control in "Place Holer ....."!

2 -Put this sub in the sub in the page Load event
3 - Now Creat another Sub and code the Script to find the Control u
created By the First Sub and , and use it in a button Named "FindMe" i
used
"me.findControl(blablabal.......".and get the Control value and show it
where
ever u Like

3 - So Far so good No Errors , NOW Rem the Sub in the Page Load Event ,
and
put another Button , and use the Sub that Creats the
Control and name it "CreatMe", note that we are not using the sub in the
Load event any More , run the Page Click on Creat Me Button Yepeee No
Prob,the Control is on the Page Nice and neeeet. and I can See it ;ok Now
click on the Find Me Wops Where did it GO "DA**" and an error booooom on
the
Page,

So any Idea.whats Going On is it a bug or whats wrong.

Mar 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gabriel Afana | last post by:
I have a simple php script to just send email.....When I first load the script in a browser...it sends 2 emails. Why?? The weird thing is then when I refresh the page, it send only one email...I...
3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
82
by: nobody | last post by:
Howdy, Mike! mikecoxlinux@yahoo.com (Mike Cox) wrote in message news:<3d6111f1.0402271647.c20aea3@posting.google.com>... > I'm a C++ programmer, and have to use lisp because I want to use >...
3
by: aling | last post by:
Execute following T-SQL within Queary Analyzer of SQL Server 2000: ======================================= DECLARE @dTest DATETIME SET @dTest='2001-1-1 1:1:1:991' SELECT @dTest SET...
0
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.