|
There's a control in the ASP.NET AJAX library that does that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi.....
I am doing a project in ASP.net....we need to communicate between two ASP.Net projects....Give me a sample code for the same...
Please reply as soon as possible....
![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Soundari wrote: Please reply as soon as possible....
When you're paying, you can set deadlines.
Your ASP.NET pages don't even exist unless someone is looking at them. There's really no way for two ASP.NET projects to communicate, unless they live on the same server, and use a database or something else to leave messages to each other.
What are you trying to do exactly ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello everyone,
I need some help in a bad way so I am turning to you experts!
Here’s some background I will try not to bore you. I am working on my first solo project out of school. I am writing an ASP.Net application in C# to replace a forms ordering software we use in my current printing position. The ordering software I am replacing went down 3 weeks ago and the outside vendor is struggling to get it back up and running. I am hoping to get my application done this weekend and start testing as soon as we can next week so we have something to work with and stop the chaos and maybe even land me a job with the new skill set. The Senior Web Developer where I work has agreed to let me write this and he will put it on out Intranet but I do not have access to resources like Active Directory.
I have just about all of the application written but I am struggling with the user login. I can grab the user windows logon when they come to the web page but then I need to authenticate that against a SQL database of users which I already have created. I wanted to use a membership provider (which was sweet) but I can not find an easy way to import / insert the 500+ users into the two different tables. Everything I read on the membership said it was easy to customize this for your own data store but after 3 days of search and reading I am not having any luck! I know this has to be fairly simple as it is done so much but I sure am having a hard time finding what I need.
So I am looking for the easiest way to wrap up the authentication. I am not sure what would be easier:
1) To customize the membership provider to use my current SQL database?
2) Import the current users into the two membership provider tables?
3) Or just authenticate against my current SQL Users database?
If you could please provide some code with your suggestions it would be very much appreciated.
I hope all this make sense I am beat it has been a long and trying week.
Thanks in advance for your help!
Kurt
Update: I forgot to mention I was using Forms Authentication.
modified on Friday, February 22, 2008 10:28 PM
|
|
|
|
|
Hi,
i have uploaded my sit to web server goddady.com
i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a message like
"That assembly does not allow partially trusted callers"
This is my web.config file Please help me on this issue?
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
</appSettings>
<connectionStrings/>
<system.web>
<compilation debug="false">
<assemblies>
<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>
<authentication mode="Windows"/>
<pages styleSheetTheme="Smoke">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<customErrors mode="Off" defaultRedirect="Error.aspx">
</customErrors>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<identity impersonate="true" />
</system.web>
<system.web.extensions>
<scripting>
<webServices>
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
</configuration>
modified on Friday, February 22, 2008 11:16 PM
|
|
|
|
|
Try using the Ignore HTML tags in this message (good for code snippets) checkbox
only two letters away from being an asset
|
|
|
|
|
anyone have recommendations experience with a good asp.net web host.
decent speed.
good bandwidth. - 500GB / month
decent disk space. -
sql 05 space
and very developer friendly.
cost under $10 / month.
|
|
|
|
|
You can have 3 out of 5 things... which ones do you want?
You won't find good hosting of $10 a month..
|
|
|
|
|
i will take
dev friendly
sql space
disk space
those are the 3, recommendations?
or how about a directory of places that do reviews for asp.net hosts.
|
|
|
|
|
Bizhostnet has been decent for me, and the basic plan is $3.95 / month
http://www.bizhostnet.com/[^]
only two letters away from being an asset
|
|
|
|
|
I second that. They have very good plans
|
|
|
|
|
Have you considered setting up your own web server?
That way you could control things to do with your website a lot easier and as much disk space as you want.
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" -ALbert Einstein
|
|
|
|
|
Right, good idea, except for maintenance, fixed IP address, bandwidth, security updates...
only two letters away from being an asset
|
|
|
|
|
Hmm, I didnt think of that...
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" -ALbert Einstein
|
|
|
|
|
Every website I have ever put up I have hosted. It isn't hard to do updates, and a good programmer should understand how a computer/server works and it should be no problem to setup. Bandwidth is the only problem, and all that takes is finding a good ISP. Maintenance also isn't bad if you do one thing, RAID.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
Does anyone know where I might find such a thing? I'm looking for examples of check lists or processes that I might be able to adapt to my environment. I am working with another developer on a process for addressing web site outages. I am embarrassed to admit that I have no idea where to start... I always just kind of fix things by instinct. I realize how bad this is, and there should be some kind of process. I'm looking for something similar to my mental process:
1. Check if everything is plugged in
2. Reboot the servers
3. Make sure the various machines can see the internet and each other
etc, etc...
|
|
|
|
|
I hope you guys are not out looking on Google for it or something. You won't find it. That's why I asked here. Don't bother researching this unless you've actually seen it somewhere.
|
|
|
|
|
One idea would be to make your own list, like the websites that you are trying to find did. You should just be able to go through as many of the steps that you can think of, and then add more later, or as they come up.
When servers go down at my place, that is how I do it. I have a common list, and then more detailed for different situations if the first doesn't solve the problem.
I know that, 'Do it yourself', wasn't exactly the answer you were looking for, but someone has to do it sometime. And who better than you?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Thanks for your suggestion. That's exactly what I'm doing
I just wanted to know if there might be an industry standard or something, which I could incorporate into my list.
|
|
|
|
|
Hi
I have the following code
<cc1:confirmbuttonextender id="ConfirmButtonExtender1" runat="server" enableviewstate="false">
<cc1:confirmbuttonproperties confirmtext="Do you wish to save the changes made to the database?">
TargetControlID="btn_update" />
how would i add on onclinetcancel for this control, it doesnt seem to exist at the moment
do i nee3d to use something like PageRequestManager
any help would be appreciated
thanks!!
|
|
|
|
|
Hi,
me: ASP.NET newbie, know a lot of C# though
Situation: I have a Visual WebDeveloper project going (C#). In the default.aspx I have a table with an embedded Google Maps item (javascript). a listener gets variables latitude and longitude from Google Maps and the script puts them in the asp labels succesfully.
Problem: button1_click reloads the whole page and I loose my updated label.text; I want to retrieve the text in the labels so that I can use them in the default.aspx.cs
help?
thanks
Gj
D flat
|
|
|
|
|
use ViewState For that !!!
when you are click on Button... Postback is performed and that refresh the control.
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
EnableViewState = true / false? Doesn't really make any difference.
That's all that I know about ViewState. Must I do something with the PostBackUrl? Sorry, I am really new to webapplications.
Gj
D flat
|
|
|
|
|
Are you setting the initial text in your page load? Try an if not IsPostBack.
|
|
|
|
|