|
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
|
|
|
|
|
JMAboliEnrich wrote: Please help Me its urgent!!!!!!
without the error message or some code reference it is very difficult to clear your problem...... Plz provide some information so that our experts can guide you in a correct way..... YOu can use JavaScript instead....
|
|
|
|
|
sorry for not posting code
if (differenceInDays >= IntPwdMsgPopupDays)
{
ErrorMsg = "Your password is going to expired in " + NoOfRemainDays + " Days!!!!!" ;
ErrorMsg = ErrorMsg + "\n\n Do you want to change it now?";
lblShoWMsg.Text = ErrorMsg;
ModelExpMessage.Show();
}
else if(){//some other code}
in .aspx page
<span style="display:none ;"><asp:LinkButton ID="LnkShowModel" runat="server" Text="Show"></asp:LinkButton> </span>
<cc2:ModalPopupExtender ID="ModelExpMessage" runat="server" TargetControlID="LnkShowModel" BackgroundCssClass="modalBackground"
PopupControlID="PnlExpMsg" BehaviorID="MdlMsg" >
</cc2:ModalPopupExtender>
<asp:Panel ID="PnlExpMsg" runat="server" CssClass="modalPopup">
<table style="width:625px">
<tr>
<td style="width:20%"></td>
<td style="width:60%;vertical-align:middle;" class="toplink">
<asp:Label ID="lblShoWMsg" runat="server" Text="Your password is going to expired!!!!!"></asp:Label>
</td>
<td style="width:20%"></td>
</tr>
<tr>
<td style="width:20%"></td>
<td style="width:60%;vertical-align:middle;">
<asp:Label ID="Label1" runat="server" Text="Do you want to Change it now?"></asp:Label>
</td>
<td style="width:20%"></td>
</tr>
<tr>
<td style="width:20%"></td>
<td style="width:60%;vertical-align:middle;">
<asp:Button ID="CmdYes" runat="server" Text="Yes" />
<asp:Button ID="CmdNo" runat="server" Text="No" />
</td>
<td style="width:20%"></td>
</tr>
</table>
</asp:Panel>
|
|
|
|
|
Why dont you use Pure Javascript to create your popup ??
It would be easier to do.
|
|
|
|
|
i also try to use...
page.ClientScript.RegisterClientScriptBlock(page.GetType(), scriptKey, error);
ScriptManager.RegisterStartupScript(page, page.GetType(), "err_msg", "alert('" + error + "');",true );
But still i am getting same error it is not alerting any thing
|
|
|
|
|
this.ClientScript.RegisterStartupScript rather than
page.ClientScript.RegisterClientScriptBlock
I think it will work...
|
|
|
|
|
Hi
want some information on MS DRM. Please help me if anyone know about Microsoft DRM - facing one issue....
Regards
Yrishi
|
|
|
|
|
yrishi wrote: want some information on MS DRM.
Try looking on the Microsoft website.
|
|
|
|
|
yrishi wrote: Please help me if anyone know about Microsoft DRM - facing one issue....
This is brilliant. The most vague question ever. You're facing an issue, but you don't even tell us what it is ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
can we retrieve images from database using its path??..
please guide me how to retrieve...
|
|
|
|
|
|
You'd have to store the path as a way of accessing the image data. The whole thing is quite trivial. Is this really what you meant to ask ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Guys,
I am an ASP.Net Developer, and our SEO guy want's me to change the links to a complete http links.
For example, instead of this link <a href="sevices.aspx">services</a>, our SEO guy wants to change everything to this <a href="http://www.ourdomain.sevices.aspx">services</a>
My question, does it matter when working on SEO? Let's say if I have 10 aspx pages and have different href links in it, do I really need to change the href link to the complete http://www.... links?
Please give some thoughts about this
Thank you
hifiger2004
|
|
|
|