Click here to Skip to main content
15,897,891 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to display the records in first charcter in capital letter in front end. Pin
Murugan.nett16-Nov-07 9:23
Murugan.nett16-Nov-07 9:23 
AnswerRe: how to display the records in first charcter in capital letter in front end. Pin
SABhatti16-Nov-07 11:19
SABhatti16-Nov-07 11:19 
AnswerRe: how to display the records in first charcter in capital letter in front end. Pin
Christian Graus16-Nov-07 11:31
protectorChristian Graus16-Nov-07 11:31 
Questioniframe Pin
netJP12L16-Nov-07 9:14
netJP12L16-Nov-07 9:14 
AnswerRe: iframe Pin
SABhatti16-Nov-07 10:09
SABhatti16-Nov-07 10:09 
GeneralRe: iframe Pin
netJP12L16-Nov-07 17:29
netJP12L16-Nov-07 17:29 
GeneralRe: iframe Pin
SABhatti16-Nov-07 17:39
SABhatti16-Nov-07 17:39 
QuestionPrinting Through windows Thin client in asp.net Pin
Karthiraj16-Nov-07 7:55
Karthiraj16-Nov-07 7:55 
I have created a Windows user ctrl to print (RAWprint to the Printer) and exposed to COM.
I referred that Assembly in INTRANET webapp to print.. .
I am getting the security error while printing.
What should i do to overcome this in client.. It will be a Intanet site.. and under trusted zone...



The Windows User Control :

[assembly: System.Security.AllowPartiallyTrustedCallers]
namespace ClientPrint
{
[ComVisible(true)]
public partial class ClientPrintHandler : UserControl, IClientPrintHandler
.....
......
private void btnPrint_Click(object sender, EventArgs e)
{
try
{
if (printDialog1.ShowDialog() == DialogResult.OK)
{
RawPrinter.SendStringToPrinter(printDialog1.PrinterSettings.PrinterName, "Sample Text...");
}
}
catch (Exception ex)
{
....
}

}


---
ASPX:
<object id="myControl1" name="myControl1" classid="http:ClientPrint.dll#ClientPrint.ClientPrintHandler" height="72">


While Printing i am getting the security issue..
-------------------------------------------------
See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.



************** Exception Text **************

System.Security.SecurityException: Request for the permission of type 'System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.

at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

at System.Security.CodeAccessPermission.Demand()

at System.Drawing.Printing.PrinterSettings.get_PrinterName()

at ClientPrint.ClientPrintHandler.btnPrint_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The action that failed was:

Demand

The type of the first permission that failed was:

System.Drawing.Printing.PrintingPermission

The Zone of the assembly that failed was:

Trusted
----------------------------------------------------------

What should i do to overcome this in client.. It will be a Intanet site..





-KARTHI

Question[02/03]How to Configuiring IIS for my web service Pin
Vimalsoft(Pty) Ltd16-Nov-07 6:12
professionalVimalsoft(Pty) Ltd16-Nov-07 6:12 
AnswerRe: [02/03]How to Configuiring IIS for my web service Pin
Michael Sync17-Nov-07 4:45
Michael Sync17-Nov-07 4:45 
QuestionHow to get data from DataGrid to fill into Textbox ? Pin
namnguyenHN16-Nov-07 5:14
namnguyenHN16-Nov-07 5:14 
AnswerRe: How to get data from DataGrid to fill into Textbox ? Pin
John-ph16-Nov-07 5:40
John-ph16-Nov-07 5:40 
QuestionGridview problem Pin
jpmadeira16-Nov-07 5:08
jpmadeira16-Nov-07 5:08 
AnswerRe: Gridview problem Pin
C Mahesh16-Nov-07 17:55
C Mahesh16-Nov-07 17:55 
QuestionLink Button and Java Script Pin
Sarfaraj Ahmed16-Nov-07 4:55
Sarfaraj Ahmed16-Nov-07 4:55 
AnswerRe: Link Button and Java Script Pin
Fred_Smith16-Nov-07 6:11
Fred_Smith16-Nov-07 6:11 
GeneralRe: Link Button and Java Script Pin
Sarfaraj Ahmed16-Nov-07 15:58
Sarfaraj Ahmed16-Nov-07 15:58 
AnswerRe: Link Button and Java Script Pin
Michael Sync16-Nov-07 6:17
Michael Sync16-Nov-07 6:17 
QuestionMissing ASP.NET Templates in Visula Studio 2005 Pin
Suj_7816-Nov-07 4:53
Suj_7816-Nov-07 4:53 
Questionhow to encrypt and decrypt a data in aspdotnet Pin
codeproject_buna16-Nov-07 3:38
codeproject_buna16-Nov-07 3:38 
AnswerRe: how to encrypt and decrypt a data in aspdotnet Pin
Pete O'Hanlon16-Nov-07 4:18
mvePete O'Hanlon16-Nov-07 4:18 
QuestionWeb Parent Control Pin
Eduard Keilholz16-Nov-07 3:23
Eduard Keilholz16-Nov-07 3:23 
AnswerRe: Web Parent Control Pin
jpmadeira16-Nov-07 5:38
jpmadeira16-Nov-07 5:38 
GeneralRe: Web Parent Control Pin
Eduard Keilholz18-Nov-07 20:54
Eduard Keilholz18-Nov-07 20:54 
Questioni want to check or select only one checkbox in the checkboxlist Pin
pavankumarchakilam16-Nov-07 2:20
pavankumarchakilam16-Nov-07 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.