|
as stated the body is HTML and they add URL to the images path.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Render your page and send the response to your mail.
Also make IsBodyHtml = true for MailMessage object.
|
|
|
|
|
please suggest me the proper method
i tried putting the body.htmltext=...
but it does not display the image to me since i am per formining the operation on sharepoint server..
the doc is converted to aspx page and i have to send that aspx as a body of mail to the registered user
thanks
|
|
|
|
|
|
Stick the the options suggested by Abhishek Sur
Take a look at this, this might give you an idea
Google link[^]
Alexei Rodriguez
|
|
|
|
|
Hi...
I have used ReportViewer1 in order to show the data in Reporting format.
It works fine on local server but at live server it throws error as ...
System.Security.SecurityException: That assembly does not allow partially trusted callers.
Kindly help to solve this issue.
Thanks.
Regards,
PRAVIN MAHAJAN
|
|
|
|
|
|
Hey Thanks Abhishek for replying but still I have a problem, I'm littlebit new
in this, I can send u some part of code from my web.config file, Please Help me..
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<trust level ="Full" />
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</buildProviders>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<!--<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>-->
<authentication mode="Windows"/>
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<anonymousIdentification enabled="true"/>
<profile enabled="true">
<properties>
<add name="Passenger" type="Passenger" allowAnonymous="true" serializeAs="Binary"/>
</properties>
</profile>
<httpHandlers>
<remove path="*.asmx" verb="*" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false" />
<add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false" />
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate="false" />
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
validate="false" />
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
---->((((AFTER ADDING trust level ="Full" I got a error which is given below:
This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowoverride="false"> from an inherited configuration file.))))
Thanks in Advance..
Regards Pravin Mahajan
|
|
|
|
|
I think siteadmin blocked Trustlevel section.
Contact with admin and check whether it is blocked or not.
|
|
|
|
|
Hey Thanks Abhishek, I will check it... and contact u....
Thanks Once Again..
|
|
|
|
|
You are most welcome.
Dont forget to click on Good Answer, If you like my solution.
|
|
|
|
|
Hi All,
Back ground worker event progress changed event is not getting called in C#.
Thanks and regards,
Amit Patel
|
|
|
|
|
And would you expect it to? Are you getting any errors? Do you have any code samples? Its Friday, and I can't be bothered to try and outguess you, so what is your question - or is it just a comment?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
inside Do i m doing this following thing
MsftDiscRecorder2 discRecorder = new MsftDiscRecorder2();
BurnData burnData = (BurnData)e.Argument;
discRecorder.InitializeDiscRecorder(burnData.uniqueRecorderId);
discRecorder.AcquireExclusiveAccess(true, m_clientName);
MsftDiscFormat2Data discFormatData = new MsftDiscFormat2Data();
discFormatData.Recorder = discRecorder;
discFormatData.ClientName = m_clientName;
discFormatData.ForceMediaToBeClosed = checkBoxCloseMedia.Checked;
object[] multisessionInterfaces = null;
if (!discFormatData.MediaHeuristicallyBlank)
{
multisessionInterfaces = discFormatData.MultisessionInterfaces;
}
IStream fileSystem = null;
if (!CreateMediaFileSystem(discRecorder, multisessionInterfaces, out fileSystem))
{
e.Result = -1;
return;
}
discFormatData.Update += new DiscFormat2Data_EventHandler(discFormatData_Update);
try
{
discFormatData.Write(fileSystem);
e.Result = 0;
}
catch (COMException ex)
{
e.Result = ex.ErrorCode;
MessageBox.Show(ex.Message, "IDiscFormat2Data.Write failed",
MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
discFormatData.Update -= new DiscFormat2Data_EventHandler(discFormatData_Update);
if (this.checkBoxEject.Checked)
{
discRecorder.EjectMedia();
}
inside discFormatData.Write(fileSystem);
this call the follwing m_UpdateDelegate(sender, args);
this calles the
void discFormatData_Update([In, MarshalAs(UnmanagedType.IDispatch)] object sender, [In, MarshalAs(UnmanagedType.IDispatch)] object progress)
{
if (backgroundBurnWorker.CancellationPending)
{
IDiscFormat2Data format2Data = (IDiscFormat2Data)sender;
format2Data.CancelWrite();
return;
}
IDiscFormat2DataEventArgs eventArgs = (IDiscFormat2DataEventArgs)progress;
m_burnData.task = BURN_MEDIA_TASK.BURN_MEDIA_TASK_WRITING;
m_burnData.elapsedTime = eventArgs.ElapsedTime;
m_burnData.remainingTime = eventArgs.RemainingTime;
m_burnData.totalTime = eventArgs.TotalTime;
m_burnData.currentAction = eventArgs.CurrentAction;
m_burnData.startLba = eventArgs.StartLba;
m_burnData.sectorCount = eventArgs.SectorCount;
m_burnData.lastReadLba = eventArgs.LastReadLba;
m_burnData.lastWrittenLba = eventArgs.LastWrittenLba;
m_burnData.totalSystemBuffer = eventArgs.TotalSystemBuffer;
m_burnData.usedSystemBuffer = eventArgs.UsedSystemBuffer;
m_burnData.freeSystemBuffer = eventArgs.FreeSystemBuffer;
backgroundBurnWorker.ReportProgress(0, m_burnData);
}
|
|
|
|
|
In the C# forum as well.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
I have a DIV in my web project whose image in back ground is to changed on SelectedIndexChanged event on 3 drop down lists. All the 3 ddl's have different images associated with them. Basically those images are gif files. But i m unable to do so
any help???
|
|
|
|
|
Create 3 css classes in you style sheet, one for each image.
Change the class attribute of the div to select the image.
Are you trying to change the image with javascript, ajax or postback? Can you post your code that you have tried so far?
I didn't get any requirements for the signature
|
|
|
|
|
thanks for ur reply.. i dont want to use javascript. i can use ajax,if get any idea. and those ddl's do use postback
|
|
|
|
|
Hi ,
I want to read by using pcap and get MAC adress of each packet.
Any one have idea to do this using asp.net. Please share with me.
Thank you
|
|
|
|
|
on click of a button i want to call open file upload dialog box. THE FILEUPLOAD Control should not be visible . It should be created at run time on click of a button.
|
|
|
|
|
hi i think you should you fileupload control. when you drag this. it creates a text box and a browse button. and at run time when you click on browse button then the file upload dialog will appear .
|
|
|
|
|
Hi Bhavna,
I did not under stand ur problem but u can hide this control and u can show on button click as u want.
Thanks and regards,
Amit Patel
|
|
|
|
|
Hello, This is Vikash Gohil.
I am using menu control in my Web Application.
I have 2 level menu, a Static menu and its submenus.
When I click on Static menu the Page gets reloaded.
What i want is to make static menu non-Clickable.
I have done this in another project, but there I used SiteMapdataSource for menu items.
There specifying URL="", makes the menu item non-Clickable.
How Can i do this programmatically.
Any help would be great.
thanks in Advance.
|
|
|
|
|
i am using Crystalreport to generate the report.i am using .NEt2005
and using C# developing web project
1.In my first page(Employee Detail) there is a button (View report),when i click on that button my second page will open there are two radio button
(A) View report by employee ID
(B) view Report by employee name
when i am selecting any one of the option a another whindow will open they are asking for three fields.
(x)Employee ID
(y)From date
(z) To date
all these therr parameteres i passed in through crystalreport.i am not don any coding for that.
when i am sellecting (A).then they asking for all three parameters then it will so Repoet of that particular employee.
There is one link button in report page which is use to Redirect the page in first page(Emloyee Detail).
when i redirect the page and again click on button(view report) then it will go to secong page and again when i selected (A),this time it will not asking any parameters it will directely show the previous employee detail
|
|
|
|
|
Hello Everyone!!!!!!!!!!!
I am using Login Template on a form.... i am not using any update panel for it... For same condition i want to pop up Message Saying your password is going to expired in ..days?? For this in code behind I am using ModelPopup.Show() command.. but even though it will not get popup????????
What and where i am doing wrong????
Please help Me its urgent!!!!!!
Thanks in Advance
|
|
|
|