|
|
offcourse i did. my file control is something like this:
<asp:fileupload runat="server" id="getFile"
<div="" class="ForumSig">sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Hi all,
I am trying to create an dynamic css using Asp.net. Is there any samples or tutorials to expalin that??
Thanks in advance
Bye
Know is Drop, Unknown is Ocean
|
|
|
|
|
HI
A Master page is a good location to declare a link to a Cascading Style Sheet (CSS). CSS is a feature of HTML, not ASP.NET 2.0, so the topic isn’t covered in depth. In short, a CSS contains formatting for various styles to be applied to pages and controls, so that when a page is rendered, the elements on a page, the style of the text, buttons, links, and so on, appear formatted according to the style definition in the CSS. A CSS also speeds page loading because the CSS is loaded just once by the browser, and then reused directly from the client-side cache for each subsequent page that uses that style sheet. On a Master page, you should include the following kind of link in the section to link a page with a CSS:
<title>My Web Site
best regards,
if you need more help please contact me on my MSN: jamilaboukhalil@hotmail.com
Jamil Abou Khlail
|
|
|
|
|
Hi,
Thanks for your replay. Actually I am trying to update an css file. Intially there will be certain properties, the user can put his own color, font like that from an Asp.Net application.
Know is Drop, Unknown is Ocean
|
|
|
|
|
Hello, I'm new to ASP.NET, so please be patient.
I need to have a download page that serves a Save As dialog when user clicks the button, but I don't know how to go about modifying the code I found on the internet.
<br />
Response.Clear()<br />
Response.AppendHeader("content-disposition", "attachment; filename=ap_06_fulldress.jpg")<br />
Response.ContentType = "text/plain"<br />
Response.WriteFile(Server.MapPath("/downloads/wallpapers/ap_06_fulldress.jpg"))<br />
Response.Flush()<br />
Response.End()<br />
I would like to pass filenames as variables to reuse the code as much as possible instead of having a function for each download, which would not be very efficient.
Any help appreciated. Thanks.
Jay
|
|
|
|
|
if you want to pass filename as variable than this would help
first sava your filename in variable like
string filename="/downloads/wallpapers/ap_06_fulldress.jpg";
now pass this variable in place of file like
Response.Clear()
Response.AppendHeader("content-disposition", "attachment; filename=ap_06_fulldress.jpg")
Response.ContentType = "text/plain"
/*** change ***/
Response.WriteFile(Server.MapPath(filename))
/*** ***/
Response.Flush()
Response.End()
In this way you can change the filename as u like just pass the filename in variable and the code will work...
viral
|
|
|
|
|
hi guys
I have one master file and all its content pages. Now i want to open new form in which i can write code for uploading file. But new form should be open in new window. which can be fix in size and after uploading file i can close that and values of file that i have upload should come in the grid view that i have in form.
Please help me if any one have any idea.
DJ
|
|
|
|
|
use window.showdialogmodal()
when you close the dialog
-- submit your master form if any values from server is needed else just do further proceedings
Regards,
Akhilesh Yadav
|
|
|
|
|
hi thanks
i am developing my project in ASP.NEt with VB so i am not able to find any window object. Could you tell me what should i exactly do???
DJ
|
|
|
|
|
Hi all! If I need to send mails from my system through ASP.NET. What do I need to do.I know about Mail classes and namespaces. Also tried giving permission to localhost in IIS for routing mails.But mails keep getting queued up in various folders of IIS they did not get delievered so what are the steps need to be done apart from coding.
Thanks
Don't Quit
|
|
|
|
|
hi there
this code works fine with me so try it ... maybe it would help
Dim mail As New System.Web.Mail.MailMessage
mail.BodyFormat = MailFormat.Html
mail.From = "mail@company.com"
mail.To = "mail@company.com"
mail.Subject = "Mymail"
Dim bod As String = "The message that you want, u can use html tags if u like"
mail.Body = bod
System.Web.Mail.SmtpMail.SmtpServer = "mail"
System.Web.Mail.SmtpMail.Send(mail)
Best Regards
3ala2
|
|
|
|
|
hi,
but this is without authentication of the sender!!!!
Authentication is an important issue in these cases.
Can you provide a version with authentication.
regards
Jamil Abou Khalil
|
|
|
|
|
It depends on teh scenario
can u exaplain more?
Best Regards
3ala2
|
|
|
|
|
Hi there!! Thanks for your help. Your code worked with some workaround on dotnet 1.1 but on dot net2.0 I'm using following code.
'create the mail message<br />
Dim mail As New MailMessage()<br />
<br />
Try<br />
<br />
<br />
'set the addresses<br />
'to specify a friendly 'from' name, we use a different ctor<br />
mail.From = New MailAddress(TextBox1.Text)<br />
mail.To.Add(TextBox2.Text)<br />
<br />
'set the content<br />
mail.Subject = "This is an email"<br />
mail.Body = TextBox3.Text<br />
<br />
'send the message<br />
Dim smtp As New SmtpClient("127.0.0.1")<br />
<br />
smtp.Send(mail)<br />
Catch ex As Exception<br />
Label1.Text = ex.ToString<br />
End Try
I'm getting following exception
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.<br />
at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)<br />
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)<br />
at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)<br />
at System.Net.Mail.SmtpReplyReader.ReadLine()<br />
at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)<br />
at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)<br />
at System.Net.Mail.SmtpClient.GetConnection()<br />
at System.Net.Mail.SmtpClient.Send(MailMessage message)<br />
--- End of inner exception stack trace ---<br />
at System.Net.Mail.SmtpClient.Send(MailMessage message)<br />
at Default2.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\Try1\Default2.aspx.vb:line 25
Any help would be highly appreciated.
Don't Quit
|
|
|
|
|
I'm not sure about the framework 2.0
maybe u should use another class or change the class instance parameters
Best Regards
3ala2
|
|
|
|
|
Hi got it to work.I'm just posting the things which should be taken care of so that others could benefit.
IIS -> Default SMTP Virtual Server ->Right Click Properties -> Access Tab ->Connection (Also Relay) Add your server name (For example 127.0.0.1 localhost). It will work.
Thanks
Don't Quit
|
|
|
|
|
Great man
now we have code that works on both frameworks
Take Care
Best Regards
3ala2
|
|
|
|
|
hi all,
how to access a COM component developed in vc++6.0 from ASP.net?
what r the issues need to be considered in this case??
Thanks in advance.
Prashanth.v
-- modified at 4:59 Monday 30th October, 2006
|
|
|
|
|
Have you tried creating a typelib of the COM object or adding it to the references?
|
|
|
|
|
Hi guys
I hve problem while using datagrid.The datagrid is binded with items details from database's item table.Now wht I want to do is to search for an item. I am using a textbox and if i typed an items name in this textbox, I want to point the cursor to that particular item in datagrid .can anybody give a soln for this pls...
|
|
|
|
|
try to read something about "cursors" and the "item_created" of the datagrid
i use repeaters so i'm not a professional with data grids
hope this would help
Best Regards
3ala2
|
|
|
|
|
is there a .exe file in asp.net?
|
|
|
|
|
.exe will be generated after you deploy the web application.
Best regards,
Chee ken
|
|
|
|
|
The asp.net generated a dll for all ur classes and the webforms in the aspx format, so there are no exe files
Best Regards
3ala2
|
|
|
|