|
hello i have a datagird in one page and i want to bind this datagrid from another page, meanwhile i want to access this control in another page.
how can i do it,
any suggestion Plz
-- modified at 4:14 Thursday 16th November, 2006
Dotnet
|
|
|
|
|
Hello,
I am begginner but I think that you can try to use findcontrol method of the page until that an expert will answer you.
Eric H.
|
|
|
|
|
did you success, if yes please post your code
Eric H.
|
|
|
|
|
hi
hope following code helps to u.but tht is findcontrol into MasterPage.master and u can change tht according to ur need..... the controls name r same on both pages.
<br />
System.Web.UI.WebControls.Label lblUsername;<br />
System.Web.UI.WebControls.LinkButton signout;<br />
signout = (System.Web.UI.WebControls.LinkButton)Master.FindControl("signout");<br />
lblUsername = (System.Web.UI.WebControls.Label)Master.FindControl("lblUsername");<br />
<br />
<br />
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
This great, but I need the contrary thing:
I have a textbox control on Page1.aspx and I need to use it from my Master Page.
Is it possible?
Thanx
-- modified at 1:05 Friday 17th November, 2006
Eric H.
|
|
|
|
|
This is the solution
Dim content As ContentPlaceHolder
content = Page.Master.FindControl("ContentPlaceHolder1")
Dim Mytextbox As TextBox
Mytextbox = content.FindControl("TextBox1")
Mytextbox.visible=false 'for example
Eric H.
|
|
|
|
|
I had validation on the client(work only in IE) and sever side(for firefox and Opera).
I m doing the following test:
1) I enter data on the UI and do not fill a request field intentionally so the validator will appear and then click on submit button.
2) I insert in the required field a value and click again on submit button.
In this case I get the called URL webform.
3)I click on internet back button and in only firefox browser and Opera browser, I get that the errormessage validation is still there, the * for required field still appear too. In IE, it is OK.
Someone know this phenomenon.
Thanx
Eric H.
|
|
|
|
|
put your Button code in
if(IsValid)
{
//Your Code (For C#)
}
if(IsValid) then
'Your Code (For VB)
End if
Hope This may help you
Dotnet
|
|
|
|
|
I already done this but the IsValid return true so It doen't help
Thanx
Eric H.
|
|
|
|
|
it will return true then what's the problem, u want to say that ur validation is not working in firfox am i correct then this is the solution as i think. try to do it
it may help u.
if i'm getting u wrong then let me know?
Dotnet
|
|
|
|
|
Sorry, let's me explain again.
When I press on Internet Borwser the Back button (in Firefox and Opera) I get the UI page and the validators are still showing me that there are errors on page, they are still showing me the errormessages but there is no more errors. I would like this page to be "refreshed" when I clicking on back button. In IE there is no problem.
I hope you understand me
-- modified at 8:17 Thursday 16th November, 2006
-- modified at 8:18 Thursday 16th November, 2006
Eric H.
|
|
|
|
|
Hi All,
In My ASP .NET (VB .NET As code behind) Appliacation. I've populated the table and I bind a checkbox in the first column of the grid.
User can select the rows which he/she wants.. I need the checked and uncheked rows seperately..
Can any one please help me in that issue..
Thanks in advance..
|
|
|
|
|
You have to go through DataGrid.Items collection and check manualy if your check box is chcecked or not.
foreach (DataGridItem item in DataGrid.Items)<br />
{<br />
if (((CheckBox)item.Cells[checkBoxColumnIndex].Controls[checkBoxControlIndex]).Checked)<br />
{<br />
}<br />
else<br />
{<br />
}<br />
}
Pilo
|
|
|
|
|
Hi,
I have done a project which is runing fine in the local machine , but after deployement to the website it is showning runtime error in customerror tag of web.config.
In customErrors tag i have written
customErrors mode="RemoteOnly" defaultRedirect="Errorpage.aspx"
Please help me to solve the problem
Thanks & Regards
Mishra
|
|
|
|
|
Please do change in Web.config file
customErrors mode="Off"
Enjoy....
Pavan Pareta
|
|
|
|
|
hi
change ur customeError mode="Off"
After that u can see error of ur application
Pathan
|
|
|
|
|
Hi,
I have done it but still it is showing the same error.
Thanks & Regards
Mishra
|
|
|
|
|
Hi
Do u create virtual directory for ur application from ur domain site?
Also u have to change WebConfig setting there.
Pathan
|
|
|
|
|
hi,
can you please tell me how can i create a virtual directory in my domain site.
Thanks & Regards
Mishra
|
|
|
|
|
Hi Ballita.
go ur domain site there will be many options,choose web directory.there will be folder of Add New virtual directory and preference.
u can change ur webconfig setting from preference
Pathan
|
|
|
|
|
Hi,
Is your error page available in wwwroot folder or insidfe some other folder if yes then use
customErrors mode="RemoteOnly" defaultRedirect="../myfolder/Errorpage.aspx"
If it's won't work I will send u working web.config file
|
|
|
|
|
Hi,
I have insert Total of visitors and Current Number of visitors in my web site.
I would like for the moment to hide from users those numbers but allow only to view those numbers from my computer.
How can I do this?
Thanks
Eric H.
|
|
|
|
|
if you have a ststic IP, its possible. but if not you can not.
this issue could be solved by implementing a loggin scenario
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
I have a static IP, how can I do it?
Thanx
Eric H.
|
|
|
|
|
to get the users IP's, Request.ServerVariables("REMOTE_ADDR").ToString()
then compare it with your IP
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|