I want to save log out time when user close the Browser without clicking log out button using asp.net with C# and SQL server 2005.
kindly let me know the way as well as code..
Thanks in advance
Hi,
I have an ASP.NET web app. I reference an external .dll, made by another team member.
When first stepping through my code (which calls this dll's class and method), I get an error (runtime of course) stating that the source cannot be found and if I want to step through disassembly.
What causes this? Also, is it possible to add .pdb files to a project's references?
Thanks
I am trying to write a file to a network drive from my asp.Net application and i get this error - Logon failure: unknown user name or bad password. Any ideas?
I am able to write to a local drive line C:/temp
But when I try to save the file to a network drive such as \Server\Folder, I get the error mentioned above.
Any ideas people?
Hi I'm working with a project (asp.net mvc) where I need to show pictures on one site. They gone have jquery and be surrounded by a div like <div><img/></div>
I'm relatively new on MVC so I'm not sure what ways are the best to work in it yet. Should I do a ImageHelper so i can access it like <% Html.ImageJquery() %> or should i just do it plain in the view
what are your thoughts on this?
I have an ASP.NET page in which there is a textbox. The user enters a string in the textbox and I want that string to be searched in Google and redirect the search results to my web page. I'm using VB as the background programming language.
How can I do that? And also which toolbox control should I use in my page, for displaying the search results?
I have developed for SharePoint and in those cases it is clear how workflow can help (You have documents that needs approval and there are built in SharePoint workflows for this)
But now I am doing standard ASP.NET web CRUD apps with WCF. I would like to find a way to get WF 4.0 invovled but I am not sure how to do it and never see any examples....
Can anyone give me some basic scenerios that I could use WF for?
Hi guys what is the difference between the id and name attributes? they both seem to serve the same purpose of providing an identifier.
I would like to know (specifically with regards to ASP.net web forms) whether or not using both is necessary or encouraged for any reasons.
Thanks guys!
We're using the MS Chart for .net, but encountering the "image not found" problem for which there doesn't seem to be a solution.
Are there any alternatives for generating simple charts?
I have seen plugins for VS 2005 and also for C# environment in VS2008 but not able to find for VB.NET environment in VS 2008.I want it to sort for each file, is there any addin for this?
I'm writing a ASP.NET application to process user submitted zip files and limiting my extraction of files from it to only the extensions I want.
I've heard of infected zip files attached to emails and I was wondering if I should be concerned about extracting data from infected zip files in my application. I don't plan on executing the content inside of the zip file, but will opening and extracting from an infected zip file cause the file to execute a virus even if I'm not executing any content inside of the zip file?
Hello,
i need to execute command line from .NET windows application.
I tried with this code but i get error
'C:\Documents' is not recognized as an
internal or external command, operable
program or batch file.
var command ="\"C:\\Documents and Settings\\Administrator\\My Documents\\test.exe\" \"D:\\abc.pdf\" \"C:\\Documents and Settings\\Administrator\\My Documents\\def.pdf\"";
var processInfo = new ProcessStartInfo("cmd","/c " + command)
{
UseShellExecute = false,
RedirectStandardError = true,
CreateNoWindow = true
};
var p = Process.Start(processInfo);
I would like to get the Employee-ID for the currently logged in user. Is that easily available in some .Net class or do I need to do some sort of LDAP query?
Any tips welcome
I am working on asp.net mvc project using views and partial views.
Multiple partial views are being rendered in single view. Now my problem is that when ever i update some values in partial view and render it again through controller it does not show partial view with updated value.... to see updated value i have to refresh the page each time.
I am working on a Custom WebPart, for which I need an application page to render a PDF file.
I am currently using following link
http://support.microsoft.com/kb/306654
It works fine in ASP.NET, but gives a blank page in SharePoint.
I assume I would need a special centronics cable to do this, but is it possible to get the print data from the remote device and convert it to a image file in .Net?
thanks,
Jason
I had a web reference set in my VS2008 ASP.NET project, but due to some source control weirdness it is no longer listed in the project.
I have the set of files in the Web References folder under my project. There's a .wsdl, .disco and several .datasource files.
Is there any way to re-add this web reference through the existing files rather than using the "Add Web Reference" dialog?
Is it possible to use pure Encrypting and Decrypting keys instead of private and public keys? As I know in .Net asymmetric RSA implementation private key RSAParameters parameters = (new RSACryptoServiceProvider()).ExportParameters(true) is a superset of public key. And using private key we can both encrypt and decrypt our data. But I need key only for decrypting data. How to do it?
I experimented on nulling RSAParameters fields, but RSACryptoServiceProvider object can't import such parameters.
Hello,
are there free, recommendable Tools for data modeling?
ERM/ORM Diagrams
Creating database models (SQL SERVER
2005)
Simple to use like Visio(no license
here)
Code generation is only a nice to
have (VB.Net)
I am using xVal in a ASP.NET MVC project. One of the forms has two buttons and i want to disable the client side validation when one of the buttons is clicked. Is there a way to conditionally disable client side validation in xVal?
I have a GridView on my ASP.NET page. What I want is to execute a function when I click
on the row, and I also want to change the style of this row. I don't want to use the select button of type command field. Any help please?
Hi,
i want to display thumbnails for videos listed on my site, i want to fetch a single frame from a video (from a particular time) and display them as thumbnails.
Is that possible using .Net ? (C# or VB)
My .NET exe is signed using signtool.
Using this code, I can verify the validity of the certificate itself:
var cert = X509Certificate.CreateFromSignedFile("application.exe");
var cert2 = new X509Certificate2(cert.Handle);
bool valid = cert2.Verify();
However, this only checks the certificate itself, and not the signature of the EXE. Therefore, if the EXE is tampered with, this method doesn't detect it.
How can I check the signature?