|
.NET- India wrote: As you click on this link it'll hide or show the div. But it's not working in content Page of Master Page
It is shown in normal but not shown in content page because ID of div tag will be change when it render in content page.
Solution : Run page,view source and check what is ID of Div tag and then use that ID instead of "divChangePassword"
I think It Should be ContentPageID_DivID
Regard
kHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
Why would it change ? It's not a server control is 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 )
|
|
|
|
|
Christian Graus wrote: Why would it change ? It's not a server control is it ?
Because he used runat="server" thats why ID would be changed.
see div id="divChangePassword" style="border:solid 1px black; width:400px;top:125px;left:450px;position:absolute;display:block; background-color:#efefef;" runat="server"
please don't forget to vote on the post that helped you.
|
|
|
|
|
I didn't spot that, then you are absolutely correct.
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 )
|
|
|
|
|
Yes the id of the div is being changed it's being "ctl00_ContentPlaceHolder1_divChangePassword"
but still it's not working...........
|
|
|
|
|
Change your code
onclick="showDiv('ctl00_ContentPlaceHolder1_divChangePassword');"
please don't forget to vote on the post that helped you.
|
|
|
|
|
i've done it but still it's throwing the same error
|
|
|
|
|
Why do you have runat="server" ? Can you remove 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 )
|
|
|
|
|
Do you have firefox/firebug ? I'd investigate this by setting a breakpoint in the script and checking the script itself to make sure all the bits are where you expect them
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'll use SqlMembership for all user-related operations. Does it have built-in protection against exploits like sql injection like SqlParameter does? How secure is it? Do I need to worry when I use it and implement my own checks?
|
|
|
|
|
Only way to be sure, is to not use it. I assume it's safe tho.
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 )
|
|
|
|
|
|
Dream on. Best you could do, is to make AJAX calls to a server who can connect. You can't connect to a SQL database that's on the local network, unless the server can see it over the internet ( or the server is running on the same network as the database )
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 )
|
|
|
|
|
Use AJAx
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
hi. in a composite control there is a textbox & a embedded javascript file. i want to access textbox at client side in embedded javascript file as:
var TxtBx = document.getElementById('<%= this.TextBox1.ClientId %>');
but this raises error. can any tell me where am i wrong?
|
|
|
|
|
Try something like this:
var TextBox1 = $get('<%=TextBox1.ClientID%>');
alert(TextBox1.value);
Hope it helps u...
|
|
|
|
|
I doubt this will work if what he posted is not working.
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 )
|
|
|
|
|
Then what is the solution?
|
|
|
|
|
|
What's the error ? Is this in the aspx, or in a js file ? js files are not parsed by ASP.NET, nor are they in scope of your control.
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 want to submit data by clicking on submit button on my blog
i made three buttons one for 1)name
2)mailid
3)comments.
and one button
when i submit button data will display on the same page
and one option for delete message.
i have tried it but not succeedded.
please give me the code to this
thanks a lot. ![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Buy an ASP.NET book, this is a trivial example that will almost certainly be covered. You handle the click event, grab the values from your controls and store them. If you post your code, we may be able to spot your error, no-one will write this for you.
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 )
|
|
|
|
|
Hello frnds,
in my asp.net applilcation, I have datagrid which contains hyperlink and I would like to add tooltip to hyperlink
how can I do that
show me example of that
Thankx
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
I think somebody has posted the same question in another asp.net forum, here
Meeram395
|
|
|
|