|
thanks navaneeth. i didnt try this . let me processs and if any i will come back.
Actually what i m exactly looking is....
Please check the following link (1st press the close button) and press the refresh button. A screen will appear so that until the process finish, we cant choose any films. The same i m trying in .net 2005. is there any "covering screen" like this?
link : https://www.thecinema.in/thecinema.in/cinemalite.html
|
|
|
|
|
Karan_TN wrote: https://www.thecinema.in/thecinema.in/cinemalite.html
I can't take it as it is blocked.
|
|
|
|
|
Hi,
You can do something like that with javascript - it's like a curten (I don't know if I translated it well) - I know there is a bunch of these on the javascript pages on the net.... Try to google it
|
|
|
|
|
thanks for your reply simsen. plz could you give me the link ? i searched in many place. but i cant get the exact thing, which i need..... help me
|
|
|
|
|
I developed a site in asp.net 2.0. It works fine in IE 6 and 7 but does not display images correctly in IE 8 beta.
Any idea.........................
Do good and have good.
|
|
|
|
|
Anyone please help me
I have a program which converts a .txt file to PDF file . I am getting the following error while running the program
Error
'C:\Documents and Settings\........' is not a valid virtual path in ASP . NET
I give my Code below ...
code in button Click
---------------------------
String fileName = "";
String strText = "";
// create instance of the PDF manager
IPdfManager objPDF = new PdfManager();
// Create new document
IPdfDocument objDoc = objPDF.CreateDocument(Missing.Value);
// Add a page to document. Pages are intentionally small to demonstrate text spanning
IPdfPage objPage = objDoc.Pages.Add(300, 300, Missing.Value);
// use Arial font
IPdfFont objFont = objDoc.Fonts["Arial", Missing.Value];
fileName = Path.GetFullPath(fileUpload1.PostedFile.FileName);
try
{
strText = objPDF.LoadTextFromFile(Server.MapPath(fileName));
}
catch (Exception ex)
{
Response.Write("error is "+ex.Message);
}
// Parameters: X, Y of upper-left corner of text box, Height, Width
IPdfParam objParam = objPDF.CreateParam("x=10; y=290; width=280; height=280; html=true");
while (strText.Length > 0)
{
// DrawText returns the number of characters that fit in the box allocated.
int nCharsPrinted = objPage.Canvas.DrawText(strText, objParam, objFont);
// HTML tag generated by DrawText to reflect current font state
String strHtmlTag = objPage.Canvas.HtmlTag;
// The entire string printed? Exit loop.
if (nCharsPrinted == strText.Length)
break;
// Otherwise print remaining text on next page
objPage = objPage.NextPage;
strText = strHtmlTag + strText.Substring(nCharsPrinted);
}
// Save document, the Save method returns generated file name
String strFilename = objDoc.Save(Server.MapPath("mask.pdf"), false);
lblResult.Text = "Success! Download your PDF file <A HREF=" + strFilename + ">here</A>";
----------------------------
Thanks in Advance
Kovuru Sreedhar
|
|
|
|
|
kvsreedhar wrote: Error
'C:\Documents and Settings\........' is not a valid virtual path in ASP . NET
Says it all really. ASP.NET cannot access your C: drive. It can only access its own virtual directory.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
thankyou for your consideration to my query
may please suggest a solution so that I can access from any drive
Thanks in Advance
Kovuru Sreedhar
|
|
|
|
|
Give permissions to IISWPG user group. Notice that it can cause security leak.
|
|
|
|
|
Hi,
In my application i require to create a folder by customername, when any new customer is added. But the folder should be created on the Server not on workstation.
if is use following code, where the folder will be created, C Drive of Local Machine or C drive of Web Server.
Dim diCust As DirectoryInfo = Directory.CreateDirectory("C:/TestCustomer")
I want to create on Server.
Please Speak.
Thanks
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
Binod K. wrote: if is use following code, where the folder will be created, C Drive of Local Machine or C drive of Web Server.
Dim diCust As DirectoryInfo = Directory.CreateDirectory("C:/TestCustomer")
If your application is placed on web server and you are running from there then folder will be created there other than if you run your application from local machine then it will be created on local machine drive.
please don't forget to vote on the post that helped you.
|
|
|
|
|
thanks for your thought Imran.
As its web application, One will run the application through URL from local machine. There is no general point to use application from server.
So where the folder will be created ?
Does i require to map Server Path.
Thanks
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
In Asp.Net applications folders and files always created at server. If you know the path directly you can write it as c:\..... but if the path will be depended to the directory of application is running you should use Server.MapPath. Using Server mappath is good for any changes of application directory or web server.
EX
if application is running at c:\inetpub\wwwroot\exapplication
Server.MapPath() gives you the result c:\inetpub\wwwroot\exapplication
Server.MapPath("Example") gives you the result c:\inetpub\wwwroot\exapplication\Example
|
|
|
|
|
Thanks Tamer,
Now i am pretty much clear about it.
I hosted my application on IIS, tested using URL from different machine, it creates folder on server machine only.
Again thanks for your addition.
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
hI FRIENDS
I HAVE ONE PAGE IN THAT PAGE I HAVE SEVERAL CONTROLS.LETS SAY I HAVE TWO TEXTBOX ONE HIDDEN CONTROL AND ONE HYPERLINK AND BUTTON.
ON CLICK OF HYPERLINK I POPUP ANOTHER PAGE AND SEND CLIENTID OF TEXTBOX AND ONE HIDDEN CONTROL.
FILL THAT TEXTBOX AND HIDDEN CONTROL AND GETBACK TO PARENT PAGE AND REFRESH PAGE.BUT IF I CLICKED ON BUTTON VALUE OF TEXT BOX FILLED FROM POPUP GET BLANK AND VALUE OF OTHER CONTROLS REMAIN AS IT IS.
WHY THIS VALUE GET BLANK?????.
iF I AM USING SAME THING IN 1.1 IT'S WORK FINE
DOES THERE ANY PROPERTY NEED TO BE SET IN 2.0.
PLEASE HELP IT IS URGENT
THANKS
MAKARAND JADHAV
|
|
|
|
|
kuwl_mark wrote: PLEASE HELP IT IS URGENT
For you [^]
|
|
|
|
|
Don't capitalise your question. If you want people to answer it, make it clear and concise. Putting the letters in upper case will just deter people from reading and/or answering your question.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
How to seperate values from a List Box Control??
Eg:
My List box have 3 Items named;
First
Second
Third
How to seperate values in a single Click on a button?
|
|
|
|
|
Hi,
I have declared session time out in web config file to 1444. But its not working. Even its not taking its default value 20 min. Session is expiring within 5 min.
Now i'm unable to understand that why it's happening.
Please provide some solution for this problem.
thanx...
krishna veer singh
|
|
|
|
|
I may be wrong still please check the IIS settings
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
I have checked in IIS, its not a problem of IIS setting. Its showing 1444 over there.
krishna veer singh
|
|
|
|
|
Check application pool settings.
|
|
|
|
|
Hi,
I have a popup form where I have to return values selected in a listbox through javascript to the parent form.... the list box is an asp.net control so how do we go about reading its values through javascript and passing them to the parent ?
Code, Code, Code, chill lol.
|
|
|
|
|
One way would be to use a hidden field, which get's posted back to the parent.
Set the value of the hidden field to whatever you want, maybe a comma delimited list of selections from the list box.
In aspx:
<asp:hiddenfield id="thehiddenfield" runat="server" />
<script type="text/javascript">
function setHiddenField(val)
{
var el = document.getElementById(_hiddenFieldId);
el.value = val;
}
</script>
Somewhere in your Page_Load handler:
Page.ClientScript.RegisterClientScriptBlock(typeof(theform), "hiddenvar", "var _hiddenFieldId='" & thehiddenfield.ClientID & "';", true);
Note: You could just use view page source to find out the id of the hidden input field to set, if you don't want to go through all the hoops, but if it's in a control or master page and get's moved, you'll have to update the id.
Now, when your page posts back, the hidden field will be set to whatever you set it to and you can access it in the code behind using something like:
string vals = thehiddenfield.Value.ToString();
Hope that makes sense, it's kind of convoluted (but then again, so is asp.net ).
|
|
|
|
|
Hi, thanks for the reply ! It was really helpful. I have managed to implement the hidden field solution partially in a sense.
Actually I have the javascript on the insert page of the child window (popup) which sets the return value on the parent (I'm using only 1 value of a textbox atm)
Now I have to loop through the values of the asp.net control listbox but through javascript and then insert them on the parent page.
Like on the popup page,
the user selects multiple items thorugh a grid which gets added to a listbox and then on the insert button I have to return all the values added on the listbox to the parent page text box.
Any help in this regard is appreciated.
Thanks !
Code, Code, Code, chill lol.
|
|
|
|