|
basically as it sounds, whatever support is allowed for that object then you will get that amount of support
|
|
|
|
|
Hi, i have a doubt..
I want to send an object to next page..directly....At there using this object, i want to use its memebers and methods. I need to send objects between aspx pages.
Please help me regarding this...
Thanking you
G. Satish
|
|
|
|
|
Use State Management concept
You can have session variable in which you can store whole object
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
If i put this in Sessions means processing will get down for the applciation if session contain more data.. Rather than sessions, any other alternative for this?
G. Satish
|
|
|
|
|
As you replied you have only 3 variables in the class object i think it is not going to hit the performance. you should not have any proeblem in using session.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Your best bet is, don't. What sort of object do you need to share between pages, and why ?
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 i have a doubt...I didn't any requirement on this.
But my doubt is, suppose i created an object for one class that contains 3 memebers and 2 methods. Suppose, i want to use this object in another aspx page without inheriting the class. How to do this?
Another one, If Suppose i need to send one datatable object to next page,
then how to send this to other pages. If i put this in Sessions means processing will get down.. if session contain more data.. Rather than sessions, any other alternative for this?
G. Satish
|
|
|
|
|
Data objects are easy. Pass an id on the URL and rebuild your object from the database. For the rest, you would need to redesign your app to fit with a disconnected architecture, or use the session.
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 )
|
|
|
|
|
use Session object or Query string
thankx
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
if i put this in Sessions means processing will get down,if session contain more data.. Rather than sessions, any other alternative for this?
G. Satish
|
|
|
|
|
Hi,
I don't think you can send the object of a class and use it in different class. However, you can create an object of the class in each page and use the properties and methods.
Regarding sending the datatable with data to another page, you can do so by creating an instance of DataTable both in th sending and receiving page.
Meeram395
|
|
|
|
|
As you rejected to use sessions
I think you may need to store the object info in a database, save it to the server and load it in the second page
Mohamed Gouda
Egypt
|
|
|
|
|
You can keep object in sessions. It won't slowdown the performance. Alternatively, check this[^] approach where objects are encoded in the URL, but you will end up in nasty URLs.
|
|
|
|
|
Hello,
I have one problem with creating new object of FONT it has no any option to give both bold and italic propertly at a time.
I am waiting for reply.
Best Regards,
Chetan Patel
|
|
|
|
|
Italic and font strength are two different CSS properties. You can also combine them.
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 )
|
|
|
|
|
Sorry,
I am using graphics object to create image from HTML source and thats why i need to pass Font Object with its settings. so the Enumration of FontStyle has both property Bold and Italic but not combine.
Best Regards,
Chetan Patel
|
|
|
|
|
OK, you can | those together. But, if you're creating an image with a graphics object, how does this relate to ASP.NET ?
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 )
|
|
|
|
|
In our site the end user can design his page with DHTML. Once he complete design he save that page as image and this is in .aspx page, once the request arrives the DHTML is Converted into image using graphics object. if you have any idea then help me.
Best Regards,
Chetan Patel
|
|
|
|
|
I have an anchore/bookmark (whatever you name it) like this
<a name="xyz"></a>
I can move to it using a hyperlink like this
<a href="#xyz">goto xyz</a>
But I need to do that on the click event of a button
I used Response.Redirect()but failed
what is the correct method?
Mohamed Gouda
Egypt
|
|
|
|
|
Hi,
Use follwing
Response.Redirect(<url> + "#xyz");
Best Regards,
Chetan Patel
|
|
|
|
|
the + operator gives a compiler error
Mohamed Gouda
Egypt
|
|
|
|
|
you could just put the a href in the c# code behind inside onclick event
sorry the html went all wrong
modified on Tuesday, March 11, 2008 5:02 AM
<div class="ForumMod">modified on Tuesday, March 11, 2008 5:03 AM</div>
|
|
|
|
|
a-+s-+p-+ wrote: you could just put the
put what ??
Mohamed Gouda
Egypt
|
|
|
|
|
Thanks everybody for effort
I got it by trails and errors
Response.Redirect(Request.Path + "#xyz");
Mohamed Gouda
Egypt
|
|
|
|
|
I have give you just syntex, from now onward if someone gives soln then don't put it as it is, apply logic as per your requirement.
Best Regards,
Chetan Patel
|
|
|
|