|
well, you've found out for yourself just how nasty code can get when you use goto.
1 - you don't have a label called label1 in this code
2 - I see no reason for you to use a goto here, in any case.
I have never used goto in code, not once. I have also never written code to avoid goto. I have instead avoided some nasty constructs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
goto is unstructured programming. You may need to consider revising your design for better programming constructs instead.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
how to overcome it...?
actually i want to pass my control from catch block to for loop as i mentioned in my code....
|
|
|
|
|
Woudn't a continue to take to the next iteration of the loop accompanied by an if condition to check for statements from the start of the loop to the current label position help you out?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Do you know how I can link scrollbars of two textboxes. What I need to do, is to move the scrollbar of textbox1 when the scrollbar of textbox2 is moved and visa vesa.
|
|
|
|
|
You'd need to check if you can catch a scroll event on a textbox in javascript, then when one scrolls, scroll the other one if it's not at the same scroll pos. You need to check first tho, or you risk creating an endless loop
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi All,
What are the datatypes that can be supported in developing web serivces. Means what datatypes of .net I can use to develop web services.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Anything that can be serialised, including your own structs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
How can I display a Modal Popup window in ASP.Net using vb.net 2005. I had used the code bellow to show a popup window.
ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.showModalDialog('abc.aspx','_blank','height=450px,width=625px,menubar=no');", True)
But this code creates a problem i.e., when i click on a button on the popup window it again displays the same form in another window non modally. And if i open the window non modally i.e., using the code bellow i dont get any errors.
ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.open('abc.aspx','_blank','height=450px,width=625px,menubar=no');", True)
Please Help how to prevent this.
Thanks in advance.
Sekhar
|
|
|
|
|
check the parameter for Window.showModalDialog..
Amit Agarwal
|
|
|
|
|
Hi Friends,
I am using Atlas update panel in which i have my server controls such as text boxes and check boxes. I also have a button inside that update panel.when i click the button all the values are insertecd into the database table.But the thing is i am failing to get the return message in my front end label after the insertion is done..i.e i need to display in the label as "Successfully inserted".I have also written code for it.But it is not working..What might be the problem.Someone help in this regard..
Thanks & Regards,
Balaguru
|
|
|
|
|
Try this:
((Label)UpdatePanel1.FindControl("Label1")).Text ="Successfully inserted";
|
|
|
|
|
hello Friend
I want to search a user in Active Directory relatede to which which Group .
for Example
Group(A,B,C,D)
A-1,2
B-1,23
C-2,3
D-1
users
1
2
3
4
Then I want to Find List of Group NAme which have user1 in Active Directory
It is Possible Please Hlp me.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
hi,
i have used asp.net 2005 with c# language.i need a help. tat i would like to insert text box and dropdownlistbox. textbox for from date and todate.dropdownlist for department values..i have written storedprocedure...so automaticaly in the runtime it takes the parameter textbox... even if i put textbox and dropdownlist as my wish it wont consider the textboxvalue and dropdownvalue as a parameter...
so any one help me to do this...it should not take text box for date and department fields automaticaly.. instead of that how can i place textbox and dropdownlist for parameter...
so based on that only the datas should be shown.....
so pls help me....
k.priya
|
|
|
|
|
Can u write this in egest way what u want
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
what are u saying? i cant get u...
k.priya
|
|
|
|
|
can u explain this in Easy or layman language?
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hello people,
I´ve got a problem.
For example:
A friend of my sent me a mail in 12-01-2008 with a file that got a creation time 12-01-2008.
When I if I do the download of the file today (17-04-2008) and check the creation file. He got the some creation file (17-04-2008).
And That is not correct. He sould show (12-01-2008).
Is there some way to do that without changing the file manually? Beacause that I have...
My idea is creation a watcher for a certain directory or give the some date that the mail of the file has...
The first one is OK but consumes a lot of resources and has a IF... If someone download´s the file to the wrong directory. This thing does work.
The second is very cool but I do not know how to do it...
Can anyone help me?
|
|
|
|
|
No, you can't change how the windows file system works.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a page with two user controls. One of the user controls is an ajax tab manager. When the user clicks a tab, I want to let the other user control know. I'm handling the Tabs_ActiveTabChanged event inside the ajax control, but I can't seem to get to the other user control at all.
From inside the ajax control, I've tried using Parent (up to five levels deep) and still don't see the other user control in intellisense.
What am I doing wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
So, an AJAX postback is occuring, I'd assume in that instance, that your context would only be the one control that you're in, the MS library is going to handle any changes to the tab manager, but not a control that is outside the context set by the ASP.NET AJAX controls you used.
I would always handle communication between user controls by using delegates.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a .APS website that currently communicates with an Oracle DB running on a Sun Solaris database server. Currently, we connect directly to the server for each database request over the internet. Can I use either a .ASP web service or WCF to communicate with that Sun server? Examples are welcome.
Thanks,
Steve
|
|
|
|
|
I bet you just need a correct connectionstring pointing to a properly configured database (server) with valid credentials.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi, I have a web application programmed in visual web developper. I would like to perform some action when the application has gone idle, or if the user stops using it. Could someone please let me know where to find some sort of example to do this?
Thanx in advanced
Yibi
|
|
|
|