|
You've posted this in more than one forum, haven't you ?
The session is really your only hope for what you want to do, that's why it's a bad idea. What specifically are you trying to achieve ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Actually first i wrongly posted in c# board, later i realise and post the same in asp.net...
This is not intentionally done..
G. Satish
|
|
|
|
|
Have you considered using Delegates?
I will use Google before asking dumb questions
|
|
|
|
|
This is an ASP.NET question, he's just posted it in the wrong place.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
you can use session or application object for that purpose
|
|
|
|
|
The Application object is a dangerous thing to use here.
Cheers,
Vikram.
Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically.
Harris' addendum: I think you meant "monotonously".
Martin's second addendum: Jeffersonian... I think that should at least get a mention.
|
|
|
|
|
|
Load XML File using DataSet
DataSet ds=new DataSet();
ds.ReadXML("XMLfileName");
Best Regards,
Chetan Patel
|
|
|
|
|
Hi all,
Can any one suggest me how to call a web user control in my HTML page. Both the web user control and the html pages are in the same folder. I tried by registering it, but the register tag does not executed, it's simply printed in the HTML page. How to ake it work.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
What sort of web user control are you talking about ? If ASP.NET, that would explain the post in the C# forum ( but it's still off topic ), but certainly, your ASP.NET control will only work in an aspx or ascx file. Perhaps you need to do some basic reading on how ASP.NET works, and what it is.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
You are not clear about the Web Development tool.
When the extension of the page is .html the ASP.Net Compiler just pass it to IIS so it print the control register stirng on page.
You must have to use .aspx page to include .net user controls.
Best Regards,
Chetan Patel
|
|
|
|
|
HI,
I have two generic collections.
One is populated with data and the other is empty.
How do I copy the data from the first one to the empty one please?
Thanks
|
|
|
|
|
I think there's an addrange method that takes a collection.
Christian Graus - Microsoft MVP - C++
"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,
Kindly help me, and let me know that, how may I call button_click event from another form? situation is that, both forms are opened.
Thank you in advance
(Riaz)
|
|
|
|
|
Why you are trying to do that ? You need to use delegates for communication between forms. Calling a button_click event from another form is not a good idea.
|
|
|
|
|
Adding to what Navaneeth said ( and he's 100% right ), if you have code that runs in a button click and needs to run at other times, you should factor it out into a method which can be called from the click, and via a delegate.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
The answers above are the correct way of doing it. A different 'quick' way is pass either the class containing the button_click method or the button istelf to the other form (in the constructor).
If using the first, make sure the button_click method is public and you'll be able to call it from your second form (you can use this, EventArgs.Empty for the parameters).
If using the second, simply call the button's PerformClick method.
If possible, use the other suggestions above though as they are a better way.
Dave
|
|
|
|
|
Hi!
Iam having data in dataset now i want to print that data in formatted design means with heading and some design.
kirankumar
|
|
|
|
|
What have you tried ? Are you displaying the data on a form, or just printing it ? What did google tell you ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
just iwant to see Preview and print.
kirankumar
|
|
|
|
|
Fine, but as Christian said, what format? What have you done?
|
|
|
|
|
I fill in datagridview and printed the datagridview it working fine but i have 100rows then it was not printing it is taking only one page for printing and i want to give heading for that page and some styles.
kirankumar
|
|
|
|
|
Hi
string[] s = System.IO.Directory.GetFiles(Server.MapPath("slide"));
here i am getting all the files in slide folder . but i want only the image files. i am having all types of image files in that folder (.bmp,gif,jpg) . how to get only the image files
|
|
|
|
|
md_azy wrote: (.bmp,gif,jpg)
Those ARE all image files. :P
You're going to have to iterate over the files and make a list of just files with image extensions.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|