473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to align the javascript code in asp.net source page

Hi all,

I am using asp.net 2.0 , However I am in need of shortcut key or method to align the javascript code in my source page , please anyone tell me how to align it.
Note :
Shortcut key not for source code, only for javascript

Any help would be greatly appreciated. Please I am in very urgent





Thanks & Regards,
Selvamariappan.c
Mar 9 '09 #1
4 4812
Frinavale
9,735 Expert Mod 8TB
JavaScript is a scripting language that you use to manipulate things client side (while the website is being viewed in the web browsers).

When you say you need a:
"method to align the javascript code in my source page"
Do you mean that you want to use JavaScript to center something in the middle of the browser??

-Frinny
Mar 9 '09 #2
hi
Thank you for your reply , yes in my javascript code there are more than 200 lines are there , I want to align it , like aligning the source code using ctrl + k+ d

Regards
selvamariappan.c
Mar 16 '09 #3
Frinavale
9,735 Expert Mod 8TB
Are you creating a .js file and want to know how to indent it in the Visual Studio?
Have you tried using "ctrl+K+D"?

It seems to work for me...mind you I'm using VS 2008...
Mar 16 '09 #4
Hi
I am not using .js file , I am writing the java script code within .aspx while I am giving the shortcut it aligns only the asp.net code not javascript code .

regards
selvamariappan.c
Mar 17 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andy Fish | last post by:
Hi, I want to use an anchor tag to invoke some javascript and I've read that it's bad form to use <a href="javascript:foo()"> I've read endless usenet posts and hint sites on the net, they all...
4
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
5
by: Max2006 | last post by:
Hi, I have a TreeView and this is my node style: <asp:TreeNodeStyle ForeColor = "#000000" Font-Size="9px" Font-Bold="false" Width="100px" NodeSpacing="3px" /> The problem is the expand...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.