|
Thanks Eddy. I will surely send a copy to you when I submit my article to my manager.
Regards,
Sunny
|
|
|
|
|
Thanks
If it's for a manager who needs to decide between the frameworks, be sure to check and highlight;
- what the most common type of framework for your users is
- the competence-level of the available developers for each framework
- whether you'll need to support any platform beyond Windows'
I are troll
|
|
|
|
|
|
If your question is urgent, why waste time posting a question here waiting for somebody to wander by? A simple google turned this list[^] up - there must be something in there you can use. Please, learn to use google before posting.
|
|
|
|
|
Hi
I am new in develoment can please any one help.
I have had menu id "Menu3" in Menu.ascx file and i have .aspx pages. Menu3 has 4 options and every option has its own sub options Here is main structure of Menu3
Report Data Operation Logout
I have two categories of users Admins and non Admins. I don't want to show "Operation" to non-admins. I need to decide at login time.I had saved admin flag in Session (user is admin or not)
but how can i disable "operation" if flag is false in .aspx page_load event.
I already include Menu.ascx in aspx pages.
I am using VS2008.
thanks
|
|
|
|
|
Take a look at using the Membership and Role providers with .NET. Set up a sitemap to control the menu that appears, and attach the Admin role to the ones you want only the Admin users to see. This[^] should help.
By the way, please ask questions about ASP.NET in the ASP.NET forum in future.
|
|
|
|
|
You can do it inside the Page_Load event in Menu.ascx webcontrol. Just check the Session and disable the option.
Regards,
Leonardo Muzzi
|
|
|
|
|
I am currently writing a custom toolbox window for Visual Studio 2008, using the SDK. When the user drags from the list, I start a drag drop operation using ToolboxItem as the drag data.
ToolboxItem tbi = new ToolboxItem(myControlType);
IToolboxService serviceToolBox = (IToolboxService)GetService( typeof(IToolboxService));
object tbiSerialized = serviceToolBox.SerializeToolboxItem(tbi);
this.DoDragDrop(tbiSerialized, DragDropEffects.Copy);
When they drop the ToolBoxItem, I use the 'ToolboxItem.ComponentsCreated' event to write some extra setup code on the control
void dropToolBoxItem_ComponentsCreated(object sender, ToolboxComponentsCreatedEventArgs e)
{
// write custom control config code here
}
However, I'm finding that I sometimes want control over the ToolboxItem control type, based on UI conditions during the drag. For example, I may want to create a different control on the designer if the user holds down the shift key. Sometimes I want to block the drop completely. Unfortunately, I don't see a way to change the ToolboxItem after I start the drag. It seems like the 'ToolboxItem.ComponentsCreating' event was meant for this kind of intervention, but I can't change the control type when the 'ToolboxItem.ComponentType' property is read only.
I've tried a few hacks (like deleting the control after drop and re-creating the new control type), but none of it has worked out very well. Anyone have any ideas?
Thanks,
Aaron
|
|
|
|
|
Hi. Subject pretty much says it all.
My C# application spends a lot of time consuming data from a web service, and I want to provide a mechanism which allows me
to count the total number of bytes entering and leaving the application over time.
Have tried a few google searches, but they're yet to turn up anything useful.
-Nick
|
|
|
|
|
I have CR template and Desktop Apps that access the CRViewer and convert them into PDF. The problem is that once the application installed on another PC without VS2005 installed the Program corrupted and would not run.
I have add references for all Crystal dlls.
'Export Crystal Report to PDF
Dim cryRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
cryRpt.Load(Application.StartupPath + "\Rpt\_Plant.rpt")
CrystalReportViewer1.ReportSource = cryRpt
CrystalReportViewer1.Refresh()
Dim CrExportOptions As CrystalDecisions.Shared.ExportOptions
Dim CrDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions
Dim CrFormatTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions
Dim ExportDestinationType As New CrystalDecisions.Shared.ExportDestinationType
Dim ExportFormatType As New CrystalDecisions.Shared.ExportFormatType
CrDiskFileDestinationOptions.DiskFileName = dtSvr.Rows(0).Item("Outstring") + "Daily Analysts\" + NowDate + ".pdf"
CrExportOptions = cryRpt.ExportOptions
With CrExportOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
.DestinationOptions = CrDiskFileDestinationOptions
.FormatOptions = CrFormatTypeOptions
End With
cryRpt.Export()
cryRpt.Close()
CrystalReportViewer1.DataBindings.Clear()
|
|
|
|
|
I have intergrated with Active Directory But i wana Give access to Groups in Active Directory...
I dont want HR group to access my page Only IT and other Groups in AD can access...
Can some one help and send me the code...
Login.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.DirectoryServices;
public partial class Login : System.Web.UI.Page
{
public string myEmployeeID;
protected void Page_Load(object sender, EventArgs e)
{
}
private bool Authenticate(string domain, string txtusername, string txtpassword)
{
bool authentic = false;
try
{
DirectoryEntry entry = new DirectoryEntry("LDAP://" + domain,
txtusername, txtpassword);
object nativeObject = entry.NativeObject;
authentic = true;
}
catch (DirectoryServicesCOMException) { }
return authentic;
}
protected void Button1_Click(object sender, EventArgs e)
{
string adPath = ConfigurationSettings.AppSettings["strADPathVar"].ToString(); ;
//Authenticate adAuth = new Authenticate(adPath);
try
{
string strDomain = ConfigurationSettings.AppSettings["strdomainVar"].ToString();
if (true == Authenticate(strDomain, txtusername.Text, txtpassword.Text))
{
string groups = "";
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, // version
txtusername.Text,
DateTime.Now,
DateTime.Now.AddMinutes(60),
false, groups);
// Now encrypt the ticket.
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
// Redirect the user to the originally requested page
Response.Redirect(FormsAuthentication.GetRedirectUrl(txtusername.Text, false));
}
else
{
lblError.Text = "Error: Unknown user ID or bad password.";
}
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
sheeba
|
|
|
|
|
Wrong board it appears...
Try ASP.NET[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi ,
I am developing mobile web application. I want to make readonly selectionlist item in ASP.net. How to make it?
Thanks!!
|
|
|
|
|
Wrong board it appears...
Try ASP.NET[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a scenario where I have an application that allows a user to open mulitple documents on different tabs within the application.
If the application is already running and the user opens a file associated with my application from Windows Explorer, how can I get the document to open in the instance of my application that is already executing as opposed to opening a new instance of the application?
I have seen posts that check whether or not a process / application is already running. In the examples I have seen, if the application is already running a messagebox is just displayed indicating as such. However, in my case, I need to assign the document to the executing instance of the application.
Any help would be appreciated?
|
|
|
|
|
Hi,
don't post the same message in multiple forums, pick the most appropriate forum and stick to it.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi
Can anybody recommend me a good obfuscation tool for .net code.
Any advice will be appreciated,
Uros
|
|
|
|
|
Dotfuscator Community Edition, gets installed with Visual Studio. You can find it in the start-menu under the Visual Studio Tools, and it gets installed under
C:\Program Files\Microsoft Visual Studio 9.0\Application\PreEmptive Solutions\Dotfuscator Community Edition\dotfuscator.exe"
No experience with other obfuscators, sorry.
I are troll
|
|
|
|
|
I didn't know that. Thanks for your quick reply!
Uros
|
|
|
|
|
You're welcome
I are troll
|
|
|
|
|
Xenocode is good but not cheap.
|
|
|
|
|
I like EZIRIZ .NET Reactor.
Great Product, Great Price.
|
|
|
|
|
i developing a windows application with C# and that application need database . so i used sql server2005 for that. It is purely for a stand alone system. so that i cant deploydatabase online.
so how to add sql database to deploying file and who to maintain conntection string , and how back up the datafile when he require.
1. is sql express required in client system?
2. If not how to deploy all data in my data base including structure?
3. and awhat is procedure for entaire deployment of application with sql database?
Thanks in advance.
|
|
|
|
|
You can't redistribute SQL Server 2005 per application without the associated license costs.
It sounds like you want an embedded database that you can use from .NET. Why don't you look at System.Data.SQLite[^], the excellent C-based embedded relational database with .NET bindings. The authors have placed it in the public domain which will allow you to redistribute it willy-nilly.
Best of all, you can "pre-load" the database and distribute the data with your application!
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
I had some free time between projects, so I thought it would be a good time to install this on my development box, and see what needed fixed.
The install went great, no problems, I installed the "family" update that came out not long ago, also went great, and turned on Visual studio.
I opened up my current project (website) and built it. It failed on "using System.Web.Extensions" "are you missing an assembly reference?"
I removed and added the reference several times, no effect.
I repaired .net and visual studio, no effect.
I found a blog that talked about uninstalling the .dll from the GAC and adding the pre-sp1 .dll to the project directly, still no effect.
Has anyone seen this? if so,is there a fix or workaround that I can do, so sp1 works?
If not, is there a safe, easy way to uninstall the sp1's?
Thank you
|
|
|
|