|
As a more sensible answer. There are open source projects out there that already do this. Why don't you look for them?
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
How to add or show a web part in grid view . we ahpuld be able to move the webpart in the grid view
|
|
|
|
|
Hi.
Here's my situation...
I'm currently working on an ASP.net application that uses the OWC11 components and I'm putting it on a client's machine that's running Windows Vista. I've been able to upgrade all of my code to work with Vista (MySQL, etc), however, I'm hitting a brick wall with OWC11. Everytime I use the ExportPicture method from the ChartSpace class, I get a blank image on the Vista server. However, I will also mention that the exact same code works perfectly on a server with Windows XP Pro SP2, with the same components installed (.Net 3.0, OWC11, and so on).
I've tried regestering the OWC11.dll file using regsvr32 OWC11.dll on the Vista machine, but that has proven to be of no help to my current situation.
Is there a setting in the IIS Management Console that I'm missing on the Vista computer?
Any suggestions are appreciated!
Thanks in advance,
Mitch F.
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
|
|
|
|
|
How to check while submitted emailid is exit or not.
|
|
|
|
|
swami samarth wrote: How to check while submitted emailid is exit or not.
Send an email and see if it bounces.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
I want a sample code for it
|
|
|
|
|
Realistically you cannot. Some mail takes days to bounce, and it's not really a sociable thing to do in any case. You'd have to write a mail program to check for bounced mail, and to track what mail you had sent.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to get the plain text of my harshed password and send the plain text thru email to users of my page. I used something like this but didnt work
strPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(oReader("MyPassword").Trim, "SHA1")
pls any help will be appreciated.
t.aransiola
|
|
|
|
|
aransiola wrote: I want to get the plain text of my harshed password and send the plain text thru email to users of my page
You can't. Hashing is a one way encryption. You cannot reverse the process.
The only way to get the plain text back is by brute force. You cycle through all possible passwords until the hash values match up. This is an increadibly expensive operation.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
You can't.
You can configure membership to store the passwords using reversible encryption.
Are you implementing a forgotton password feature? There's already a password recovery control that handles this for you.
|
|
|
|
|
Hello all,
I have a web application, which I had developed few years ago with ASP .NET 1.1
Today, I would like to deploy the web application to client, using ASP .NET 2.0 + UltiDev Cassini 2.0
I locate my whole project in a folder named C:\website\GOWatch
My setting in UltiDev Cassini 2.0 is as follow :
Application = GoWatch
Port Number = 2040
Physical Path = C:\website\GOWatch
When I try to access an URL http://localhost:2040/DesktopPC/login/Login.aspx (The login.aspx is located physically at C:\website\GOWatch\DesktopPC\login\Login.aspx), I get the following error :
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 7:
Line 8: <system.web>
Line 9: <authentication mode="Forms">
Line 10: <forms name=".ASPXUSERDEMO" loginUrl="http://10.0.38.4/GoWatch/DesktopPC/login/login.aspx" protection="All" timeout="5" />
Line 11: </authentication>
Source File: C:\website\GOWatch\desktoppc\login\web.config Line: 9
In my entire application, any sub folder with web.config will have the similar error.
Please take note that, there are NO web.config in C:\website\GOWatch, is this the root cause of the error?
Here is the content of my web.config in C:\website\GOWatch\desktoppc\login\web.config
<configuration>
<appSettings>
<add key="ConnectionString" value="server=GOWATCHSERVER\NetSDK; trusted_connection=true; Database=Gowatch" />
<add key="mailserver" value="GowatchServer" />
</appSettings>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXUSERDEMO" loginUrl="http://10.0.38.4/GoWatch/PocketPC/login/login.aspx" protection="All" timeout="5" />
</authentication>
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
<deviceFilters>
<filter name="supportsJavaScript" compare="Javascript" argument="true"/>
</deviceFilters>
</system.web>
<location path="protected">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
Help are very much appreciated! Thank you.
cheok
|
|
|
|
|
Hi,
Well, story goes like this: I need mechanism for authentication/authorization for .NET 2.0 based web service. There is a webservice exposing number of methods. I want only authorized users to call its methods. Authorization is done against custom database.
I have very short time - can anybody suggest quick + EASY tutorial / book reference using which I can easily implement the solution? I do not want to send Soap Auth headers/ user name - password with each and every request.
Regards,
-------------------
Therez No Place like ... 127.0.0.1
|
|
|
|
|
Surely the moment you expose a method that doesn't take the password, anyone can call it, by definition ?
Oh - unless you store authorised IP addresses, I guess.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Please let me know how to access a function in user control on my Webpage.
.ascx:
public bool checkValues()
{
....}
how to call it in .aspx page!!!!
Plz let me know.
Many Thanks,
Vijay
|
|
|
|
|
it is simple
you just call user control name (ID) and then method like this :
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
UC1.checkValues();
}
}
|
|
|
|
|
If the user control is placed in the aspx page then you can
controlName.functionName()
when you drag and drop the user control only the html code will get modified automatically(adding the Register directive and user control), not the code-behind file. After adding the control to the page you have to explicitly add the instance of that user control in the code behind(Web Form Designer Generated Code) of the aspx page...
something like this
Protected WithEvents WebUserControl1 As AppName.WebUserControl1
then you will be able to access the function written in the user control...
Regards John
|
|
|
|
|
Thank you for quick reply,
Please let me know in my
.ascx page
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="My_test.ascx.cs" Inherits="MyControl" %>
.ascx.cs page
public bool checkValues()
{
...
}
How to call it in my Test.aspx.cs page
I have placed
protected System.Web.UI.UserControl My_test; am i doing any thing wrong here in my aspx.cs page
But I can't call the checkValues() in Test.aspx
plz let me know
|
|
|
|
|
You have created an Object(User Control) with name My_Test. This is not what I exactly described. you create an instance of that user control you added to the aspx page.
How do we access a function written in a class. we create an instance of that class and call the function with the instance. the user control you created is also a class inherits the base calss UserControl.
ok... there will be a ID for the usercontrol placed in the aspx page right.. and you application will have a NameSpace right...
say for an example ID is "Ucl1" and NameSpace of your Application is "TestApp"
then the statement...
protected TestApp.My_test Ucl1;
Ucl1.checkValues()
Regards John
|
|
|
|
|
Thank U very much, we did not use NameSpaces in our test application. We thought by placing some thing like this we can access it.
protected System.Web.UI.UserControl CaptchaControl;
Now we will place namespaces and test it.
Is there No other way we can access user control functions with out using namespace.?
Thank U.
Regards,
Vijay
|
|
|
|
|
hi
i open a window in one of my web forms with follow java script code
window.open(...);
and now want to when user close second page ,notify to first form .
how can i do this ?
tanks
|
|
|
|
|
m using LoginName control inside LoginView control to get user name dat is sign in .now i wanna get the values of LaginName for sql databse connectivity.plz help
recards
Ahmad
|
|
|
|
|
Hi friends,
my application needs to handle all the events of browser closure. The differents events are
1) close the browser using the "X" button
2)Close the browser window using ALT+F4 key
3)Close the window when its in fully minimised state and using the close option from the pop up window that comes when right clicked using mouse.
in all the above condition i want to fire my c# code.
then how can i handle this situation
actual problem is that i want to call the logout page at browse close
plz help me some
-- modified at 5:11 Saturday 25th August, 2007
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
you can't call the logout page on the close button click. but you can prompt a message to stay on the current page. To do this call a javascript function on the onbeforeunload event..
try something like this...
<script language="javascript"><br />
function CaptureClose(){<br />
return false;<br />
}<br />
</script><br />
<br />
<body onbeforeunload="return CaptureClose();">
Regards John
|
|
|
|
|
very very thanks for reply
but i have to save the logout time in database then how can i do it?
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
when the user closes the browser window, actually he is not logging out. his session remain's active until the session timeout is reached. If you want to save the logout time, you can do when the session ends.
Regards John
|
|
|
|