|
i new in asp.net i created asp.net dropdownlist , every time using mouse add click , when show all item, but focus dropdownlist show all itemlist
|
|
|
|
|
Member 2610211 wrote: every time using mouse add click , when show all item, but focus dropdownlist
show all itemlist
Are you trying to filter the dropdown list with the mouse click?
.AK.
|
|
|
|
|
Hi All,
Not really sure where to post this question but I hope someone here can help.
We have a classic asp site deployed in IIS7 under a domain, let's call it www.classicsite.com. We've developed a site in ASP.NET MVC and need to integrate it into the first site under the same domain so it'll be access as follows: www.classicsite.com/mvc.
What will the IIS setup be like?
Thanks.
Ronald
|
|
|
|
|
Hi frnds, i am implementing contact manager, in it user can add groups and manage the groups by adding contacts init and vise verse, but when the user want to add or remove contacts from particular group how to update it in the database so that no duplicate values is inserted. what is the best process to do.
thanks in advance
|
|
|
|
|
The basic database configuration comprises 3 tables:
1) Contacts
2) Groups
3) GroupMembers
The GroupMemeber table has 2 columns (ContactID,GroupID), this shows the people who are members of any group. It gives you unlimited groups and unlimited members to those groups.
You could create an unique contraint for the combination of ContactID & GroupID to prevent a user from being listed twice in a given group.
That's the basic configuration.
Hope it helps.
![Thumbs Up | :thumbsup:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/thumbs_up.gif)
|
|
|
|
|
Hello sir my question is that i want to redirect one url to another url through web config
mean http://default.aspx to http://default.aspx" ...
anybody please help me for this.......?????
|
|
|
|
|
|
Hi,
I see in some places when I try to debug a .js file that the url of the file is different from call to call.
How do I accomplish it?
If I have a .js file with a name, how can I change the url to it every call.
thanks or the help
|
|
|
|
|
Can you show some sample of it?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Ok, I found the solution:
I just give a time stamp. something like this:
<script src="Scripts/jquery-1.8.2.js?v=<%=DateTime.Now.Ticks.ToString()%>"></script>
but does it really prevent debugging of the .js file from a tool like firebug?
|
|
|
|
|
It's not really a different URL! You only change some parameters, that probably has no effect at all on content, but may effect your caching for the wrong direction...
And no - it do not prevent debug. As long as js loaded into the browser you can debug it...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I know it has an effect on the caching since the resource is not the same.
Regarding the debug issue: I meant that in firebug when I have a break point in a certain location in the code and I refresh the page, I don't get to that point again and it's gone, since the file is not the same file and the "new" file which is downloaded doesn't have breakpoint in it.
|
|
|
|
|
In that sense you are right. But it does not mean you can't debug, it's just more annoying...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Ok. So how could I catch a break point in the code?
|
|
|
|
|
As every of your page load loads a new js file, there is no other way but re-set the breakpoints...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
how i insert google map in my asp.net project with c# project
|
|
|
|
|
|
|
Hi,
I was developed 4 applications with different login pages by using "asp.net web site administration tool 2010" and i deployed in server(IIS).
Now the requirement is like i need to create new application with common login page and home page for 4 applications. By using that common home page i need to access 4 aplications which i deployed in iis.
Thank you.
|
|
|
|
|
Hi,
What are the authentication modes used on all these 4 sites? At the top of my head you will need to create a Single-Sign-On(SSO) here.
So you will let the users logon to one site (either one of the four or a new one) and then you will need to manage the authentication using certificates to let the user use the other application seemlessly.
This is at the outset, However you will need to provide more details about the authentication modes already used in the existing apps / sites.
-Raghu
|
|
|
|
|
![Go to Parent](https://www.codeproject.com/App_Themes/CodeProject/Img/arrow-up24.png) Hi,
Here i am sending my web.config file. We used same Authentication for 4 application.
<configuration>
<configsections>
<sectiongroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<appsettings>
<add key="SecurityKey" value="Syed Moshiur Murshed">
<connectionstrings>
<add name="TTS_DBConnectionString" connectionstring="Data Source=MSPWINWEBPD01;Initial Catalog=TTS_DB;Integrated Security=True" providername="System.Data.SqlClient">
<system.net>
<mailsettings>
<smtp deliverymethod="Network" from="no_reply_.lms@temple-bells.com">
<network host="owa.temple-bells.com" username="no_reply_.lms@temple-bells.com" password="Winter2012" port="25">
<system.web>
<rolemanager enabled="true" defaultprovider="DefaultRoleProvider">
<providers>
<add applicationname="/" connectionstringname="TTS_DBConnectionString" name="DefaultRoleProvider" type="System.Web.Security.SqlRoleProvider">
<membership defaultprovider="DefaultMembershipProvider">
<providers>
<add connectionstringname="TTS_DBConnectionString" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="true" applicationname="/" requiresuniqueemail="false" passwordformat="Hashed" minrequiredpasswordlength="3" minrequirednonalphanumericcharacters="0" passwordstrengthregularexpression="" name="DefaultMembershipProvider" type="System.Web.Security.SqlMembershipProvider">
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
<authentication mode="Forms">
<forms loginUrl="~/LoginPage.aspx"/>
<pages>
<controls>
<add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add tagprefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<httphandlers>
<remove verb="*" path="*.asmx">
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<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">
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false">
<httpmodules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<location path="Presentation">
<system.web>
<authorization>
<deny users="?">
<allow roles="Manager, Employee, Asset_admin">
<deny users="*">
<deny roles="Employee">
<deny users="*">
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warninglevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<provideroption name="CompilerVersion" value="v3.5">
<provideroption name="WarnAsError" value="false">
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warninglevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<provideroption name="CompilerVersion" value="v3.5">
<provideroption name="OptionInfer" value="true">
<provideroption name="WarnAsError" value="false">
<system.webserver>
<validation validateintegratedmodeconfiguration="false">
<modules>
<remove name="ScriptModule">
<add name="ScriptModule" precondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<handlers>
<remove name="WebServiceHandlerFactory-Integrated">
<remove name="ScriptHandlerFactory">
<remove name="ScriptHandlerFactoryAppServices">
<remove name="ScriptResource">
<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">
<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">
<add name="ScriptResource" precondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<runtime>
<assemblybinding appliesto="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentassembly>
<assemblyidentity name="System.Web.Extensions" publickeytoken="31bf3856ad364e35">
<bindingredirect oldversion="1.0.0.0-1.1.0.0" newversion="3.5.0.0">
<dependentassembly>
<assemblyidentity name="System.Web.Extensions.Design" publickeytoken="31bf3856ad364e35">
<bindingredirect oldversion="1.0.0.0-1.1.0.0" newversion="3.5.0.0">
|
|
|
|
|
Hi ,
The authentication i was used for the 4 applications as in the following way..
Authentication mode="Forms"
SessionState mode="InProc" cookieless="False" timeout="30"
-->
<authentication mode="Forms">
<forms loginUrl="~/LoginPage.aspx"/>
modified 11-Mar-14 11:33am.
|
|
|
|
|
As pointed out you'll need to implement SSO (Single Sign On) in ASP.Net. If they all use Forms Authentication and they're all on the same machine then it is easy. You just need to set the MachineKey and also make sure the Forms tag has the same cookie name.
http://msdn.microsoft.com/en-us/library/dd577079.aspx[^]
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
How to use cookie for the Single Sign On. Can any one help at code level.
Thank you,
Hemadri.
|
|
|
|
|
What do you mean? If you have Forms Authentication then there is no need for extra code. You just have to set the Machine Key to be the same and make sure some of the settings on the Authentication tag are the same.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|