|
When you mention "clear your temporary files, cache, reset IIS", I think you mean I should stop and start my workstation and stop and start iis that is on my work station correct? If this is not what you mean, can you tell me what you mean?
You mentioned, "I hope if there was a new deployment then, it's not just a file." There was no new deployment. Thus what would I be concerened about with a file?
Thanks for the online references!
|
|
|
|
|
dcof wrote: "clear your temporary files, cache, reset IIS", I think you mean I should stop and start my workstation and stop and start iis that is on my work station correct?
No, not just that, you need to also clear your browsers cache and system temporary files.
dcof wrote: I hope if there was a new deployment then, it's not just a file." There was no new deployment. Thus what would I be concerened about with a file
If you are replacing/updating a file then you need to make sure it's nothing more than a ASPX file with all it's class references intact. If you make any change in code behind file then you need to rebuild before deployment.
|
|
|
|
|
Hey, Just something to note, everybody is lead to believe that content pages are placed in to master pages when the application runs but it's actually the other way round, when you run you application, the webpage you run actually pulls the master page an displays it. So in short the content page is fired first and then the master page. Hope this helps you understand.
|
|
|
|
|
Hi,
What kind of host server (CPU? RAM? or anything else that is important)is suitable to support an application written in ASP.net and SQLserver 2008, which should handle 10000 users and around 1 GB data at one time parallely.
|
|
|
|
|
Hi,
In an asp.net application I want to convert xsl fo to xslt, is there any way that I can convert the xslfo to xslt or word or pdf just using MS.Net library, not any other tool to buy, I want to just use .Net framework.
Any kind of suuport like a code snippet or a link any kind of support would be really really helpfull.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
modified 2-Jul-12 12:59pm.
|
|
|
|
|
Hi,
I my asp.net application I have to save a .doc file in to pdf file, so I am using the
Document.ExportAsFixedFormat method to convert and save as pdf. But it is storing only on to the disk in a physical location.
Is there any way that I can store output file pdf as a stream rather than in a physical location. Any kind of help would be really helpful please help me I am in a dire need.
If there is any alternate method available I am ready to accept it, any links or any advice is acceptable for me.
Thanks in advance. Below is my code.
Public Shared Function convertDoc2PDF(ByVal sourcePath As Object, ByVal targetPath As Object) As Boolean
Dim result As Boolean
Dim paramMissing As Object = Type.Missing
Dim wordApplication As New ApplicationClass
Dim wordDocument As Document = Nothing
Try
Dim paramSourceDocPath As Object = sourcePath
Dim paramExportFilePath As String = targetPath
Dim paramExportFormat As WdExportFormat = WdExportFormat.wdExportFormatPDF
Dim paramOpenAfterExport As Boolean = False
Dim paramExportOptimizeFor As WdExportOptimizeFor = WdExportOptimizeFor.wdExportOptimizeForPrint
Dim paramExportRange As WdExportRange = WdExportRange.wdExportAllDocument
Dim paramStartPage As Integer = 0
Dim paramEndPage As Integer = 0
Dim paramExportItem As WdExportItem = WdExportItem.wdExportDocumentContent
Dim paramIncludeDocProps As Boolean = True
Dim paramKeepIRM As Boolean = True
Dim paramCreateBookmarks As WdExportCreateBookmarks = WdExportCreateBookmarks.wdExportCreateWordBookmarks
Dim paramDocStructureTags As Boolean = True
Dim paramBitmapMissingFonts As Boolean = True
Dim paramUseISO19005_1 As Boolean = False
wordDocument = wordApplication.Documents.Open( _
paramSourceDocPath, paramMissing, True, _
paramMissing, paramMissing, paramMissing, _
paramMissing, paramMissing, paramMissing, _
paramMissing, paramMissing, paramMissing, _
paramMissing, paramMissing, paramMissing, _
paramMissing)
If (wordDocument IsNot Nothing) Then
wordDocument.ExportAsFixedFormat(paramExportFilePath, _
paramExportFormat, paramOpenAfterExport, _
paramExportOptimizeFor, paramExportRange, paramStartPage, _
paramEndPage, paramExportItem, paramIncludeDocProps, _
paramKeepIRM, paramCreateBookmarks, paramDocStructureTags, _
paramBitmapMissingFonts, paramUseISO19005_1, _
paramMissing)
End If
result = True
Catch ex As Exception
result = False
Finally
If (wordDocument IsNot Nothing) Then
wordDocument.Close(paramMissing, paramMissing, paramMissing)
wordDocument = Nothing
End If
If (wordApplication IsNot Nothing) Then
wordApplication.Quit(paramMissing, paramMissing, paramMissing)
wordApplication = Nothing
End If
GC.Collect()
GC.WaitForPendingFinalizers()
GC.Collect()
GC.WaitForPendingFinalizers()
End Try
Return result
End Function
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
modified 29-Jun-12 12:30pm.
|
|
|
|
|
Hi
We have a custom tool (a simple web based application) which is created in .NET, as a business requirement we are planning to integrate this tool with TFS such that whenever a workitem is created it gets exported to our tool and whenever any update is made to workitem in TFS same changes get applied to workitem created in our tool.
Any Ideas, on how this can be achieved ??
|
|
|
|
|
Dear friend ,
have you any idea how can we see CCTV camera on web Page using ASP .net if you have any Clue please tell
|
|
|
|
|
|
how to sent mail using smtp.bizmail.yahoo.com in asp.net.
i have account in smtp.bizmail.yahoo.com
|
|
|
|
|
|
I am asking this question since I have very little experince working with master pages in a C# 2010 web form application. I am trying to put my code into production, but the production code is causing a problem. Basically I know what the error is but I do not know how to fix the problem. Thus I am hoping you can tell me how to fix the problem
Note:There is the file in the following location: sub/TestMasterPage.ascx
Problem: Error 19 Could not load file or assembly 'MasterPages' or one of its dependencies. The system cannot find the file specified. C:\Users\dst\Documents\Visual Studio 2010\Projects\Support\TestPage.aspx 2
The code:
<%@ language="c#" debug="true" trace="false" %>
<%@ Register TagPrefix="mp" namespace="Microsoft.Web.Samples.MasterPages" assembly="MasterPages" %>
<script runat="server">
void ClickedCapitalize(object o, EventArgs e) {
capitalized.Text = Server.HtmlEncode(tb1.Text.ToUpper());
}
void SayHello(object o, EventArgs e) {
name.Text = Server.HtmlEncode(tb2.Text);
}
</script>
<mp:contentcontainer runat="server" MasterPageFile="sub/TestMasterPage.ascx">
<mp:content id=region1 runat="server">
<a href="MasterPages.htm" runat="server">Relative link test</a><br>
<asp:textbox id=tb1 runat="server"/><asp:button text=Capitalize onclick=ClickedCapitalize runat="server"/>
<asp:literal id=capitalized runat="server"/>
</mp:content>
<mp:content id="region2" runat="server">
<asp:textbox id="tb2" runat="server"/><asp:button text="Say hello" onclick="SayHello" runat="server"/>
Hello <asp:literal id="name" text="[name goes here]" runat="server"/>!
</mp:content>
</mp:contentcontainer>
|
|
|
|
|
Couple of things:
1. Page register attribute:
<%@ Register TagPrefix="mp" namespace="Microsoft.Web.Samples.MasterPages" assembly="MasterPages" %>
No idea how you got this!
For a Master page, default looks like:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
For a content page, default looks like:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ContentTestMaster.aspx.cs" Inherits="ContentTestMaster" %>
2. Contentcontainer?
<mp:contentcontainer runat="server" MasterPageFile="sub/TestMasterPage.ascx">
What does or where from this line of code came? Looks like you are trying to reference a custom master page kind of stuff. Is that needed?
Look here on how to implement Master Page in ASP.NET:
MSDN: ASP.NET Master Pages[^]
ASPNET: ASP.NET Master Pages Tutorials[^]
CP: ASP.NET 2.0 Master Pages[^]
|
|
|
|
|
I obtained this code from the contractor who wrote the application. I do not know how they set this test code up.
What would you recommend I change?
|
|
|
|
|
Already shared masterPage concept links with you. Have a look at them and try out. If you get stuck, share with us.
|
|
|
|
|
how to bind the gridview in page load using 3 tier architecture
thank you
|
|
|
|
|
That's a big question. What have you already tried for yourself?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
|
do you know about the Business Logic??
|
|
|
|
|
This article has an application implemented in 3 tier architecture. It is using repeaters controls in lots of places and data binding it using data coming from database using 3-tier architecture.
I suggest you look this. basic philosophy will remain the same, just grid view specific stuff will be needed.
YaBlogEngine - A Tiny Blog Engine written in ASP.NET/C#[^]
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
I am working on a C# 2010 web form application that I will deploy within the next day or two. I am assuming there is probably some kind of a time limit that the web form pages will stay active?
If so, can you tell me where i can find how long a web form will stay active in case I need to increase or decrease the timeout limit?
If not, is there no time limit?
Can I overrride a timetime limit if I want to?
|
|
|
|
|
sc steinhayse wrote: I am working on a C# 2010 web form application that I will deploy within the next day or two
You say you developed/developing an application. Ok. Have you used session in it anywhere?
It would be strange if you used it but not aware of it getting timeout. It's default value is 20 minutes. It can be increased/decreased by setting the timeout in Web.Config file.
Details here: MSDN: HttpSessionState.Timeout Property [^]
If you are using Form Authentication in your application then it too has a timeout parameter.
Details here: MSDN: forms Element for authentication (ASP.NET Settings Schema)[^]
Handle the timeouts as per your need. Do verify them before setting as having different values for both would not make much of a sense.
|
|
|
|
|
Hello all
I am developing an application in dot.net.Now i have take card details(master card, visa card or nay other card) of the user.I want to hide the details so nobody can miss use them
How to show only last 4 characters of credit card /visa card or any other card to the admin as well as to the user.This will be for security.What will be the best way to store and display details keeping security in view.
I also want to know about SSL and how to use it
|
|
|
|
|