|
Have you used PostBackUrl event on page1 to post back from page1 to page2?
Regard
Imran Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
if i use PostBackUrl in page1 then it works fine but if i dont use then it throws the error..............
But if i've to take the value from a textbox given in a User Control then how i will get the value thereof
|
|
|
|
|
.NET- India wrote: if i use PostBackUrl in page1 then it works fine but if i dont use then it throws the error..............
If you don't use that property, then how do you hope to do a cross page postback ?
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 )
|
|
|
|
|
You should set a breakpoint, work out which variable is null, then work out why
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 )
|
|
|
|
|
hai friends
my project is for "Real Estate " bussiness
my comapany has branches in two different cities
project database is maintained by these two branches
now to gather/obtain data from these database
and combine them and next fill in grid view
this is my requirement....
thanks in advance
vijay
|
|
|
|
|
So, your problem is that you need to merge data from two DBs into one grid, or is it just that you don't know how to use SQL or ASP.NET ?
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 vijay.
May i know where studied your 10th class( Is in Port High School at Vizag).
|
|
|
|
|
So, either you are looking for someone to do you college project for you, or you have blagged your way into a job where you have no idea what you are doing.
Either way, it would be better for you to try first and then ask specific questions when things go wrong.
(The alternative is to pay someone to do the work properly)
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
I placed a LinkButton on MasterPage. Made visibility to False.
I wrote a property to set its visibility
public bool Lbtn_Property
{
get{ return Lbtn1.Visible; }
set{ Lbtn1.Visible=value; }
}
----------------------------------
In Page2.aspx
button_Click()
{
Default_Master obj=new Default_Master();
obj.Lbtn_Property=True;
Response.Redirect("Page3.aspx");
}
Its not working.. When page Loads after button click LinkButton is still invisible.
I could able to set property Locally.
But want that property to be static(i.e, Permanent untill we change it again).
So i Made that property as
Publi static bool Lbtn_Property
{
get{}
set{}
}
But it raising compile time exception :An object reference is required for the non static field,method or a property 'Default_Master.Lbtn1'
Please help me,
Thanks in advance.
|
|
|
|
|
You can't make it static, because it's returning a property on a non static object. You can cast the Master property to be of your type of master page and access it's properties. I'd make such a property available via a base class so you can always access it.
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 )
|
|
|
|
|
Thanks for your reply.
But i couldn't understand properly.
Can you please reply me in detail.
Thanks & Regards
sekhar
|
|
|
|
|
You should buy a C# book and read it.
"An object reference is required for the non static field,method or a property 'Default_Master.Lbtn1'"
This means, you cannot have a static property or method that references non static properties. Which is what you are doing.
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 )
|
|
|
|
|
Thnks for your reply.
But it is not what i want to know.
The line which is not clear to me is
"
You can cast the Master property to be of your type of master page and access it's properties. I'd make such a property available via a base class so you can always access it.
"
Thats what i want to know in detail i.e How do we do that.
|
|
|
|
|
Create a new class, derived from the page class. Derive your pages from this class. In this class, add a property that returns your typed MasterPage, and tat converts the page master to be of this type. Then you can access it from the whole project.
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 to add a property in class file
that returns the typed MasterPage.
|
|
|
|
|
By writing actual code, in the manner I described. You just return the build in Master property, cast to your derived master page class.
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 friends
i have three web user control
one is top banner
one is sidelinks
one is center part of the page
if drag drop ,the user control go to top only.
how can i position side and center in the page
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
What do you mean by drag drop ? To position your controls, put them in some css so they go where you want.
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 4 html radio buttons. I want to select only one out of 4 controls. How I have to control this. We can do by giving same group name in asp.net control. What is the option in html radio button like group name of asp.net control. Thanks in advance
Balasubramanian K.
|
|
|
|
|
Exactly the same, actually. ASP.NET just uses those names to generate the names passed to the client. Whever you have a question like this, write an ASPX, run it and look at the html to see what ASP.NET does to get the result you want.
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 )
|
|
|
|
|
Thanks Mr.Christian Graus. But I am not clear. Pls clear me.
Balasubramanian K.
|
|
|
|
|
Perhaps you should buy a book on HTML ?
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 Subra,
What Mr Graus suggested is somewhat like this ...
All ASP.NET control generates HTML control the time ASP.NEN control is rendered into browser. Therefore if you see the HTML generared from your ASP.NET page ..( by right clicking and selecting View Source in browser) you can see HTML code.
If you can write your code for ASN.NET web control, then follow the above process so that you can see what the code would be for HTML controls !!! And now write htnl controls accordingly
(FYI web control checkbox is converted as )
Hope it would be helpful.
Thanks,
Arindam D Tewary
|
|
|
|
|
To all those radio buttons add a property,
name="a"
|
|
|
|
|
Hi ,
I want to use LoginStatus control in master page.
How do i use LoginStaus Control in master page without ' Membership provider' and with out 'Configure Security Using the Website Administration Tool '.
What are the changes to be done on web.config.
i have not used any Login Control for Login. I designed a separate page for Login. 'LoginPage.aspx'.
Thanks in advance.
|
|
|
|