|
|
Hi,
Can any one suggest me how to read an block of content from an file and replace the content alone with new content using File concept in Asp.net??
For Eg:
.txtbold
{
font-family: Verdana;
font-size: 11px;
font-weight: bold;
color: #000000;
text-decoration: none;
}
.les10gests_txt
{
font-family: Verdana;
font-size: 11px;
font-weight: normal;
color: #ffffff;
text-decoration: none;
}
In the above, I want to read the content of .txtbold i.e font....to ....none; and also to replace this with new values if needed.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
I noticed your earlier post and just thought I should mention that the CSS sits on the web server not the client machine so allowing one user to re-write it will affect all users. Dependant on circumstance I'd probably either look into something like isolated Storage[^] and maintaining a users preferences in XML format on the client machine, or having a limited set of pre-defined css 'styles' and allow users to choose which particular style is used to format the page when they view it.
Just my 2p
Rhys
I'm glad I'm not Brezhnev. Being the Russian leader in the Kremlin, you never know if someone's tape-recording what you say. Richard Nixon
|
|
|
|
|
Hi,
Here i am mentioning the admin as user. Coz we are creating an globalized web site can be adapted by many users with out chaning buy an designer or developer. We provide all opptions to the admin of the site to change the display
Know is Drop, Unknown is Ocean
|
|
|
|
|
how to create dynamic theme with asp.net 1.1 (vb.net)
thx
|
|
|
|
|
This link will help you. http://dotnetjunkies.com/WebLog/csteen/archive/2005/01/30/49164.aspx
Regards,
Thomas
|
|
|
|
|
there are also articles about just that subject here on CodeProject.
|
|
|
|
|
Hi,
I am Ravindra.Presently doing a project in asp.net.
I want to implement the process of sending auto email alerts using windows service.
So,please help me.
thanks in advance.
Ravindra
|
|
|
|
|
u can use sql server mailing services too .
|
|
|
|
|
You can set up a service that watches the event log, and sends out a periodic email when it changes on an interval.
|
|
|
|
|
Hi
i am using asp.net FileUpload control. But whenever i try to upload file, i can not get its name or any other thing. I receive no error, but controlName.HasFile is always false. Can someone tell me what could be possible problems with it?
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
|
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
|
|
|
|