|
You can just invoke window.print in the client browser. It open up the print dialog box where there is already one dropdown box to choose printers.
Certain things are not accessible in browser due to security reasons. Direct access to printer is not possible.
|
|
|
|
|
Hi,
I am importing data to sqlserver2005 from a csv file. But the folder where i upload the file before import is unaccessible even though i have given full rights to everyone accessing this folder or even the root folder of the application for testing purposes. I am getting error 'invalid File' (though the file is valid csv) on my system where Norton and Kaspersky are installed but when i tryed to import data from same file using other system it did not give error and file was uploaded successfully and then imported to database. I have restarted the deployment server. Should i restart iis admin servies or what should i do. I have given full rights on the folder where i m uploading the file before importing it to database.
Thanks,
Safvi
|
|
|
|
|
have you selected the option in advance to implement those permission on child object?
|
|
|
|
|
The follwing piece of code is working accuratly some time while inaccuratly on other system. Working ok on local system and even on one system after deplyment.
Dim intFileNameLength As Integer = InStr(1, StrReverse(strPath), "\")
FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
If Right(FileName, 4).ToLower <> ".txt" And Right(FileName, 4).ToLower <> ".csv" Then
ErrorControlStep1.ErrorMessage = "Invalid File"
ErrorControlStep1.Visible = True
Exit Sub
Else
....
...
End if
What could be the reason. May be this <> operator. while the file was csv not any other.
Thanks for ur reply.
Safvi
|
|
|
|
|
If you try to cut - > paste the file manually from the folder to another, does it allow you to do so?
If not, I think IIS must have held the file while uploading. Just restart the IIS Service from IIS console and see if it cures the problem or not.
|
|
|
|
|
The follwing piece of code is working accuratly some time while inaccuratly on other system. Working ok on local system and even on one system after deplyment.
Dim intFileNameLength As Integer = InStr(1, StrReverse(strPath), "\")
FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
If Right(FileName, 4).ToLower <> ".txt" And Right(FileName, 4).ToLower <> ".csv" Then
ErrorControlStep1.ErrorMessage = "Invalid File"
ErrorControlStep1.Visible = True
Exit Sub
Else
....
...
End if
What could be the reason. May be this <> operator. while the file was csv not any other.
Thanks for ur reply.
Safvi
|
|
|
|
|
K.Safvi wrote: FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
Horrible. Check out the Path class ( system.IO.Path ), it has methods to return filenames, file extensions, etc.
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.
|
|
|
|
|
Whenever i try to publish filesystem website to HTTP, first it prompts me with an error to run as administartor and also to install windows component of IIS although i have checked every option while
enabling IIS from Control Panel. And when i run VS as administrator it deploys successfully but while
open site it gives error access denied......
|
|
|
|
|
I think your IIS is not configured correctly...
Take a look if the site you added to IIS actually runs or not. Also add permission to asp.net to the folder you publish.
If still have problems, install aspnet again.
To install go to Command prompt of Visual studio.
type
aspnet_regiis /i
I hope this will cure the problem.
|
|
|
|
|
go to your command prompt of VS.net and run this command
aspnet_regiis -i
|
|
|
|
|
hi,
i want to convert a date selected from calender control into english words.
e.g 11/01/1948 to-- eleven january nineteen fourty eigth.
can anybody help!
|
|
|
|
|
guess you've to write your own algo for that
|
|
|
|
|
you have to use a method which returns the word for each number. For an example refer the following code.
public string getWordForNumber(int number)
{
string word = null;
switch (number)
{
case 1 :
word = "One";
break;
case 2:
word = "Two";
break;
..
..
..
default:
break;
}
return word;
}
For 30/31 days of month, you dont need 30/31 case on your switch. use another method which returns 10 to the power 1 numbers, For an example, for 21 --> for number 2 it should return Twenty, using the above method you can get next number, for number 1 - One, All together --> Twenty One
|
|
|
|
|
Helo
How could i change a SQL database 's table name in Virtual Web Developer? when i click the properties , its not editable ...
Thanks
|
|
|
|
|
Can you explain your problem little bit more
|
|
|
|
|
|
Respected,
Can We Visible And unvisible Asp.net Panel By Using JavaScript.
Thanks.
|
|
|
|
|
Yes, you can. Just get the document id and make it's property visible true or false.
|
|
|
|
|
Use
panel.ClientId to get the client id which is rendered to the browser. Pass it to hidepanel and showpanel javascript function when needed.
To hide panel use
function hidePanel(objId)
{
document.getElementById(objId).style.display = "none";
}
function showPanel(objId)
{
document.getElementById(objId).style.display = "block";
}
Hope you can make it yourself now easily.
|
|
|
|
|
hey guys
i would like to restrict the user from inserting more then 70 letters in the
ajax html editor contect
can someone help me ?
modified on Thursday, November 5, 2009 7:06 AM
|
|
|
|
|
which editor you are talking about ?
If it is just a textbox you can check like this
txtbox keypress="javascript:return checkNosofLetters(this, event);"<br />
function checkNosofLetters(evt)
{
var e = evt || window.event;
if(e.srcElement)
return e.srcElement.value.length < 100;
}
|
|
|
|
|
Hello friends
I display the pdf file using ashx handler in aspx page
now i want to display the particular page in that handler
suppose my pdf document contains 8 pages and i display the page number near to it. onclicking the page number, i want to open that particular page what user click
ie suppose user click page number 3 means i want to open page no 3 among that 8
i am using ashx handler for display the pdf document.
|
|
|
|
|
Did you mention
Response.ContentType = "application/pdf";
Response.AddHeader("content-length", yourbufferlength);
Response.BinaryWrite(...)
|
|
|
|
|
Yes sir
i use this method to display the pdf
now i need to move to particular page when user select the page number.
ie there are 8 pages in that pdf document i provide the link to the page number nearby. where user click page number 3 the document should display the page number 3 content
|
|
|
|
|
In that case you need to put some commands I guess to the PDF plugin of browser.
I dont know if it is possible or not. But I do think you need to somehow read the pdf in server and create pdf with only the page number that the user wanted to see, loading the PDF in IFrame .
But in that case there would be postback for every page calls to the server.
|
|
|
|