|
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
GridView1.EditIndex = e.NewEditIndex
fillgrid()
End Sub
hey with above code i am editing one complete row but i need only one particular column in selected row.. can any one help in this
|
|
|
|
|
Set the readonly property to true for the columns that you dont want to let the user edit
Alexei Rodriguez
|
|
|
|
|
Hi
I have the following code:
Button1.Attributes.Add("onmouseover","this.style.backgroundColor='#000000'");
Is it possible to make a div invisible by putting it in the above code, I cant seem to find the correct syntax.
I tried Div1.visible = false but it didnt work
thanks
|
|
|
|
|
this.style.display='none'
then
this.style.display='block' or 'inline' or whatever suits.
|
|
|
|
|
digital man wrote: this.style.display='none'
Do you mean Div1 instead of this ? this refers to the page instance, and it don't have a style property.
|
|
|
|
|
Sorry, indeed: typed it out too quickly for my own good.
|
|
|
|
|
.netman wrote: I tried Div1.visible = false but it didnt work
If Div1 is made to run at server, it should work. Alternatively try setting CSS display:none
|
|
|
|
|
Hi
i tried
Button1.Attributes.Add("onmouseover", "Div1.style.display='none'");
but when i hover over it shows a javascript error saying Div1 is undefined??
Ive got a div 1 in my aspx page and it runs at server
|
|
|
|
|
the other problem I have is that the div are invisble on the page load apart from one of them
when I try and make the other divs visible it shows the error I described in my previous post
|
|
|
|
|
.netman wrote: Button1.Attributes.Add("onmouseover", "Div1.style.display='none'");
Are you trying to hide div on button's mouse over ? Then you may try
Button1.Attributes.Add("onmouseover", "javascript:document.getElementById('div1').style.display = 'none'");
|
|
|
|
|
Ok thanks the code above worked, but how do I unhide a hidden div at the same time, ive tried the folloiwng but it says error object required:
Button1.Attributes.Add("onmouseover", "javascript:document.getElementById('div5').style.display = 'none';javascript:document.getElementById('Div2').style.display = 'inline';");
thanks!
|
|
|
|
|
Ok - You need to put all those in a JS function and call that function from the event. Something like
function ChangeDisplay(){
document.getElementById('div5').style.display = 'none';
document.getElementById('Div2').style.display = 'block';
}
Button1.Attributes.Add("onmouseover", "ChangeDisplay();");
|
|
|
|
|
fixed it, I had the visibility set in the c# so had to disable that
cheers for all the help!
|
|
|
|
|
.netman wrote: cheers for all the help!
Cheers !
|
|
|
|
|
Response.Write("<td><img style="CURSOR: pointer" id="image" onclick="javascript:openPopUp('" & lsimagename & "')' alt="" src="" & lsimagename & "" width="100">")"
and my java function is
function openPopUp(var imgnames)
I am using above code to display a popup window. it not working properly when passing a "lsimagename" as argument, but if i removed the argument it working properly (popup is displaying). when passing the argument popup not displaying. what is the problem
pls kindly help me
thanks in advance
modified on Thursday, May 1, 2008 11:56 PM
<div class="ForumMod">modified on Friday, May 2, 2008 12:00 AM</div>
|
|
|
|
|
I don't know if your code got screwed up when you pasted it into the window, but first of all, it looks like you aren't closing the parenthesis ")" when you call openPopUp. If that is not the problem, maybe you could post what the output looks like when you view the source in the web browser since that will most likely clue us into the problem - the server-side code doesn't tell us anything because we don't know what the end result is.
|
|
|
|
|
Hi
How to Restrict User To Click Back and Next Button on Browser
I dont want user to navigate the pages ..by using next and back button...
How to Do this ..?
A little bit of code or example will be like Bread with Extra cheese
Thank You
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Not possible. I suggest reading a book on what ASP.NET is and what it does. It's an engine for generating HTML. You can do some browser tricks that make it seem like the back button doesn't work, but you can easily side step those, as a user, by using the drop arrow or clicking twice real fast. Instead of trying to stop users from using basic browser functionality, you should fix your design so that it doesn't bother you if they do.
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 )
|
|
|
|
|
Say from Page1 user comes to page2
and if one wants to restrict the user from going back to page1
then within Page1 on the
Body onload event
write "history.go(1)"
which would not let the user come back to page1 from page2.
Hope this work.
|
|
|
|
|
Kartik Rathi wrote: Body onload event
write "history.go(1)"
which would not let the user come back to page1 from page2.
Poor design and less reliable too
|
|
|
|
|
Please tell me how to do it using coding ....
example : i dont want user to run a authuser.aspx unless an until he/she is authenticated user
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
ALT + F4 wrote: i dont want user to run a authuser.aspx unless an until he/she is authenticated user
OK, so now we're talking about your specific problem, instead of an impossible solution.
If you impliment your login properly, this won't happen. The way I do this, is to store a value in the session telling me the user is logged in, and I delete it when they log out. Most people do this, but they miss the next step. I create a base page, which all my secure pages derive from. This base class checks if the user is logged in, and if not, redirects to the login page.
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 all i have a strange issue,my site save cookies when someone visit site and click on a specific button, it was working fine on IE6 and IE7, now it works fine on IE7 but not IE6, dont know what the issue is not exception is raised as well, but still cookie is not saved when i view on cookies folders,is that need some thing with user privilages or anything else dont know what is missing i have checked the privacy settings but still now working in IE6 even i have set on level to accept all cookies
Regards.
Tasleem Arif
|
|
|
|
|
_tasleem wrote: cookie is not saved when i view on cookies folders
Did the Request.Cookies collection in the same website show up your cookies? I believe, session cookies might not appear in the folder. Isn't it?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
can u explain in detail.
this cookie is generated in some system in IE7 and on some systems it is not generated. here is the code of that
HttpCookie aCookie = new HttpCookie("SCID"); <br />
aCookie.Values[strCVal] = strCVal; aCookie.Expires = DateTime.Now.AddMinutes(5); <br />
Response.Cookies.Add(aCookie);<br />
Regards.
Tasleem Arif
|
|
|
|