|
in php you'd do this: Grab Title[^]
Maybe you can translate that into your code...
|
|
|
|
|
Hi,
I want to get the ID value or class value of my current DIV's parent using ASP. Does anybody have any idea regarding how to achieve this?
<div class="parent" ID="parent_ID">
<div class="child" ID="child_ID">
<%
tmp = <ASP code to get the "parent" DIV's class/ID value>
if tmp="parent" then
do something
else
do some more thing
end if
%>
</div>
</div>
Please help!!!
Thanks
- Jills
modified on Monday, August 3, 2009 3:27 AM
|
|
|
|
|
This looks like you're using ASP, which you said. ASP.NET replaced ASP about 7 years ago. ASP questions go in the web dev forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote:
ASP questions go in the web dev forum.
Sorry for posting it in the wrong section. How can I move this to webdev forum?
Regards
Jills
|
|
|
|
|
I'll move it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I Don't think this can be done. Theres no way of knowing the values of the ID's above in ASP3.
Please correct me if i'm wrong!
|
|
|
|
|
Thanks senorbadger for the reply.
We will get the value in client side using javascript code:
this.parentNode.getAttribute('class')
But I want to do it in server side. Our website is built using ASP.
Regards,
Jills
|
|
|
|
|
I have seven to eight pages in my web. What should i do if i want to make same changes in all the pages. Rite now i open every page separately and do it sequentially. Is there any technique that i can make same change to all web pages at once?
|
|
|
|
|
yes.
1) Use a tool with a "Find and Replace All" tool (such as dreamwevaer)
or
2) use functions and / or include files. For example in PHP:
-------------------
File "a.php":
hello
-------------------
File "b.php":
world!
-------------------
opening file b.php will output:
"hello world!"
|
|
|
|
|
How do I change active view when ScriptManagers OnNavigate event fires?
On button control click all is ok, however, when user clicks browsers back button fires OnNavigate.
It allows to change label.text property and it displays correct, but multiview shows old view.
It`s nothing to wory before something happen and when it happents it`s alredy to late to wory!
|
|
|
|
|
I am assuming you know nothing about AJAX ( which has no OnNavigate event ) and you're using the ASP.NET AJAX library, in which case, this is the wrong forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hey,
I was just wondering what kind of coding environment people prefer for web development? There are so many options, but I'm more interested in what is generally an industry standard. I guess the question comes down to, do most people (personal preference and in industry) _really_ prefer text editors?
I guess everywhere on google people's comments come down to bashing visual-aided environments (things like Dreamweaver) and take pride in using text editors/notepad. Is this really the case?
I'd appreciate if anyone can shed some light on the topic, I don't really do web development in industry, but rather make personal sites for fun so I'm a little curious
Thanks,
See_Sharp
|
|
|
|
|
I tend to hand code at the beginning, using notepad, but then, as sites become bigger and more complex I will use VWD, but just to keep track of things.
------------------------------------
"When Belly Full, Chin Hit Chest"
Confucius 502BC
|
|
|
|
|
Generally whatever is right or you are comfortable with.
Personally I tend to develop using dreamweaver's code view under windows. But I have also used notepad, notepad++ and Aptana Studio.
When I'm working on a linux box I'll use aptana, but it adds so many extra files to the project - it can be a pain to maintain (i havent found an easy cleanup option), so I won't use it on Windows. It does have a good intellisense stylee code helper tool. and automatic code generation for all the basics (getters/setters).
Dreamweaver does make coding easy with code completion etc and the inbuilt filemanager is nice and responsive. DW also has an excellent site manager for working with dynamic sites and minimising the time spent tralling through dialogues to get to your "images" folders.
If I need an editor on clients servers, I tend to use notepad++ on windows (small footprint + code colouring) or VI on Linux (Good for quick modifications when remotely connecting using SSH).
Oh and dispite the fact I use it less and less these days, the visual editor has helped me solve many errors such as positioning issues over the years (DW shows you where the paddings and margins actually are - rather than relying on the space between elements in the browser). The properties box also saves the time of having to look up image sizes - on click and it writes them for you (in nice tidy code I might add).
Hmm... Guess I'm a Dreamweaver fan.
|
|
|
|
|
Visual Studio works for me, but most of my web development is for ASP.NET.
When I code otherwise, I really like UltraEdit[^]. It's hard to call it "just a text editor" anymore.
|
|
|
|
|
hiiii to all
any one can tell me how to send sms like
INTERNET ur message
send this to 5555
by asp.net
like business companies doing
they providing
WORD YOUR NAME
SEND THIS TO 5555
Like that
rizvan sivally
|
|
|
|
|
I guess if you can't work out how to not double post, or how to use the ASP.NET forum, or how to use google, one has to wonder what you'd be able to do with any replies you got.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
make a list of web sites from where you can send free phone msg
create a bot in a free web host to navegate to a site to collect information, then navigate to free msg site to send that information to your phone
when you run out of messages send from other site
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
hiiiiiiiii to all
any one can tell me how do programming in asp.net to send sms by internet to mobile.
rizvan sivally
|
|
|
|
|
Hi everybody,
I just wanted to know, how to avoid using tables in asp.net 3.5 UI.
There must an option (AutoPositon property) to drag and drop controls at any part of the design page.
Any early replies will be heartly appreciated.
Many thanks in advance.
regards
Sajid
Electronia Co ltd,
Alkhobar,KSA
|
|
|
|
|
Sayed Sajid wrote: how to avoid using tables in asp.net 3.5 UI.
Why you are trying to avoiding Tables.
If you want to design perfect web site that would be used in multiple web browser you should use Table. Even You can do it using DIV also. But Table i better option.
Sayed Sajid wrote: There must an option (AutoPositon property) to drag and drop controls at any part of the design page.
Its always better to desing your site only from aspx page, not by Drag and Drop Control in page, It may create lots of problem in multiple browser.
Thank you
|
|
|
|
|
Hi Abhijet,
Thanks for the answer.
Am not able to align my controls in the table columns. Apart am also not able to select multiple controls and align them.
Anyway am working on a intranet application. But still I would prefer to work avoiding tables.
I would be thankfull if you elaborate the DIV format.
Many thanks in advance.
regards
Sajid
Electronia Co Ltd,
Alkhobar - KSA
|
|
|
|
|
|
hiiiiiiiii
Here rizvan,please go in asp.net Format Meanu
please select what u want to reset then go in fromat menu the select position
u can then find the result what u want
Thanks and Regards
RIZVAN SIVALLY
Zrs Technology Pvt Ltd
www.zrstechnology.com
rizvan sivally
|
|
|
|
|
Hi,
I'm using Michael Chourdakis's very nice SSL package from here:
http://www.codeproject.com/KB/IP/ssl_sockets.aspx
I used the code as a base for a test app and its working very well, however, I'm having a strange issue.
On one remote test machine, when I run as a server in NON SSL mode, sending a few hundred bytes back and forwards, its lightening fast. I switch to SSL mode and its a little slower (due, I suppose to the encryption) but it's still fast.
However, on a second remote test machine at a different location the results vary. The NON SSL mode works lightening fast, however the SSL mode takes 30-40 seconds to complete. It connects and then there is a long period until the data is transferred back and forth, but once it starts its fast.
Is it possible that on this second machine the Certificate is being re-negotiated every time? If so, do you know if there is an app or an OS fix?
Thanks for your help,
Phil
|
|
|
|