|
Oh yes it will open printer dialog box. sorry that i forgot he want print directly. i think the window.print is the only way to print something from client side
Thomas
|
|
|
|
|
hi all
i am developing a website and maintaining session for user login.
problem is that
there is 3 sites all are diffrent sites
1 chating
2 blog
3 news
so user can switch to any of them so how to maintain the session for once login to visit all three sites
plz help
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
Did you try investigating in maintaining the state using cookies?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
no
but i am not getting any idea to do this.
if you have then plz give me a solution.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
I think if you have a cookie with a path like vrisoftware.com , the associated subdomains like
news.vrisoftware.com
chat.vrisoftware.com
support.vrisoftware.com
should be able to share it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi
I have recently moved an asp.net application onto a web server.
However I am getting the above error message.
How would I go about resolving this?
thanks in advance
feel free to ask for more details
cheers
|
|
|
|
|
|
thanks for the reply
I have already read that article but was not sure on a couple of things
What virtual directory do I need to right click on, where is this located?
"To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will
automatically create the "application" using the virtual directory's name. Now the application can be accessed." -
|
|
|
|
|
Hi.
I need to get the user's IP address (C#) of the machine they will be using to access my website.
I tried:
HttpContext.Current.Request.UserHostAddress;
Request.ServerVariables("REMOTE_ADDR");
I do not think I am using it correctly.
Any advice/help will be greatly appreciated.
Thanks
|
|
|
|
|
|
Use
Request.ServerVariables["REMOTE_ADDR"];
use square brackets instead of round brackets
Bhanu
|
|
|
|
|
I have to build some ASP.NET reports and for that I have to directly access peachtree DB.(Bitrieve or whatever format they are using)
Is it possible?
How do we go for that?
Any idea for of a good information source for this?
Thanks much
Regards
|
|
|
|
|
|
Hi all,
I want to convert PDF files to HTML files in our web application(ASP.NET).
If any one knows the procedure or source code or any source link, then kindly send me.
Thanks
|
|
|
|
|
hello to all......
I want to get ASCII value of enter key through ASP.Net and what namespace should be included for that.
thanx in advacne...
Raushan
|
|
|
|
|
Hi Raushan,
When a user hits a key on the keyboard, a client-side event is fired. The server is not used to capture or use this information as the server is simply recieving a request from the client (through the HTTP GET and POST protocols). Therefore you should focus on capturing and handling keyboard strokes on the client-side. The DOM's event object should provide you with the information you need when used in conjuction with the DOM onkeydown event (this is the event that is fired when a user hits a key). The following code shows an example of how to achieve this:
Function to handle the key stroke:
function checkKeyStroke(e) {<br />
var characterCode;<br />
<br />
if ( e && e.which ) {<br />
e = e;<br />
characterCode = e.which;<br />
}<br />
else {<br />
e = event;<br />
characterCode = e.keyCode;<br />
}<br />
<br />
if ( characterCode == 13 ) {
}<br />
}
Attach it to the onkeydown event of the required element, in this case the body element:
<body onkeydown="checkKeyStroke(event); ">
Clean code is the key to happiness.
|
|
|
|
|
Hello Friends,
I've designed a contact page for the clients. But as i press Enter key from the keyboard it throws me on the Home Page or Default Page. But it must either save the record or fire the validation if the textboxes are empty.
Thnx
|
|
|
|
|
yes buddy ..
wats u prob
make clear...
.
yogesh
|
|
|
|
|
You ought to trap the button click event and if the event keyCode turns out to be of ENTER key, then invoke the submit button click event.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
The following JS should perform the above operation:
function checkEnter(e) {<br />
var characterCode;<br />
<br />
if ( e && e.which ) {<br />
e = e;<br />
characterCode = e.which;<br />
}<br />
else {<br />
e = event;<br />
characterCode = e.keyCode;<br />
}<br />
<br />
if ( characterCode == 13 ) {
document.getElementById('button_id').click();<br />
}<br />
}
Attach the above function to the body / window elements onkeydown event.
Clean code is the key to happiness.
|
|
|
|
|
Hi,
I have got one dropdownlist and a gridview control on my form.
Dropdownlist is outside the gridview.I want that no of column in grid view should appear in dropdownlist.
Suppose gridview contains a column with the name Details1, Details2, Details3........etc.
All that column name should appear in dropdownlist.
How it is possible?
Regards,
Pranav
Pranav Dave
|
|
|
|
|
Hi,
It is possible to simply enumerate the columns collection of the GridView control and extract the required data. The following code will need to be run after the DataBind() method of the grid view has been executed:
for (int index = 0; index < grdTest.Columns.Count; index++)<br />
{<br />
ddlTest.Items.Add(new ListItem(grdTest.Columns[index].HeaderText, index.ToString()));<br />
}
Using the code to then hook up events between the DropdownList and the GridView is another matter...
Clean code is the key to happiness.
|
|
|
|
|
Hello Everybody,
I want to set a menu in master page which would be link with a xml file. Because i want to use different different menu for different type of users. when i creating xml - like this :
<HOME>
<Node url="" title="Dipak" description="">
<Node url="" title="Dipak1" description="" />
<Node url="" title="Dipak2" description="" />
<Node url="" title="Dipak3" description="" />
<Node url="" title="Dipak4" description="" />
</Node>
<Node url="" title="Rajesh" description="">
<Node url="" title="Rajesh1" description="" />
<Node url="" title="Rajesh2" description="">
<Node url="" title="Rajesh2-1" description="" />
<Node url="" title="Rajesh2-2" description="" />
</Node>
</Node>
</HOME>
<DOWNLOAD></DOWNLOAD> // error shows here
It prevents to create multiple root. When i remove the <DOWNLOAD></DOWNLOAD> portion, on the page it shows only one menu item at starting. and on mouse over on HOME shows other child items.
Please help me to create menu items and their child items using xml.
Or any special idea...
Help me.
Thank you in advance.
Dipak
|
|
|
|
|
You seem to have an extra closing node tag.
|
|
|
|
|
Hi,
I have an application, where in i want a new data grid to be displayed when i click a record in the grid. and the new grid should be displayed just beneath the row clicked (i.e) the new grid should be within the old grid.
Can somebody help me in this regard.
Thanks in advance
|
|
|
|