|
Hey there i have been working on a problem for many hours and i got tired. The problem is that on row databound or on row editing the FindControl method returns null for my control which is found in the edit item template. Any help???
|
|
|
|
|
Try this Code
HyperLink txtMember = (HyperLink)(e.Item.FindControl("controlname"));
if still not working, Post your Code
|
|
|
|
|
thanks but i found the solution it is the same as u did but my rpoblem was i used different control id. that was my problem
|
|
|
|
|
Hi All,
I'm trying to get a button which looks exactly the same whether it is enabled or disabled, but whenever I disable the button it seems to ignore any font styles I have set. This seems to be the case in IE but not other browsers.
So does anybody know the CSS to change a disabled button so that the font is not embossed?
Thanks in advance,
Chris
|
|
|
|
|
not sure about css on a disabled button but you could use an image for your button and control it with javascript.
<script>
var disabled = 0;
function myButtonFunction(){
if (disabled = 0) {
disabled = 1;
document.getElementById('myBtn').src = "mydisabledimage.jpg";
//do something here
}
}
</script>
<input type="image" id="myBtn" src="myimage.jpg" onclick="myDisableButtonFunction()" />
|
|
|
|
|
Thanks for the response, Marc. I am trying to avoid going down that route if I possibly can because:
- I am deploying in an old version of SharePoint, and it doesn't play nice with JS
- I need buttons to be resizeable
Anybody have any other thoughts?
Thanks,
Chris
|
|
|
|
|
alternatively you could hide the button using css?
display:none;
visibility:hidden;
|
|
|
|
|
I thought about doing that, but it would kinda mess up how the page looks.
Basically what happens at the moment is that the user clicks a search button, I display the search options/results in a seperate div which is overlayed on top of the rest of the page. When this happens I switch to a darker style sheet to show that the rest of the page is greyed out. If I were to remove (from the users perspective) buttons as well it would look a bit odd.
Thanks,
Chris
|
|
|
|
|
you could always unhide an image of a disabled button in its place
display:inline;
visibility:visible;
|
|
|
|
|
Maybe. Resizing is still a problem though...
|
|
|
|
|
Hi Marc,
I have done something similar to this (see my post below). Thanks for the help!
Chris
|
|
|
|
|
I have now got a solution: I hide the button, and unhide a html button which looks correct that does not cause a postback.
I'm not 100% happy with this (a pure CSS solution would be nicer) so if anybody has any other ways of doing it...
Chris
|
|
|
|
|
Hello, I am trying to find a way to make a page redirect. The idea of the page is that you type qcuil.tk/{search terms here} then it redirects to cuil.com/search?q={search terms here}.
Here is the code:
<html>
<head>
<noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript">
var search()
alert("1");
a=location.replace("http://qcuil.tk/","http://cuil.com/search?q=");
alert("2");
location.href=a;
</script>
</head>
<body onLoad="javascript:search()">
</body>
</html>
this doesn;t work. Anyone have any ideas?
|
|
|
|
|
Hi,
hmmm your code looks bit strange. Try to write your javascript function like this:
function search() {
location.href = location.replace("http://qcuil.tk/","http://cuil.com/search?q=");
}
By the way, Mozilla Firefox offers an error console (can be found under extras) which is pretty good for testing javascripts.
Regards
Sebastian
|
|
|
|
|
hi
to all
how to upload a website from filezila software,please suggest me step by step
rizvan sivally
|
|
|
|
|
The UI is pretty obvious I think, but if you're stuck here[^] is a turorial.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Hi Guys,
I am testing our site for the xss vulnerability.
we have few text boxes, And what ever you fill in this text boxes is saved in the database and then it appears in some other page ( the page generates dynamically ). And When they generates the page dynamically they use htmlencode function to encode the value I have applied on text boxes.
My doubt is, is there any way someone can do xss attack on that.. or is it safe enough ????
|
|
|
|
|
|
Hey thanks for the book. Now onwards i will do the same thing. If Anyone will ask the question about java I will give him the ref to java book , if question is about vc++ give the reference to vc++ book.
Would be helpful if you can answer the question else just leave it.
|
|
|
|
|
The reason I mentioned that book is because it really is the best one I've seen. It has excellent coverage of xss and how to prevent it. Chris Shiflett is possibly the top PHP security guy in the world (as far as I know).
There is far too much on xss to write in post on a forum. Hence, I gave you the link to the book. You will find all the basics in there and it's easy to read. Well worth the money.
You wanted an answer to your question:
No. It may not be safe enough. But all the answers you need are in the aforementioned book.
|
|
|
|
|
You could also see his site "shiflett.org" you might find what you need there.
|
|
|
|
|
hi to all
please suggest me how to upload a new website and also how make any editing in the website when required.
rizvan sivally
|
|
|
|
|
sheemap wrote: please suggest me how to upload a new website a
What do you mean by upload web site? where do you want to upload it ?
|
|
|
|
|
sir i wanted to upload a new website on ftp.
rizvan sivally
|
|
|
|
|
then I suggest using an ftp application like fileZilla[^]
you make the changes on your computer, then upload them
|
|
|
|