|
Kusal wrote: Who's the expert in ASP.NET
Scott Guthrie[^]
Kusal wrote: My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
And also give idea about Forms Authentication / Windows Authentication ?
MSDN[^]
|
|
|
|
|
Kusal wrote: Who's the expert in ASP.NET
http://msdn.microsoft.com/[^]
Kusal wrote: And also give idea about Forms Authentication / Windows Authentication ?
http://msdn.microsoft.com/[^]
Kusal wrote: My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
http://msdn.microsoft.com/[^]
|
|
|
|
|
Need Help...
I am working with Visual Studio.NET 2003 and I have to generate a word report at the client side. Thing is that i must also configure tha password for the same.Meaning to say when the end user clicks on the Open Button in the File Download Dialog Boxit must prompt for the password.
I included Microsoft.Word 9.0 Object Library. But still i was not able to access Microsoft.Office.Word.Interop Namespace.
So i wrote the code as..
<pre>
protected void btnGenerateDocument_Click(object sender, EventArgs e)
{
Word.ApplicationClass WordApp = new Word.ApplicationClass();
Word.DocumentClass dc = new Word.DocumentClass();
dc.Password="SandP1";
object file = "c:\\Document.doc";
object missing = System.Reflection.Missing.Value;
WordApp.Documents.Open(file,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing,missing);
// Giving an error of Invalid arguments--As it is unable to convert object
// to ref object. </pre>
If any body could help i'll be grateful..
jij
|
|
|
|
|
|
Thanks Vasudevan.It was a good link. But when i used the code from there, it was giving error as System.Runtime.InteropServices.COMException: Could not open macro storage.
i set <identity impersonate="true" /> in Web.config file and still it was not working.
<pre>
object missing = System.Reflection.Missing.Value;
object file = "c:\\myfile.doc";
object pwd = "www";
Word.ApplicationClass oWordApp = new Word.ApplicationClass();
oWordApp.Visible = true;
Word.Document oWordDoc = oWordApp.Documents.Add(ref missing,ref missing,
ref missing,ref missing); ===> The exception was thrown here
oWordDoc.Activate();
...
</pre>
If any body could tell how we set the security permissions for the word application i'll be grateful.
jij
|
|
|
|
|
|
I am using master page. I created a Menu control on Master Page. When I use it on a child page or content page, my menu goes down the controls of content page. the labels, textboxes etc. appeares on top of my menu. how can I get rid of this problem?
|
|
|
|
|
Hi
I think you have missed something in your Master Page.
Hope you did in this way:
I. Master Page should contain:
<asp:Menu>
<Items>
<!-- Whatever Items that you wanted to add -->
</Items>
</asp:Menu>
<asp:contentplaceholder id="CPH" runat="server">
</asp:contentplaceholder>
II. In your web application should contain all labels, textboxes within
Content tags.
<%@ Page Language="C#" MasterPageFile="~/MasterPageFile.master" ... %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="Server">
<!-- Text boxes, labels or anything else -->
</asp:Content>
Make sure that Content Place holder id is same as in Master Page.
Let me know which browser are you using?
Rate this message. Thank you. Harini
|
|
|
|
|
thanks for the help dear... i am using internet explorer. its not working yet. hope u will come up with some more good solution... waitin...
thanks
|
|
|
|
|
Hi
I am facing error in attaching a document while mailing.The codings are as belows..
CODE:
If Not (inpAttachment1.PostedFile Is Nothing) Then
' Get a reference to PostedFile object
Dim attFile As HttpPostedFile = inpAttachment1.PostedFile
' Get size of the file
Dim attachFileLength As Integer = attFile.ContentLength
' Make sure the size of the file is > 0
If attachFileLength > 0 Then
' Get the file name
strFileName = Path.GetFileName(inpAttachment1.PostedFile.FileName)
' Save the file on the server
inpAttachment1.PostedFile.SaveAs(Server.MapPath(strFileName))
' Create the email attachment with the uploaded file
Dim attach As New MailAttachment(Server.MapPath(strFileName))
' Attach the newly created email attachment
mailMessage.Attachments.Add(attach)
' Store the attach filename so we can delete it later
attach1 = strFileName
End If
Error :
System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\Pinkerton\PTS.doc" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at Pinkerton.Mail.SendMail.btnsend_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\pinkerton\mail.aspx.vb:line 125
Note: The line 125 is inpAttachment1.PostedFile.SaveAs(Server.MapPath(strFileName))
It works well when I am sending mails without attachement.at the time of attachment the above error appears. I have to upload this file to server.
Thanxxx in advance...
|
|
|
|
|
|
|
Hello friends,
I am a asp.net c# programmer .I need your help and suggestions..in my project there is a content management section is there...i got one sample from net but it's not working in the case of images.like it's not uploading images in to server like that..can any body help me to solve this issue...
I am waiting for your valuable suggestions
Reagards
Alex Malayil
|
|
|
|
|
FCK Editor or TinyMCE are the best free ones I know of.
|
|
|
|
|
|
|
|
|
|
how to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me .
Advance thanks
Bala
|
|
|
|
|
how to send sms in asp.net without any third party sms gateway.How to create own sms gateway.i want a code or any reference website address.i know if its possible to create own sms gateway.please tell me everyone and help me .
Advance thanks
|
|
|
|
|
|
Hey All,
i am new to programming and they asked me to create a struct for calculating Area with the length and width.
I have coded but it shows error and please help me to correct the error and i will paste my code here.
<br />
Struct Area<br />
<br />
{<br />
<br />
Public int length;<br />
<br />
Public int width;<br />
<br />
Public int area;<br />
<br />
<br />
<br />
Public Area(int _length, int _width)<br />
<br />
{<br />
<br />
this.length=_length;<br />
<br />
this.width=_width;<br />
<br />
this.area=(_length* _width);<br />
<br />
}<br />
<br />
Public int GetArea()<br />
<br />
{<br />
<br />
return area;<br />
<br />
}<br />
<br />
static void main(int[] args)<br />
<br />
{<br />
<br />
Area area=new Area();<br />
<br />
Console.Writeline(area.GetArea());<br />
<br />
}<br />
<br />
}<br />
<br />
<br />
Chitra
|
|
|
|
|
chitra4sat wrote: Area area=new Area();
You have no public constructor with this signature. Your only constructor takes two arguments, (int _length and int _width). Either add a new constructor with no parameters, or call the existing constuctor with the appropriate arguments;
<br />
Area area=new Area(0, 0);<br />
Rhys
ELYSIUM, n. An imaginary delightful country which the ancients foolishly believed to be inhabited by the spirits of the good. This ridiculous and mischievous fable was swept off the face of the earth by the early Christians -- may their souls be happy in Heaven!
Ambrose Bierce (1842 - 1914)
Behind every argument is someone's ignorance.
Louis D. Brandeis (1856 - 1941)
|
|
|
|
|
Hey guys,
My website contains a messagebox where visitors can (obviously) post messages. The right side of my website contains an area where the latest three messages are shown. Now I want to truncate these messages to a maximum of 150 characters (if the're shorter, leave them alone). This is easy, not a problem, however, the string can contain image tags (smiley's) now when truncating the string, I want to leave those image tags alone and not truncate in the middle of a tag.
I want to remove all html tags (which in fact can only be image tags) then truncate the text to 150 chars as needed and restore the image tags at the original position if needed. Anyone a good approach or idea?
I change the image tokens which mean a smiley into image tokens before I store them in the database, this prevents me from checking for image tokens each time I read the message from the database. If I don't convert the tokens into image tags before storing, the problem still exists because a token may be multiple characters (for example a semicolon and a ) sign for a wink smiley) and I don't want to truncate the string in the middle of a token leaving me with a semicolon only.
|
|
|
|