|
first time i am able to invisible a check box
after click another control i have to visible that check box
it giving error
can u help me
thanks
|
|
|
|
|
Whats the error?
We are not a Code Charity
|
|
|
|
|
document.getElementById(" ").style.visibility="hidden"
For Simple Question Why Don't You Try Googling.
|
|
|
|
|
It would help if you posted some code, so we could see where your problem is.
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 )
|
|
|
|
|
If it was made invisible in the server side code, you cant with javascript, but if it was made invisible with javascript or defaulted that way in the html i belive you can with either
document.getElementById("controlName").style.display ="block";(makes visible) or document.getElementById("controlName").style.display ="none";(makes invisible. on some controls there is actually a visible property that can be set to true or false, but i dont think thats supported by all browsers. style.display seems to be the most compatible way to do it.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
|
|
Hi, I am new to programming. I am Using Visual Web Developer 2005. After i exported the Internal Search Engine, SearchDotNetXml file, it says after conversion
SearchDotnetXML.vbproj:(Error List)
Conversion Issues - SearchDotnetXML.vbproj:(Error List):
ERROR: The following files were not migrated because they were not found in the project file or the associated 'BuildAction' is set to 'None'. You may need to exclude these files from the project after the conversion process in order to compile your web site: File List == sites\post.aspx.
So what do i have to do with post.aspx page?
and it says the Build action is set to None. If i have to change please giude me how do i do it?
Looking forward for your replies
Thank You
|
|
|
|
|
iam using a check box in a grid view which is a html control how i can get the checked box is checked or not usign code behind
|
|
|
|
|
try the following:
protected void OnRowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((CheckBox)e.Row.FindControl("chk")).Checked = true;
{
}
}
}
We are not a Code Charity
|
|
|
|
|
thanks for ur immediate reply ...but i want to test whether the check box is checked or not in the button clicked....wil;l it possible
|
|
|
|
|
You just need to call the correct control and row on the button click instead
We are not a Code Charity
|
|
|
|
|
hi,
in my project i want to include an html page in an aspx page. i want to call the page dynamically. how can i achieve it without using frames.
|
|
|
|
|
How do you mean you want to call it, do you mean embed it in your current page?
We are not a Code Charity
|
|
|
|
|
|
Surly this is just a link to another page then, as per normal?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I have no idea what this person is trying to achieve, I asked him to explain and he just re-posts almost the same question.
Never mind
We are not a Code Charity
|
|
|
|
|
Dear All,
I have an grid and in that a cell has a button and by clicking on it it has to show a modal popup.
While binding the data in the grid I iterated the rows and took the butotn control and assigned an event handler in which I have written the code to show the modal popup.
But it is giving the error related to event violation.
But for link buttons it is working fine.
Can any one help in this regard?
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
|
hi
u can do the Regex checking in javascript it self...i think that will be easy for u ..
regards
joe
|
|
|
|
|
thanks for ur response.
i am filling the other textbox's by fetching data from database and then filling on this perticular textchanged event.
so in javascript i cant do all this.so any other suggestion please.if u have some examle let me know
kissy
|
|
|
|
|
Hi,
I have used frames in my page i wanna dynamically load frame
For this i used this code in code behind
<br />
Dim fram As New System.Web.UI.HtmlControls.HtmlForm<br />
<br />
fram = CType(Me.FindControl("lower_frame"), HtmlControl)<br />
<br />
Dim src As String<br />
src = "left frame.aspx"<br />
<br />
With fram<br />
.Attributes("src") = src<br />
.Attributes("width") = "100%"<br />
.Attributes("height") = "328px"<br />
End With<br />
<br />
It gives error that
Object reference not set to an instance of an object.
Thanks with anticaption
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
I noticed that you are trying to assign frame control in Form control.
Dim fram As New System.Web.UI.HtmlControls.HtmlForm
fram = CType(Me.FindControl("lower_frame"), HtmlControl)
(1) You can use by make it as runat server
or
try this:
Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl)
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
Thanks 4 ur quick response
I have made it runat="server"
n used this
Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl)
but still facing the same problem....
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|