|
In that case you should probably post your question in the SilverLight Forum.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I need to have a popup window asking user for yes and no when he selects delete if he says yes i go ahead and delete otherwise i return back to screen and do other things.
Can I write a javascript method and call it in onclick of my delete button?
will it work?
not sure as delete linkbutton runat="server".
|
|
|
|
|
wrong forum -> goto ASP.NET
|
|
|
|
|
Hi everyone.
I'm having an error in my application that is confusing me.
The error is this one:
Could not find a part of the path "C:\CrkBusinessplatform\Aplicacao\Publico\sistemas\ccs\CRK.Monitores\sistemas\ccs\CRK.Monitores\monitor_arquivos\xslt\ACCS001.xslt"
Here are the facts: The correct path would be C:\CrkBusinessplatform\Aplicacao\Publico\sistemas\ccs\CRK.Monitores\xslt\ACCS001.xslt -> A part of the path is coming twice.
The archive ACCS001 is in this correct path.
The code line of the error is like this:
xslt.Load(Page.Request.PhysicalApplicationPath+"/monitor_arquivos/xslt/ACCS001.xslt");
I'm using .NET 1.1 on IIS 6.
The folder CRK.Monitores is a virtual directory in IIS. So the code should return the right path, right?
Oh, one more thing. The DLL of this page is the same here and there(I have checked it). And the error does not occur here.
Thanks in advance.
|
|
|
|
|
wrong forum -> goto ASP.NET
|
|
|
|
|
you seem to be mixing slashes and backslashes, Windows doesn't like that very much. Try using backslashes consistently.
|
|
|
|
|
Have you tried echoing Page.Request.PhysicalApplicationPath to confirm that what you think it outputs is what it actually outputs? To me, this looks like you're making a false assumption about the returned value.
|
|
|
|
|
How to add Sort Icon to Gridview Header in Windows Forms(Win Application)?
|
|
|
|
|
HI...
want a Auto hide control component. The control like Visual studio 2008 IDE Solution Explore or Tool view.. If mouse over or click Tool view , tool view item are expanded... i want like control... how can create this control or if its in build control , name of that control and how use that control
Thanks....
|
|
|
|
|
|
Thank you for that Source Code....
|
|
|
|
|
Hi All,
I have created a custom video player in C#. This player has two forms.
1. The Video Player window ( running in primary (UI) thread )
2. The content playing window (running in a secondary thread)
Everything goes fine for nearly 5-6 hours, then the main video player window freeze.So i cannot access any of the buttons (stop, pause ,exit) in the player.
But the secondary thread keeps playing the files for even two days continuously ( which is the max i tested).
Things i have checked :
1. There is no memory issue, since i dispose the objects i create after playing each file ( few min videos) . I have checked the process in task manager, where status is running and memory usage as same as it is started.
2.I have used BeginInvoke from secondary thread to update the current playing file in the list box on the main video player window ( once the main window freeze, the update is not visible)
3. I have used a timer in the main video player window and tried refreshing form , calling Application
.DoEvent() for every few minutes , still it gets freeze up after 5-6 hours.
Why the UI window freeze up?
Is my architecture for the player is wrong?
(I need to do lots of processing in secondary thread for the images and videos to be played, but it is working fine)
Kindly give me your suggestions.
|
|
|
|
|
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
This error occured when connected to remote sql server from windows
service
|
|
|
|
|
|
Dear All,
I have one Componenet1datagrid in this I want to put on combo box. That i have done but prob is this now when i m selecting the value from drop dowm it is not reflecting in the grid..
Can u plz help me.....
Thanks
|
|
|
|
|
Have you considered trying the component one forums.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hello everybody
i want to convert an image into binary in C# and return back to image how it can be possible
plz any body reply
|
|
|
|
|
hi
//To binary
MemoryStream ms = new MemoryStream();
bitmap.Save(ms);
ms.Position = 0;
byte[] arr = ms.ToArray();
// From binary
MemoryStream ms = new MemoryStream(arr);
Bitmap bitmap = Bitmap.FromStream(ms);
regards
|
|
|
|
|
You can get another image manipulation idea from the link below..
An Easy Way to Resize an Image
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
Thanks
Md. Marufuzzaman
|
|
|
|
|
hello everybody
i m a BS student
i have a problem while importing MS Word file(.doc)into a rich text box in C#
i have use this caod
richTextBox1.Text =
File.ReadAllText(fileName,System.Text.ASCIIEncoding.ASCII);
can anybody please help me
|
|
|
|
|
You can't display doc file into rich text box.It supports only rtf files or text files.
Life is a stage and we are all actors!
|
|
|
|
|
dear sir Hristo Bojilov
but how i can open a .doc file in a Windows Form in C#
there may be some way ????????
|
|
|
|
|
Of course ,you could open any file and read it's data but you still can't display doc into RichTextBox.Ask google and you will find this question many times and it's answer is the same -you can't.
[EDIT]
doc file is not simple text file and you couldn't view it's contents with Notepad. It's based on binary format specification and RichTextBox doesn't recognize it.
You could view or edit doc file with Word or with some third party libraries or with creating your own parser and viewer.
Life is a stage and we are all actors!
modified on Tuesday, September 1, 2009 6:54 AM
|
|
|
|
|
You can import word doc into richtextbox with following:
private void PreviewRecord(object sender, EventArgs e)
{
string str;
OpenFileDialog openfiledg = new OpenFileDialog();
openfiledg.Filter = "Word Document (*.doc)|*.doc|All Files (*.*)|*.*";
openfiledg.FilterIndex = 2;
openfiledg.RestoreDirectory = true;
if ((openfiledg.ShowDialog() == DialogResult.OK && openfiledg.FileName.Length > 0))
{
IDataObject Data1;
object nullobj, file;
Microsoft.Office.Interop.Word.Document wordDoc;
Microsoft.Office.Interop.Word.ApplicationClass WordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
nullobj = System.Reflection.Missing.Value;
file = openfiledg.FileName;
wordDoc = WordApp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);
wordDoc.ActiveWindow.Selection.WholeStory();
wordDoc.ActiveWindow.Selection.Copy();
Data1 = Clipboard.GetDataObject();
str = Data1.GetData(DataFormats.Rtf).ToString();
richTextBox1.Rtf = str;
wordDoc.Close(ref nullobj, ref nullobj, ref nullobj);
}
}
|
|
|
|
|
Hi, I am using CrystalReport XI-R2, in my application. I have used a Types Dataset and DataTables in the report. Data retrieved from querry has been added in the DataTable and in the report the DataSource of the report has been set that DataTable.
This report displays values correctly. There are nearly 5 custom querries and 3 Subreports in the report. The problem is that in the display of report it is displayed nearly after 1 minutes which is very slow in my requirement. Please suggest me, what is its solution.
|
|
|
|