ASP.NET - I keep getting the invalid question when creating a user in asp.net  ASP.NET - I keep getting the invalid question when creating a user in asp.net

Asked By matt cupryk
29-Dec-10 12:36 AM
I keep getting the invalid question when creating a user in asp.net
     
  
if ((CaptchaTextBox.Text == Session["CaptchaImageText"].ToString()) && Page.IsValid)
  
  
try 
  
{
  
   
  
MembershipCreateStatus status;MembershipUserCollection mucName = Membership.FindUsersByName(txtUserName.Text);MembershipUserCollection mucEmail = Membership.FindUsersByEmail(txtMailFrom.Text);string CreateStatus = CreateUserOnTheFly(txtUserName.Text, txtPassword.Text, txtMailFrom.Text);  ----> is where I am getting invalid question.
  
   
  
view plaincopy to clipboardprint?
01.<?xml version="1.0"?>   
02.<configuration>   
03.    <configSections>   
04.      <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>   
05.      <section name="OmegaLove" type="OmegaLove.OmegaLoveSection, __code"/>   
06.      <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">   
07.        <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">   
08.          <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>   
09.          <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">   
10.            <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>   
11.            <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>   
12.            <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>   
13.            <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>   
14.          </sectionGroup>   
15.        </sectionGroup>   
16.      </sectionGroup>   
17.    </configSections>   
18.  
19.  
20.  
21.    <appSettings>   
22.      <add key="OnlineTimeout" value="300"/>   
23.      <add key="pagetitle" value="OmegaLove Version 1.0"></add>   
24.      <add key="sitelogo" value="omegalovelogo.jpg"></add>   
25.      <add key="webmasteremail" value="webmaster@omegalove.com"></add>   
26.  
27.      <add key="advertiseemail" value="sales@omegalove.com"></add>   
28.      <add key="WebSiteName" value="OmegaLove.com"/>   
29.      <add key="subtitle" value="Make Friends,Find Love"/>   
30.  
31.      <add key="adminrolename" value="admin"></add>   
32.      <add key="adminfolder" value="admin"></add>   
33.      <add key="imagefolder" value="images"></add>   
34.      <add key="omegaloveConnectionString" value="Data Source=72.18.146.251,1533;Initial Catalog=omegalove;Persist Security Info=True;User ID=administrator;Password=......"/>   
35.      <add key="LogName" value="EmpostErrLog"/>   
36.      <!-- after initial installation its a good idea to set this to false. If you sign in as admin before doing upgrades you can leave this as false.-->   
37.      <add key="DisableSetup" value="false"/>   
38.      <add key="ShowConnectionErrorOnSetup" value="true"/>   
39.      <!-- you should not change this unless you implemented your own custom login page -->   
40.      <!--<add key="LoginPageRelativeUrl" value="Home.aspx" />-->   
41.      <add key="UseCultureOverride" value="false"/>   
42.      <add key="DefaultCountry" value="US"/>   
43.      <add key="EnableNewsletter" value="true"/>   
44.      <add key="MemberListPageSize" value="20"/>   
45.      <add key="SearchResultsPageSize" value="10"/>   
46.      <add key="EmailServer" value="mail.omegalove.com"/>   
47.      <add key="EmailPort" value="25"/>   
48.      <add key="EmailAdmin" value="webmaster@omegalove.com"/>   
49.      <add key="EmailPassword" value="......"/>   
50.      <add key="EmailAlerts" value="7"/>   
51.      <add key="AutoApprove" value="Y"/>   
52.    </appSettings>   
53.  
54.    <!--<system.net>   
55.      <mailSettings>   
56.        <smtp from="webmaster@omegalove.com">   
57.          <network host="mail.omegalove.com" password="......" userName="webmaster@omegalove.com"/>   
58.        </smtp>   
59.      </mailSettings>   
60.    </system.net>-->   
61.    <OmegaLove defaultConnectionStringName="LocalSqlServer">   
62.      <contactForm mailTo="webmaster@omegalove.com"/>   
63.    </OmegaLove>   
64.    <connectionStrings>   
65.      <remove name="LocalSqlServer" />   
66.      <add name="LocalSqlServer" connectionString="Data Source=72.18.146.251,1533;Initial Catalog=dbaspnet;Persist Security Info=True;User ID=adminaspnet;Password=......" providerName="System.Data.SqlClient" />   
67.      <add name="omegaloveConnectionString" connectionString="Data Source=72.18.146.251,1533;Initial Catalog=omegalove;Persist Security Info=True;User ID=administrator;Password=......" providerName="System.Data.SqlClient" />   
68.      <add name="dbaspnetConnectionString" connectionString="Data Source=72.18.146.251,1533;Initial Catalog=dbaspnet;Persist Security Info=True;User ID=adminaspnet;Password=......" providerName="System.Data.SqlClient" />   
69.    </connectionStrings>   
70.  
71.    <system.web>   
72.      <authorization>   
73.        <allow users="?" />   
74.      </authorization>   
75.      <trace enabled="true"/>   
76.      <!-- maxRequestLength: the limit for the input stream buffering threshold, in KB.   
77.      The value 1048576 is for 1 GB (1024 x 1024 KB).   
78.      executionTimeout: Specifies the maximum number of seconds -->   
79.      <httpRuntime maxRequestLength="2097151" waitChangeNotification="1" maxWaitChangeNotification="3600"/>   
80.      <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="en-US" uiCulture="en-US"/>   
81.      <!--  
82.        Set compilation debug="true" to insert debugging  
83.        symbols into the compiled page. Because this  
84.        affects performance, set this value to true only  
85.        during development.   
86.      -->   
87.      <compilation debug="true" defaultLanguage="c#">   
88.        <assemblies>   
89.          <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>   
90.          <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>   
91.          <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>   
92.          <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>   
93.          <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
94.          <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>   
95.          <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>   
96.        </assemblies>   
97.      </compilation>   
98.  
99.      <authentication mode="Forms">   
100.        <forms name=".ASPXFORMSAUTH" loginUrl="~/Login.aspx" timeout="20" path="/" defaultUrl="~/Secure/ViewProfile.aspx"/>   
101.      </authentication>   
102.  
103.      <membership defaultProvider="OL_MembershipProvider" userIsOnlineTimeWindow="40">   
104.        <providers>   
105.          <add name="OL_MembershipProvider" connectionStringName="LocalSqlServer" applicationName="/" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />   
106.        </providers>   
107.      </membership>   
108.  
109.      <profile defaultProvider="OmegaLoveProfileProvider" inherits="OmegaLove.BLL.CustomProfile">   
110.        <providers>   
111.          <add name="OmegaLoveProfileProvider" type="System.Web.Profile.SqlProfileProvider" applicationName="/" connectionStringName="LocalSqlServer" />   
112.        </providers>   
113.      </profile>   
114.  
115.      <machineKey validationKey="287C5D125D6B7E7223E1F719E3D58D17BB967703017E1BBE28618FAC6C4501E910C7E59800B5D4C2EDD5B0ED98874A3E952D60BAF260D9D374A74C76CB741803" decryptionKey="5C1D8BD9DF3E1B4E1D01132F234266616E0D5EF772FE80AB" validation="SHA1"/>   
116.      <sessionState mode="InProc" cookieless="false" timeout="20"/>   
117.      <anonymousIdentification enabled="true"/>   
118.  
119.       
120.  
121.      <pages validateRequest="false">   
122.        <namespaces>   
123.          <add namespace="System"/>   
124.          <add namespace="System.Linq"/>   
125.          <add namespace="System.IO"/>   
126.          <add namespace="System.Data"/>   
127.          <add namespace="System.Data.SqlClient"/>   
128.          <add namespace="System.Diagnostics"/>   
129.          <add namespace="System.Xml"/>   
130.          <add namespace="System.Security.Cryptography"/>   
131.          <add namespace="System.Security.Cryptography.Xml"/>   
132.          <add namespace="System.Globalization"/>   
133.        </namespaces>   
134.        <controls>   
135.          <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>   
136.          <add tagPrefix="OmegaLove" tagName="ctrlLogin" src="~/Controls/ctrlLogin.ascx"/>   
137.          <add tagPrefix="OmegaLove" tagName="ctrlSettings" src="~/Controls/ctrlSettings.ascx"/>   
138.          <add tagPrefix="OmegaLove" tagName="ctrlMatches" src="~/Controls/ctrlMatches.ascx"/>   
139.          <add tagPrefix="OmegaLove" tagName="ctrlViewedMe" src="~/Controls/ctrlViewedMe.ascx"/>   
140.          <add tagPrefix="OmegaLove" tagName="ctrlArticles" src="~/Controls/ctrlArticles.ascx"/>   
141.          <add tagPrefix="OmegaLove" tagName="ctrlAstrology" src="~/Controls/ctrlAstrology.ascx"/>   
142.          <add tagPrefix="OmegaLove" tagName="ctrlPhotos" src="~/Controls/ctrlPhotos.ascx"/>   
143.          <add tagPrefix="OmegaLove" tagName="ctrlLogo" src="~/Controls/ctrlLogo.ascx"/>   
144.          <add tagPrefix="OmegaLove" tagName="ctrlFooter" src="~/Controls/ctrlFooter.ascx"/>   
145.          <add tagPrefix="OmegaLove" tagName="ctrlHeaderMenu" src="~/Controls/ctrlHeaderMenu.ascx"/>   
146.          <add tagPrefix="OmegaLove" tagName="ctrlLeftNavigationMenu" src="~/Controls/ctrlLeftNavigationMenu.ascx"/>   
147.          <add tagPrefix="OmegaLove" tagName="ctrlUserProfile" src="~/Controls/ctrlUserProfile.ascx"/>   
148.          <add tagPrefix="OmegaLove" tagName="ctrlBreadCrumb" src="~/Controls/ctrlBreadCrumb.ascx"/>   
149.          <add tagPrefix="OmegaLove" tagName="ctrlWorkFlowButton" src="~/Controls/ctrlWorkFlowButton.ascx"/>   
150.          <add tagPrefix="OmegaLove" tagName="ctrlCurrentUser" src="~/Controls/ctrlCurrentUser.ascx"/>   
151.          <add tagPrefix="OmegaLove" tagName="ctrlHome" src="~/Controls/ctrlHome.ascx"/>   
152.          <add tagPrefix="OmegaLove" tagName="ctrlAboutUs" src="~/Controls/ctrlAboutUs.ascx"/>   
153.          <add tagPrefix="OmegaLove" tagName="ctrlContactUs" src="~/Controls/ctrlContactUs.ascx"/>   
154.          <add tagPrefix="OmegaLove" tagName="ctrlInfoBlock" src="~/Controls/ctrlInfoBlock.ascx"/>   
155.          <add tagPrefix="OmegaLove" tagName="ctrlSiteTreeView" src="~/Controls/ctrlSiteTreeView.ascx"/>   
156.          <add tagPrefix="OmegaLove" tagName="ctrlRegistered" src="~/Controls/ctrlRegistered.ascx"/>   
157.          <add tagPrefix="OmegaLove" tagName="ctrlRegister" src="~/Controls/ctrlRegister.ascx"/>   
158.          <add tagPrefix="OmegaLove" tagName="ctrlActivate" src="~/Controls/ctrlActivate.ascx"/>   
159.          <add tagPrefix="OmegaLove" tagName="ctrlUserProfile" src="~/Controls/ctrlUserProfile.ascx"/>   
160.          <add tagPrefix="OmegaLove" tagName="ctrlAgreement" src="~/Controls/ctrlAgreement.ascx"/>   
161.          <add tagPrefix="OmegaLove" tagName="ctrlTopBanner" src="~/Controls/ctrlTopBanner.ascx"/>   
162.          <add tagPrefix="OmegaLove" tagName="ctrlComingSoon" src="~/Controls/ctrlComingSoon.ascx"/>   
163.          <add tagPrefix="OmegaLove" tagName="ctrlMembers" src="~/Controls/ctrlMembers.ascx"/>   
164.          <add tagPrefix="OmegaLove" tagName="ctrlSearch" src="~/Controls/ctrlSearch.ascx"/>   
165.          <add tagPrefix="OmegaLove" tagName="ctrlShowMessage" src="~/Controls/ctrlShowMessage.ascx"/>   
166.          <add tagPrefix="OmegaLove" tagName="ctrlBlockUsers" src="~/Controls/ctrlBlockUsers.ascx"/>   
167.          <add tagPrefix="OmegaLove" tagName="ctrlFavorites" src="~/Controls/ctrlFavorites.ascx"/>   
168.          <add tagPrefix="OmegaLove" tagName="ctrlInbox" src="~/Controls/Inbox.ascx"/>   
169.          <add tagPrefix="OmegaLove" tagName="ctrlActions" src="~/Controls/Actions/ctrlActions.ascx"/>   
170.          <add tagPrefix="OmegaLove" tagName="ctrlMessageUserButtons" src="~/Controls/MessageUserButtons.ascx"/>   
171.          <add tagPrefix="OmegaLove" tagName="ctrlSendMessage" src="~/Controls/Messages/SendMessage.ascx"/>   
172.          <add tagPrefix="OmegaLove" tagName="ctrlOutbox" src="~/Controls/Outbox.ascx"/>   
173.          <add tagPrefix="OmegaLove" tagName="ctrlWhosOnline" src="~/Controls/ctrlWhosOnline.ascx"/>   
174.          <add tagPrefix="OmegaLove" tagName="ctrlShowImages" src="~/Controls/Gallery/ctrlShowImages.ascx"/>   
175.          <add tagPrefix="OmegaLove" tagName="ctrlShowSentMessages" src="~/Controls/ctrlShowSentMessages.ascx"/>   
176.          <add tagPrefix="OmegaLove" tagName="ctrlPrivateMessaging" src="~/Controls/ctrlPrivateMessaging.ascx"/>   
177.          <add tagPrefix="OmegaLove" tagName="ctrlPrivateMessagesInbox" src="~/Controls/PrivateMessages/PrivateMessagesInbox.ascx"/>   
178.          <add tagPrefix="OmegaLove" tagName="ctrlPrivateMessagesView" src="~/Controls/PrivateMessages/PrivateMessagesView.ascx"/>   
179.          <add tagPrefix="OmegaLove" tagName="ctrlPrivateMessagesSend" src="~/Controls/PrivateMessages/PrivateMessagesSend.ascx"/>   
180.          <add tagPrefix="OmegaLove" tagName="ctrlPrivateMessagesSentItems" src="~/Controls/PrivateMessages/PrivateMessagesSentItems.ascx"/>   
181.          <add tagPrefix="OmegaLove" tagName="ctrlCaptcha" src="~/Controls/ctrlCaptcha.ascx"/>   
182.          <add tagPrefix="OmegaLove" namespace="OmegaLove.Validators" assembly="OmegaLove.Validators"/>   
183.          <add tagPrefix="OmegaLove" namespace="OmegaLove.DatePicker" assembly="OmegaLove.DatePicker"/>   
184.          <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
185.          <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
186.        </controls>   
187.      </pages>   
188.      <customErrors defaultRedirect="" mode="Off">   
189.        <error statusCode="404" redirect="~/Error.aspx?code=404"/>   
190.        <error statusCode="408" redirect="~/Error.aspx?code=408"/>   
191.        <error statusCode="505" redirect="~/Error.aspx?code=505"/>   
192.      </customErrors>   
193.      <httpHandlers>   
194.        <remove verb="*" path="*.asmx"/>   
195.        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
196.        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
197.        <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
198.      </httpHandlers>   
199.      <httpModules>   
200.        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
201.      </httpModules>   
202.    </system.web>   
203.    <system.web.extensions>   
204.      <scripting>   
205.        <webServices>   
206.          <jsonSerialization maxJsonLength="50000000"/>   
207.          <authenticationService enabled="true" requireSSL="false"/>   
208.        </webServices>   
209.        <scriptResourceHandler enableCompression="true" enableCaching="true"/>   
210.      </scripting>   
211.    </system.web.extensions>   
212.    <system.webServer>   
213.      <handlers>   
214.        <remove name="WebServiceHandlerFactory-Integrated"/>   
215.        <remove name="ScriptHandlerFactory"/>   
216.        <remove name="ScriptHandlerFactoryAppServices"/>   
217.        <remove name="ScriptResource"/>   
218.        <remove name="ChartImage_axd"/>   
219.        <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
220.        <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
221.        <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
222.      </handlers>   
223.      <security>   
224.        <requestFiltering>   
225.          <requestLimits maxAllowedContentLength="1048576"/>   
226.          <requestLimits maxAllowedContentLength="2147482624"/>   
227.        </requestFiltering>   
228.      </security>   
229.      <validation validateIntegratedModeConfiguration="false"/>   
230.      <modules>   
231.        <remove name="ScriptModule"/>   
232.        <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>   
233.      </modules>   
234.    </system.webServer>   
235.    <system.net>   
236.      <mailSettings>   
237.        <smtp from="webmaster@omegalove.com">   
238.          <network host="mail.omegalove.com" password="......" port="25" userName="webmaster@omegalove.com"/>   
239.        </smtp>   
240.      </mailSettings>   
241.    </system.net>   
242.  
243.    <!--<location path="Secure">   
244.      <system.web>   
245.        <authorization>   
246.          <deny users="*" />   
247.        </authorization>   
248.      </system.web>   
249.    </location>-->   
250.  
251.    <location path="Images">   
252.      <system.web>   
253.        <authorization>   
254.          <allow users="*"/>   
255.        </authorization>   
256.      </system.web>   
257.    </location>   
258.  
259.    <location path="Controls">   
260.      <system.web>   
261.        <authorization>   
262.          <allow users="*"/>   
263.        </authorization>   
264.      </system.web>   
265.    </location>   
266.  
267.    <location path="Handlers">   
268.      <system.web>   
269.        <authorization>   
270.          <allow users="*"/>   
271.        </authorization>   
272.      </system.web>   
273.    </location>   
274.  
275.  
276.    <location path="Secure/ContactUs.aspx">   
277.      <system.web>   
278.        <authorization>   
279.          <deny users="*"/>   
280.        </authorization>   
281.      </system.web>   
282.    </location>   
283.  
284.    <location path="Secure/Register.aspx">   
285.      <system.web>   
286.        <authorization>   
287.          <allow users="*"/>   
288.        </authorization>   
289.      </system.web>   
290.    </location>   
291.  
292.    <location path="Secure/WhosOnline.aspx">   
293.      <system.web>   
294.        <authorization>   
295.          <allow users="*"/>   
296.        </authorization>   
297.      </system.web>   
298.    </location>   
299.  
300.    <log4net>   
301.      <appender name="AdoNetAppender_SqlServer" type="log4net.Appender.AdoNetAppender">   
302.        <connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>   
303.        <connectionString value="Data Source=72.18.146.251,1533;Initial Catalog=omegalove;Persist Security Info=True;User ID=administrator;Password=......" providerName="System.Data.SqlClient"/>   
304.        <commandText value="INSERT INTO tbl_log4net ([Date],[Level],[Logger],[User],[Message],[Exception],[Thread]) VALUES (@log_date, @log_level, @logger, @user, @message, @exception, @thread)"/>   
305.        <parameter>   
306.          <parameterName value="@log_date"/>   
307.          <dbType value="DateTime"/>   
308.          <layout type="log4net.Layout.RawTimeStampLayout"/>   
309.        </parameter>   
310.        <parameter>   
311.          <parameterName value="@log_level"/>   
312.          <dbType value="String"/>   
313.          <size value="50"/>   
314.          <layout type="log4net.Layout.PatternLayout">   
315.            <conversionPattern value="%p"/>   
316.          </layout>   
317.        </parameter>   
318.        <parameter>   
319.          <parameterName value="@logger"/>   
320.          <dbType value="String"/>   
321.          <size value="255"/>   
322.          <layout type="log4net.Layout.PatternLayout">   
323.            <conversionPattern value="%c"/>   
324.          </layout>   
325.        </parameter>   
326.        <parameter>   
327.          <parameterName value="@user"/>   
328.          <dbType value="String"/>   
329.          <size value="50"/>   
330.          <layout type="log4net.Layout.PatternLayout">   
331.            <conversionPattern value="%X{user}"/>   
332.          </layout>   
333.        </parameter>   
334.        <parameter>   
335.          <parameterName value="@message"/>   
336.          <dbType value="String"/>   
337.          <size value="4000"/>   
338.          <layout type="log4net.Layout.PatternLayout">   
339.            <conversionPattern value="%m"/>   
340.          </layout>   
341.        </parameter>   
342.        <parameter>   
343.          <parameterName value="@exception"/>   
344.          <dbType value="String"/>   
345.          <size value="2000"/>   
346.          <layout type="log4net.Layout.ExceptionLayout"/>   
347.        </parameter>   
348.        <parameter>   
349.          <parameterName value="@thread"/>   
350.          <dbType value="String"/>   
351.          <size value="255"/>   
352.          <layout type="log4net.Layout.PatternLayout">   
353.            <conversionPattern value="%t"/>   
354.          </layout>   
355.        </parameter>   
356.      </appender>   
357.      <root>   
358.        <level value="ALL"/>   
359.        <appender-ref ref="AdoNetAppender_SqlServer"/>   
360.      </root>   
361.    </log4net>   
362.    <system.codedom>   
363.      <compilers>   
364.        <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">   
365.          <providerOption name="CompilerVersion" value="v3.5"/>   
366.          <providerOption name="WarnAsError" value="false"/>   
367.        </compiler>   
368.      </compilers>   
369.    </system.codedom>   
370.    <runtime>   
371.      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727">   
372.        <dependentAssembly>   
373.          <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>   
374.          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>   
375.        </dependentAssembly>   
376.        <dependentAssembly>   
377.          <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>   
378.          <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>   
379.        </dependentAssembly>   
380.      </assemblyBinding>   
381.    </runtime>   
382.</configuration>  
  Santhosh N replied to matt cupryk
29-Dec-10 03:00 AM
you could actually check this one for detailed implementation of the captcha in asp.net
http://www.aspsnippets.com/Articles/How-to-implement-Captcha-in-ASP.Net.aspx
Create New Account
help
string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status) { Before creating user check user already exist or not. If exit send the status username, bool deleteAllRelatedData) { / / check if user exists / / remove the record / / save changes } Override the method FindUsersByEmail i.e Search user by email public override MembershipUserCollection FindUsersByEmail( string emailToMatch, int pageIndex, int pageSize, out int totalRecords) { / / set the search filter / / Call the PopulateResults method to pouplate the results } Override the findusersbyname method public override MembershipUserCollection FindUsersByName( string usernameToMatch, int pageIndex, int pageSize, out int totalRecords) { } Override the GetAllUsers Method public override MembershipUserCollection GetAllUsers( int pageIndex, int pageSize, out int totalRecords) { } Overrid the GetNumberOfUsersOnline method public override int
me the FAQs on Masterpages in asp.net. Thanks alot var Hi What are Master Pages in ASP.NET? or What is a Master Page? ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they
Page Directive? What is the purpose of page directive in aspx page? Directive Syntax Directives are instructions used to specify settings (related to how a page should render and processed) used by the page and user control compilers when they process ASP.NET Web Forms page (.aspx) and user control (.ascx) files. These are the essential part of every ASP.NET Page or Control. Directives can be located anywhere in an .aspx or .ascx file, but the values, same as any HTML tag) that are specific to that directive. Special Note: The @ Page directive can be used only in .aspx files, and the @ Control directive can be used
while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging enable the trace to true in the line in the html format of the page. %@ Page Language = ”vb” trace = ”true”AutoEventWireup = ”false” Codebehind = ”WebForm1.aspx.vb” Inherits = ”WebApplication2.WebForm1?&gt; 2 Enable trace enabled = true. If there is a calendar control to be included in each page of your application, and and we do not intend to use the Microsoft-provided calendar do you develop it? Do you copy and paste the code into each and every page of your application? Create the Calendar User Control The control we will create will contain Specify the best ways to store variables so that we can access them in various pages of ASP.NET application? Declare the variables in Global.aspx How many objects are there cookies: Session cookies Persistent cookies Tell few steps for optimizing (for speed and resource) ASP page / application. Avoid mixing html code with asp code Which command using Query Analyzer will give