|
writeln is almost similar to write, the only difference is writeln places a newline character after each expression.
means to say that if we use code something like
document.writeln("Hello");
document.write("Hello I am new here.");
then
OUTPUT:
Hello
Hello I am new here.
|
|
|
|
|
no .. as I already told you...
It places newline on the html not in its output.
Output will be
HelloHello I am new here.
but if you look into innerHTML it will write like
Hello
Hello I am new here.
To make the output appear newline, you need to use <br/>
|
|
|
|
|
I gave you the link to the documentation in my previous response. I would suggest you read through that a few times then create a test HTML file and see for yourself what the results are.
|
|
|
|
|
|
Hi...
I have created virtual directory in my production server..
how would I map it with my default website...
I want my virtual directory to be accessed if user browse the url xyz.com..
thanks...
By:
Hemant Thaker
|
|
|
|
|
why do you need to create Virtual Directory inside the Default Website?
Place the document in the Default web site and then configure it.
|
|
|
|
|
Yaa... thanks...I did the same and able to browse my website..its online now...
You can check it "x-student.com"...
Infact i m confused so far as IIS ,, virtual directory and Home directory....
can you tell me what is the importance of virtual directory in website development and deployment or making it online..
thanks
By:
Hemant Thaker
|
|
|
|
|
yaa.. It happens sometimes. ... When you are in the beginning of your learning process we do mistakes .. but through this we all learn.. So dont worry about that...
Well virtual directory is just a directory inside the main web site. It is just given the flexibility to create multiple website inside the same web site and to use different application pool for the same web site.
Say you have
www.xyz.com
It might point to c:\xyzmain folder. The folder might contain a folder called c:\xyzmain\mno .. this is also a virtual directory. But the flexibility that IIS gives is to have a website running altogether in a virtual directory.
Means let www.xyz.com/mno points to C:\my documents\mywebsite .
This is the main advantage of Virtual directory. Although there are lots of more advantages.. .
|
|
|
|
|
Hi,
I have just downloaded the sql server 2008 version. I am currently developing a web application which is to be uploaded on the internet Now the web application and the database both will be uploaded on the same site .To be precise I am new sql server, whenever i try to run the website ,the login page comes perfectly but when I try to enter the id and password it shows me an error that :
Login failed for 'user\Guest'.
I think (but not sure) that this is sql server error and might be caused because of some roles or logins.
Can any one please help me with the problem that is am I correct , is there a way to resolve it
i am giving You the screenshot of the error here:
http://lh4.ggpht.com/_EC8qUhn9kJY/Sq4yFPLtvEI/AAAAAAAAAGA/Bt_L1eKpI7c/error.JPG[^]
I still dont know which will be the best forum to post this thread, so I am posting it here.
Any help shall be appreciated
thanks
shankbond
|
|
|
|
|
you should give permission of ASP.net to the virtual directory. It shouldnt be login using user\guest, rather it should login using asp.net account.
|
|
|
|
|
thank you Abhishek,
the problem was later solved by me as I was using integrated security=true which should have been false. in case of sql server authentication.
|
|
|
|
|
Hi,
I have created menu using accordion and while click on the header the accordionpane should expand simultaniously with click event.
Code i have used:
<cc1:Accordion ID="Accordion1" runat="server" SuppressHeaderPostbacks="true" FadeTransitions="false"
FramesPerSecond="80" TransitionDuration="250">
<Panes>
<cc1:AccordionPane ID="AccordionPane3" runat="server">
<Header>
<ul>
<li id="li_Recom5" runat="server"><a href="#" onclick="document.getElementById('<%=Linkbutton1.ClientID%>').click()">Header</a></li></ul>
</Header>
<Content>
<ul>
<li id="li2" runat="server" style="display:none">
<asp:LinkButton ID="Linkbutton1" runat="server" OnClick="Linkbutton1_Click"></asp:LinkButton></li></ul>
</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
this code is working fine in IE but in Firefox, it shows error message as Function not defined.
Thanks in advance.
beula.
|
|
|
|
|
Have you tried putting javascript: in front of the method call, or creating a simple method that you call instead ?
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 tried both, still getting same error
Is there any other solution to for this..............
It's very urgent.
beula.
|
|
|
|
|
antony beula wrote: It's very urgent.
Of course it is....
It has to work, you just need to work out how. I'd simplify the task and add elements until I worked it all out.
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 would recommend using a library such as JQuery[^] to help with the cross browser issues.
only two letters away from being an asset
|
|
|
|
|
I have a dropdownlist within my editable gridview.The datasource of the gridview is a datatable method which accepts as a parameter the text of the lable of one of the columns in the gridview.I'm using the code below to try this task but it is not working.
protected void gvServices_DataBinding(object sender, GridViewRowEventArgs e)
{//gvServices is a gridview name
if (e.Row.RowType == DataControlRowType.DataRow)
{
DropDownList ddl = (DropDownList)e.Row.Cells[3].FindControl("DDLServType");
Label lbl = (Label)e.Row.Cells[2].FindControl("lblServiceName");
string servicename= lbl.Text;
ddl.DataSource = st.getServiceTypes(servicename);
ddl.DataBind();
}
}
ML Lingwati
|
|
|
|
|
Perhaps if you whip it harder, it will work more ?
If you want more meaningful help, you have to tell us
1 - what 'not working' means
2 - if you're sure this code is being called
3 - what happens as you step through the code in the debugger.
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.
|
|
|
|
|
use onrowdatabound event rather than DataBinding .
Also let me know what error it produces ...
|
|
|
|
|
How to create a Folder browse control in asp.net like windows application.
koppula
|
|
|
|
|
not possible as we dont have that in HTML.
We can only have input type=file to have file browser.
Either use it or create custom browser plugin.
|
|
|
|
|
You can create a folder on server using
if(!Directory.Exists(path))
Directory.CreateDirectory(path);
|
|
|
|
|
koppulaj wrote: How to create a Folder browse control in asp.net
Why you want a browse control?Explain your requirement so that we can think in different way.
|
|
|
|
|
Actually i want to insert into database through
javascript .I donot know how to write Code for connection string and all that
IS it possible then give me a good code example .
|
|
|
|
|
hi,
why u want to insert through the java script..
Thanks,
Amit Patel
|
|
|
|