|
Hello Friends,
I have a requirement of getting the selected value from crystal report view to my .net application and using that value set datasource to other report.
Kindly help me how can I get the selected value from crystal report view to my application.
Thanks in advance
Regards
|
|
|
|
|
can anybody tell me!!
How can i set trust level of trusted site to FullTrust Programatically!!!!
i know how to do it by
1.Microsoft .NET Framework 2.0 Configuration.
2.CasPol.exe
however i don't want to use both this option.i want to set it programmatically.
Thanks in advance
Dattatraya.
|
|
|
|
|
You shouldn't be doing this from your code. This should be done at installation time, by the installer. I'm not even sure it would work if you tried to do it from code.
|
|
|
|
|
Actually issue is that i designed one C# activeX control and that is embeddded inside 1 html .
Whenever any user request that page control is visible but if requested person do any thing related to that control.
The Control is not allowed access to resources of that machine by CAS of .NET runtime.
and exception thrown is System.Security.Permission.UIPermission.
and throws repeatedly as soon as mouse is over the control.
I am not getting how to deal with this problem.
Any help will be appreciated
Thanks in advance!!!
|
|
|
|
|
Whoah - you want to do this from a webpage? You can't, and when you stop and think about it for a minute, you'll see why. If you could elevate privileges from a website, then any site you visit could host a malicious control that increased its privileges and started to crawl your hard drive looking for useful information, or add a virus. This is part of the reason why these controls are sandboxed.
|
|
|
|
|
Like Pete said, you cannot do this. Code running inside a browser runs inside a heavily restricted sandbox. That code cannot evelate its own privileges and any code you put into that control has to be written to abide by those restrictions.
|
|
|
|
|
Hello,
I have SQL database and I need to Alter a Relationship in my Table.
There Is an Employee Table with Employee ID and Another Table that has Employee ID as foreign Key.
I need a Query to update this relationship to Add the functionality of CASCADE ON DELETE RECORDS.
Please Anyone has any ideas, i am relatively new to SQL.
Thanks In Advance.
|
|
|
|
|
First, you have to drop the Foreign Key Constraint and then recreate it with the desired options.
ALTER TABLE <table_name>
DROP CONSTRAINT <foreign_key_name> ;
ALTER TABLE <table_name>
ADD CONSTRAINT <foreign_key_name> FOREIGN KEY (EmployeeID)
REFERENCES <other_table_name>.EmployeeID (EmployeeID) ON DELETE CASCADE ;
Keep It Simple Stupid! (KISS)
|
|
|
|
|
Thanks Ben Fair,
That was what i was looking for.
Thanks for your reply.
|
|
|
|
|
Hi there,
with Windows 7 there came a neat new feature in the superbar. You can display progress inside the taskbar icon.
The linked image below shows the download progress of a file, to illustrate what I mean.
http://bb.nfshost.com/progressBar.JPG[^]
Does anyone happen to know if this feature can already be implemented through .net code? I'd love to have this in an FTP upload application that I only use for myself, on a Windows 7 system.
Any hints would be welcome
Cheers
|
|
|
|
|
In the sense you are speaking of, I would say not. it is possible to create a child window in the taskbar that is sort of like a toolbar (ex: Windows Media Player), however it would not be exactly like a taskbar icon. I am sure their are some Windows 7 specific APIs that you may be able to work with, but that is uncharted territory with Windows 7 still being in beta.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I figured it out - if your app uses IProgressDialog it's done automagically. I hope they add that for ProgressBar aswell in the release version.
|
|
|
|
|
|
Hi
I'm trying to use the system.printing namespace to get the status of print queues on a print server. Unfortunately the only status I ever get for any queue is "None".
Here's the code:
dim myPS as PrintServer = New PrintServer("servername")
dim myPrintQueues as PrintQueueCollection = myPS.GetPrintQueues()
For Each pq as PrintQueue in myPrintQueues
pq.refresh()
'output pq.name
'output pq.QueueStatus.ToString
Next
I must be missing something obvious. Can anyone give me a pointer.
Thanks.
|
|
|
|
|
may it can help you out
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/rzalu/rzaluroutingexamples.htm
|
|
|
|
|
I have added a DataGridViewButtonColumn to one of the columns of a grid.How to change the colour of a button in DataGridViewButtonColumn?
|
|
|
|
|
This is part of the code from the DataGridViewColumn Class entry on MSDN.
int thirdColumn = 2;
DataGridViewColumn column =
dataGridView.Columns[thirdColumn];
DataGridViewCell cell = new DataGridViewTextBoxCell();
cell.Style.BackColor = Color.Wheat;
column.CellTemplate = cell;
Now this obviously works for a DataGridViewTextBoxCell, whether it would work for a DataGridViewButtonCell I don't know. but give it a try.
Henry Minute
If you open a can of worms, any viable solution *MUST* involve a larger can.
|
|
|
|
|
I'm trying to set a VS setup project to use the client profile as the prerequisite. I've had successfull setup project builds using as a prerequisite 3.5 and 3.5 sp1, but i'm getting error:
The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFx35Client\DotNetFx35ClientSetup.exe' in item '.NET Framework Client Profile' can not be located on disk.
I've completed the setup mentioned in MS's 3.5 sp1 readme (section 2.3.1.1).
So how do set the client profile as the prerequisite? Do i need to create and edit a "Deployment.xml" file? If so where does it go?
|
|
|
|
|
It seems that the default stack size for a new thread in .NET under Windows 2003 server has been reduced. This causes problems for any application that needs to implement extended recursion. I know that I can specify the stack size when explicitly creating threads, but I have not been able to figure out how to specify the stack size if I am using the ThreadPool.
Any help will be appreciated.
|
|
|
|
|
Concurrent Programming on Windows[^] says that the threadpool threads pick the default stack size in the PE header. You can change that using the editbin utility.
Open VS 200X command prompt and type editbin.exe. You should see a /STACK command line switch that lets you set the max reserve and initial commit sizes of the stack.
|
|
|
|
|
While Senthil's suggestion should work, I would suggest that you take a look at why you are running out of stack space. Frequently, this would be an indication of a design flaw somewhere. Excessive recursion maybe along with large value type variables and/or method arguments? Re-factoring the code to not be so stack-dependent maybe an option to consider.
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
I have read in many posts that windows 2003 reduced the thread stack size from 1M to 256K. any application that needs above average recursion will run into this limit sooner or later. My application has such a recursion built into it. I appreciate your recommendation of design inspection. Although I will check that again, I do not believe that a design flaw is causing this. Also no large data is passed around.
|
|
|
|
|
Hi,
IMO recursion is a dangerous technique: the stack size is limited, the complexity of the problem you are trying to solve might not be. Even if you had 16MB of stack, what guarantee do you have your app will cope with the situations that may arise in future?
When the design remains unchanged, you may try and alleviate the problem by reducing the stack size needed for each recursion level, basically look for local value types and try and replace them by reference types if at all possible. At best you would find a large struct and simply turn it into a class; or a bunch of simple variables, and group them into a class. That way, a lot of your recursive data gets moved to the heap (at the expense of some performance reduction).
|
|
|
|
|
Good advice. I was going to suggest that starting from .NET 3.5 SP1, the CLR can inline method calls with value types and so turning value types into reference types might not help much. That's when I realized that we are talking about recursive methods.
|
|
|
|
|
As Luc has explained, with recursion it is often difficult to predict when an input may arrive that causes the recursive routine to cross stack space limits (no matter how high it is) which makes determining the right amount of stack space needed somewhat tricky.
I wasn't aware however that they'd reduced the default stack space on 2003 server for threads by 1/4th of what it normally is! And given that it doesn't seem to have created as much of an uproar as it might have, maybe they should reduce the default on desktops too!
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|