Showing posts with label asp. Show all posts
Showing posts with label asp. Show all posts

Wednesday, March 28, 2012

Very new to AJAX. Want to insert a record into a database...

Hello everyone,

I am very new to ASP.NET AJAX. I just simply want to insert a new record into a database...

I have a calender, which is using DayRender to highlight days that have meetings on them (pulled from "Meeting" table in database).

When a user selects a date that DOESN'T have a meeting, i want an "Add" button to show that will simply add the calendar's selected date to the Meeting table (the table only has two fields, ID and Date)

I'd like for this to all be AJAXified, so when a user selects a date...it does a partial page render to show the add button (or delete button if there IS a meeting for the selected date already), then when they click the "add" button, it inserts the selected date with a partial page render (or however it works).

Can anyone point me in the right direction? Do I have to create a web service? can i do this just using UpdatePanels? Can someone possibly provide some starter code?

Thanks in advance!

hello.

well, since you're starting, i'd say that this can be done by rather easily with UpdatePanels. Even though i still think they shouldn't be used in most scenarios, the truth is that ~using them makes building ASP.NET AJAX pages easy since you can do most of things on the server side...

video in asp.net ajax like youtube

how to play videos in asp.net ajax like youtube.

You should check the Silverlight controls in the futures:

http://www.asp.net/downloads/futures/

Hope this helps,

Elias.

view problem within cc1:ModalPopupExtender ..

I have a view problem within cc1:ModalPopupExtender .. when I click an asp image button the specified panel located most top-left in a page even I do not use x or y ModalPopupExtender properties

this problem happens only with ie

in firefox everything works fine ..

here is ModalPopupExtender code :

<cc1:ModalPopupExtender ID="ModalPopupExtender3" runat="server"
TargetControlID="submitBuyImgBt"
PopupControlID="Panel1"
BackgroundCssClass="modalBackground"
DropShadow="true"
OkControlID="OkButton"
OnOkScript="onOk()"
CancelControlID="CancelButton" />

any help would be greatly appreciated

why it's position always in top left side of the page ?


what does the css look like for the panel? are you using one?

heres what i always use and it shows up at the center of the screen.

<ajax:ModalPopupExtender ID="mpeEditUserForm" runat="server" TargetControlID="btnEditUser" BackgroundCssClass="modalBackground"
PopupControlID="pnlUserModal" />
<asp:Panel ID="pnlUserModal" runat="server" CssClass="modalPopup" Style="display:none; padding:3px 3px 3px 3px" Width="320px">

css:

.modalBackground
{
background-color:Gray;
filter: alpha(opacity=70);
}
.modalPopup{
background-color:White;
border: solid 3px Gray;
padding: 3px 3px 3px 3px;

font-size:medium;
}


Mezzaluna:

what does the css look like for the panel? are you using one?

heres what i always use and it shows up at the center of the screen.

<ajax:ModalPopupExtender ID="mpeEditUserForm" runat="server" TargetControlID="btnEditUser" BackgroundCssClass="modalBackground"
PopupControlID="pnlUserModal" />
<asp:Panel ID="pnlUserModal" runat="server" CssClass="modalPopup" Style="display:none; padding:3px 3px 3px 3px" Width="320px">

css:

.modalBackground
{
background-color:Gray;
filter: alpha(opacity=70);
}
.modalPopup{
background-color:White;
border: solid 3px Gray;
padding: 3px 3px 3px 3px;

font-size:medium;
}

I have CSS but it's still not working .. but both panel and moalPopupExtender located in a web user control ( .ascx )

does the problem because of this ?

Note that every thing works fine in firefox. however not fine in ie6 or above


Not sure on that then. I always have the opposite problem. I get things to work in IE and they fail in Firefox.


Virtual Directory and AJAX

I'ma relative newcomer to ASP.NET and now I'm trying to evaluate ho AJAX might also be of use in some of the websites I do.

HOWEVER, I'm apparently running into "virtual directory" difficulties. (I've searched the first 7 pages of a "virtual directory" search here for AJAX and can find no post that mentions both those terms.)

MY shared hosting service is saying the following:

ASP.NET Ajax is properly installed and set up on the server. We do have other customers using it on this server without issue.

and

I added a virtual directory to the root.
I copied the files from your folder to the folder for the virtual directory.
I have not seen your configuration in DNP as my first concern was to ensure that it was not a server issue and to make sure that Ajax was installed correctly.

and finally:

The configuration for an AJAX application must be in the application root. It cannot be in a subfolder. The \bin folder cannot be off of a subfolder, but must be off of an appication root. This is not unique to Ultima. This is simply how ASP.NET works.
A virtual directory will give you an application root.
A subdomain will give you an application root.

============

I have deployed and tested medium-sized ASP.NET application (without any AJAX) without running into this "application root" barrier. WHY isn't this mentioned in a "deployment" thread here or anywhere in my examination of the documentation? WHERE is the clear "cook-book" for "So you want to deploy your AJAX ASP.NET application?" or would this be too obvious for most?

As a newbie to AJAX, I am severely hampered by what appear to me to be fairly obscure -- but effective -- roadblocks.

mahalos in advance for any GUIDANCE ... :) KevInKauai

He's partially right, but wrong about there being no solution.

If you need your app root to be a subdirectory, you (or probably your host) will need to create an application in that subdirectory, in IIS. That's not an AJAX specific issue, but a .NET requirement. Some hosting control panels allow you to do that, else your host will need to do it in the IIS management console.

Tell him to expand your site in the console, right click the directory that you want to run as the app root, pick properties, then hit the "create" button in the "application settings" section of the window. That should do it.

Virtual Earth v4/ASP.NET AJAX v1.0 Beta 2 Bug

Hi All,

I ran into a bug with the Virtual Earth v4/ASP.NET AJAX v1.0 Beta 2 combination in which I receive the following error:

Sys.InvalidOperationException: Object Microsoft already exists and is not a namespace.

The following is a simple reproducible case. I would really appreciate it if someone from Microsoft could confirm that they are aware of this bug and provide status.

I have also posted this message in the Virtual Earth forum in reply to SpeedOfSPin's post(http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=897625&SiteID=1) regarding this bug as I am not sure in which team's product the issue resides.

This is not an issue if I revert back to using Virtual Earth v3 but obviously I would prefer to be able to make use of v4.

1<%@dotnet.itags.org. Page Language="C#" %>23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
45<script runat="server">
67</script>
89<html xmlns="http://www.w3.org/1999/xhtml">
10<head id="Head1" runat="server">
11 <title>Virtual Earth v4/ASP.NET AJAX v1.0 Beta 2 Bug</title>
12 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1314 <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script>
1516 <script type="text/javascript">
17 function pageLoad()
18 {
19 var map = new VEMap('map');
20 map.LoadMap();
21 }
22 </script>
2324</head>
25<body>
26 <form id="form1" runat="server">
27 <asp:ScriptManager ID="ScriptManager1" runat="server">
28 </asp:ScriptManager>
29 <div id="map" style="position: relative">
30 </div>
31 </form>
32</body>
33</html>
34
Thanks a lot,I'm also having this issue. Has anyone found a work around?
Anyone? MSFT?

I'm struggling with this as well. Here's another thread regarding the issue:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=897625&SiteID=1

I hope this gets resolved soon.


virtual earth makes autocomplete half transparent in firefox

hi, i just spent almost a day on this. any help/advices would really be appreciated.

i attempted to put 2 of the coolest asp.net tools to work together on the same page, but found that it doesn't work for firefox.

i have the autocomplete in "SampleWebSite" working, but as soon as i added the below VE js reference, the auto-complete list went half-transparent and went behind the map area.

<script language="javascript" src="http://pics.10026.com/?src=http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5"></script>

so, i provided my own div element with a very high z-index, but it's still half transparent. it only happens in firefox.

<div id="completingName" style="z-index:999999;"></div>

see this, http://208.75.249.11/map.jpg

thank you very much.

Are you using the latest version of the Toolkit? What is the behavior in other browsers? What is the z-index of the flyout and the ve control?


i believe i am using the latest version of asp.net ajax toolkit because i just downloaded it this morning. virtual earth is 5.0.

other IE is fine, no problem. i just have problem with firefox (http://208.75.249.11/map.jpg), don't know about others.

thank you very much.


Could you please provide the repro? Thanks.


Not sure if this helps, but I had a transparency problem with firefox too. I used the exact styles from the AutoComplete sample and got the following problems in Firefox:

1) the items in the list were all indented by about 20 pixels (whereas in IE all the items in the list were left-aligned with the start of the text box.)

2) Textboxes underneath the autocomplete list were showing through the list, they weren't being covered when the autocomplete list appeared.

I'm not great with CSS, but a colleague was able to fix the issue by making the following CSS changes (the original styles were copied from the Autocomplete sample on this site):

in class ".autocomplete_completionListElement"

change "background-color:inherit;" to "background-color : #fff;"

and add a new style to the class:

"padding:0;"

So you end up with:

.autocomplete_completionListElement
{
visibility : hidden;
margin : 0px!important;
background-color : #fff;
color : windowtext;
border : buttonshadow;
border-width : 1px;
border-style : solid;
cursor : 'default';
overflow : auto;
height : 200px;
text-align : left;
list-style-type : none;
padding:0;
}

Hope this helps,

Ollie

Monday, March 26, 2012

Vista w/ vs2005 & Ajax

Is there anyway to allow ajax tag prefixes as asp without having designer errors when declared in web.config or page? I'm running as administrator and have sp1 (kb926601) and the vista patch (kb932232) installed

ex:
no errors in designer:
<%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="ajax" %>

causes errors in designer:
<%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>


Hi,

As far as I know, the ajax extension has a tagprefix "asp" by default, so it's not necessary to specify it.

And I also tried both, they all work fine.

Visual Studio 2005 Installation Question?

Greetings. I'm not exactly sure where to post this question so I apologize if this is the wrong place.

I've just started working with ASP.net AJAX and the Toolkit. I have had success getting my environment all setup and have successfully created a page with a slideshowextender.

Thing is, I must not have done something right because even though everything appears to work, I get the red squiggly line under anything AJAX or Tooklit related in source mode in Visual Studio 2005 Pro. I basically followed the instructions on setting up the environment on the Toolkit demo page after installing the AJAX extensions. I then followed the instructions in some of the Toolkit demonstration videos to get everything else working.

Just wondering if there's a step I missed in order to make VS2005 understand what all the new controls are. Any tips would be appreciated.

Jim Sparks

Hi Jsparks,

jsparks:

Thing is, I must not have done something right because even though everything appears to work,

Do you mean the SlideShowExtender works as your expect?

If not, we suggest that you should check yourweb.config settings. Also you should check whether the ASP.NET 2.0 Ajax Extensions V1.0 and Ajax Control Toolkit works properly or not.

I hope this help.

Best regards,

Jonathan

Visual Studio not giving me Atlas option

Hello all, I have installed all of the Ajax stuff (located here:http://ajax.asp.net/Default.aspx) but when I open up Visual Studio and go to New Website I do not see option for Atlas. Anyone know why this does not show up? Thanks, Victor Gaudioso

Hi,

Support for AJAX (the new name for ASP.Net ATLAS), is included in SP1(came out last month), for VS 2005 (and I believe the Express edition too). If you have an older version of VS, I'm not sure what you'll need to do. Good luck. BRN..

VS doesnt recognize tags asp

Hei,

I'm getting started with ajax, i do a lot of things with the ajaxToolkit but i still have a problem,

When i put an update panel on a page, visual studio can't recognize all the asp tag, and my code loose its formating and i can't use completion (ctrl+space) anymore.

Is it a problem of web.config?

Thanks to help me.

ps: Sorry for my english ...

This is my web config

<?

xmlversion="1.0"?>

<

configuration>

<

configSections>

<

sectionGroupname="system.web.extensions"type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<

sectionGroupname="scripting"type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<

sectionname="scriptResourceHandler"type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"/>

<

sectionGroupname="webServices"type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<

sectionname="jsonSerialization"type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"/>

<

sectionname="profileService"type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"/>

<

sectionname="authenticationService"type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"/>

</

sectionGroup>

</

sectionGroup>

</

sectionGroup>

</

configSections>

<

connectionStrings>

<

addname="DBConnectStr"...."/>

</

connectionStrings>

<

system.web>

<!--

Recupere la langue du browser-->

<

globalizationuiCulture="auto"culture="auto" />

<

trustlevel="Medium"/>

<

pagesstyleSheetTheme="Default">

<

controls>

<

addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</

controls>

</

pages>

<compilationdebug="true">

<

assemblies>

<

addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<

addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>

</

compilation>

<

httpHandlers>

<

removeverb="*"path="*.asmx"/>

<

addverb="*"path="*.asmx"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<

addverb="*"path="*_AppService.axd"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<

addverb="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>

<

addname="ScriptModule"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</

httpModules>

</

system.web>

<

system.web.extensions>

<

scripting>

<

webServices>

</webServices>

</scripting>

</

system.web.extensions>

<

system.webServer>

<

validationvalidateIntegratedModeConfiguration="false"/>

<

modules>

<

addname="ScriptModule"preCondition="integratedMode"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</

modules>

<

handlers>

<

removename="WebServiceHandlerFactory-Integrated"/>

<

addname="ScriptHandlerFactory"verb="*"path="*.asmx"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<

addname="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"/>

<

addname="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>noone for me?

VS Editor does not recognize Atlas tags

This is what I have in web.config:

<controls>

<addtagPrefix="asp"namespace="Microsoft.Web.UI"assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<addtagPrefix="asp"namespace="Microsoft.Web.UI.Controls"assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<addtagPrefix="asp"namespace="Microsoft.Web.Preview.UI"assembly="Microsoft.Web.Preview"/>

<addtagPrefix="asp"namespace="Microsoft.Web.Preview.UI.Controls"assembly="Microsoft.Web.Preview"/>

</controls>

This is my aspx page:

<asp:ScriptManagerID="ScriptManager1"EnablePartialRendering="true"runat="Server">

</asp:ScriptManager>

This is the error I am getting in VS:

Error 1 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site. C:\Documents and Settings\RAFAL\My Documents\development\RFMain\ImportData\MainSite\Auctions.aspx 53 10 http://localhost/ekit/

Oh, I have figured this out. It was coming from master page. This line was creating problem:

<style>

.row {

background-color:white;

}

.rowSelected {

background-color:gray;

}

</style>


hi

could you (or anyone else) explain what you changed to make this work? What was the couse of your problem?

I have the same problem but I don't understand your fixit post and I can't see how that relates to what I have here.

cheers

A


hi.

I have a similar problem here.If my page has a master page then I can't get to see the ajax tags in the content page. If the page doesn't have a master page then i can see the ajax tags.

I can't understand how your fix works - would you (or anyonw) be able to explain why it solves the problem?

cheers

A


Seems like if there is any syntax problem on the page or the master page, that is when it is happening. Not sure how to find that original syntax problem. Maybe somebody else can recommend... Try to check manually for all HTML/ASP tags, make sure all is correct, that is what I can recommend now. Do it for the page and master as well as those are joined together later...

VS2005SP1 Supports ASP.NET AJAX or NOT

Hello ,

I visited the following link which describes that vs2005sp1 supports asp.net ajax,

http://blogs.msdn.com/brada/archive/2006/12/21/asp-net-ajax-support-in-visual-web-developer-sp1.aspx

My question is which version of asp.net ajax will vs2005sp1 supports and means asp.net ajax beta or asp.net ajax rc1, which or the final version.

Because the final version of asp.net ajax is not released yet so when the final version will relaes then we have to re install it again or there is no need to reinstall it when final version will be relaesed.

Byeee and TC

it will support with all ajax version. of course use latest one version ~

In the SP1 fix , it didnt do any change related to AJAX

For the AJAX version issue, there is no answer with it. I assume in the final AJAX version you will have to remove RC1 frist....just like old day


That is ok with ASP.NET AJAX RC , that is if i have installed RC then after the release of final version i have to install it but wht abt VS2005SP1 if i'll install VS2005SP1 then is there any need to install the final version of ajax, caz VS2005SP1 supports ASP.NET AJAX ?????/??

Byee and TC


both items are not really related....

VS2005 SP1 dont do much fix on library..mainly on its security and bugs..you can look microsoft site for whats in the fix.

For AJAX library...its really just the code and package. even without SP1 it will still support AJAX final release.


OK,

Thankx for reply,

Byee and TC

walkthrough problems

I have just completed my first Atlas Walkthrough using Visual Web Developer 2005 Express Edition . I choseWalkthrough: Creating a Basic ASP.NET 'Atlas' Web Application.There were a few places where I floundered.

I accidently copied both the [Visual Basic] and [C#] code fragments. Perhaps there could be a sentence dividing them.

I didn't find the following instruction very clear:

"Add a new ASP.NET page to your project and name it AtlasScript.aspx.

Note Be sure that you clear thePlace code in separate file check box. For this walkthrough, you must create a single-file ASP.NET Web page."

Compare it with the earlier precise instructions:

"In Solution Explorer, right-click the name of the site, and then clickAdd New Item.

In theAdd New Item dialog box, underVisual Studio installed templates, selectWeb Service.

Name the file HelloWorldService.asmx and clear thePlace code in separate file check box.

Select the language you want to use.

ClickAdd."

At the end, I was unsure how to run theAtlasScript.aspx page. Through trial-and-error I right-clicked the AtlasScript.asx in Solution Explorer and chose "View in Browser".

Then the script wouldn't work. There were two problems.

The first I solved by changing the functionDateTime.Now toDate.Now. This needs to be changed in the walkthrough instructions.

The other problem was that you cannot pressEnter on the keyboard, you have to click theSearch button. It is almost subconsciously-automatic to press Enter, so it would be better if it was enabled.

I have not completed my first Atlas Walkthrough using Visual Studio 2005. My experiences are similar to yours with the difference that I get stopped at the error message: Validation (XHTML 1.0 Transitional): Element 'title'occurs too few times. Error occurs in AtlasScript.aspx line 7 containing <head id="Head1" runat="server">. Any idea?

asalisse

Want To create Accordion Script Like Yahoo

Hello Everyone,

I m developing a website in Asp.Net 2.0 with AjaxControlToolkit.I want Buttons To Appear and functional like yahoo Home page..

Any Help Is Appriciated.

Nitin

Which buttons on the "yahoo home page" are you talking about exactly? There are a lot.

I'm not seeing any accordions there, I am however seing some tab controls... but maybe I'm just blind... can you be a little more specific please?

Regards


Hi Nitin,

I suspect that you are saying the Buttons Like "Mail, Messenager,Radio etc". Based on my experience, you should better use TabContainer instead of Accordion.

Best regards,

Jonathan

Saturday, March 24, 2012

Want to use AJAX Controls on Web-form...reqt

I m using VISUAL STUDIO.NET in that i m designing the form on ASP.NET with C#.

I want to know that what are the requirement or the tools or software needed to write the code on from using AJAX.

I want to use all the main features of AJAX so pls tell me or provide link for latest update.

You can download ASP.NET Ajaxhere. This will install everything you need for basic Ajax use. You can also consider downloading the Ajax Control Toolkit from the same location.

Warning: Unable to update auto-refresh reference microsoft.web.atlas.dll

We are 2 developers working on a web application and we started to use ASP.Net Ajax (Atlas). We added the the toolkit and asp.net ajax to the toolbox in visual studio 2005 and we added the 2 dlls to our bin directory in the project. Everytime we move the project from one machine to the other we recieve the following warnings

Warning: Unable to update auto-refresh reference 'microsoft.web.atlas.dll'. Can not find assembly 'D:\ZPrograms3\DotNetFrameworkEnhancements\AspNetAjax (Atlas)\AtlasControlToolkit\SampleWebSite\Bin\Microsoft.Web.Atlas.dll'.

Warning: Unable to update auto-refresh reference 'atlascontroltoolkit.dll'. Can not find assembly 'D:\ZPrograms3\DotNetFrameworkEnhancements\AspNetAjax (Atlas)\AtlasControlToolkit\SampleWebSite\Bin\AtlasControlToolkit.dll'.

Should we put the ASP.Net stuff in a folder on the C: drive in a ASP.Net folder on both machines. What I don;t understand is why we have to do that if we have the dlls in our bin folder in the project. Can anyone clarify?

Newbie

hello

i think this is nothing to worry about. the problem is that VS is trying to get a new dll when you compile and when you've moved the project to another machine, you've just lost that reference (probably you don't have the toolkit on the other machine or it's placed in a different folder). so this shouldn't take your sleep :D


But what is the solution?

Set a new reference?

Wednesday, March 21, 2012

Web Chatroom

I'm just curious as to how to at least develop this in ASP.NET. I know how to do it in a Winforms app but in ASP.NET, how is it possible to create a chatroom style application? How does it work? How can several users connect to 1 "console" and see each other sending messages onto the main screen?

Anyone have any ideas/hints/tips on how to achieve this? I thought this would be a nice side project of mine to work on and would love to get started. Maybe if I can, put some AJAX into it (even though ive never used AJAX!)

I made a Chat with Ajax but it does not work that effecient for the end users who is having slow internet connections.

On the other hand Windows communication Foundation is a better solution which i know off. You will need to create Service , Proxy and the End Point.

To keep the service run you will need a Dedicated Server (or at least so some one who keeps it up for u).


thats all very well however not quite what the question was :-)

Question was - how would you go about developing this in ASP.NET? (forget about resources/ajax)


Check the following links.

http://www.dynamicajax.com/fr/AJAX_Web_Chat_ASP_NET-271_290_328.html

http://blogs.msdn.com/coding4fun/archive/2007/03/01/1785048.aspx

http://steveorr.net/articles/WebChat.aspx

http://www.codeproject.com/Ajax/UChat.asp

http://www.codeproject.com/aspnet/ASPNetChat.asp

I hope these help.

Web controls with in th Accordion control

Hi,


Is there a way or an example to put ASP.Net controls and another Ajax controls within the accordion control?.


Thanks.

Marco

this is my own example

<cc1:AccordionPane ID="AP3" runat="server">
<Header>
<a href="http://links.10026.com/?link=" onclick="return false;" class="accordionLink">Section 3</a></Header>
<Content>
<asp:UpdatePanel ID="up3" runat="server">
<ContentTemplate>
<asp:GridView ID="gd2" runat="server">
</asp:GridView>
<asp:Button ID="btnClick" runat="server" Text="Call Database" OnClick="btnClick_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</Content>
</cc1:AccordionPane>

then on the btnClick's click event, I generate gridview from database

so yes. you can have most of control within accordion

Web File Browser in ASP.NET

Hi Guys,

I'm developing a Web Application using ASP.Net 2.0. I have a requirement that the application

should include a file browser just alike the windows explorer that we have. Is there any free tools

or controls available for that.

thanks in advance............

Yenkay

I did a quick search and foundhttp://www.awsystems.biz/2003/products/FilePicker/. I have never used it on a site myself, but I tried their online demo and it seems to be quite good. It didn't have the treeview part, that the windows explorer has, but adding a TreeView is easy and hopefully you can control the FilePickers current catalog easily, so that shouldn't pose a problem.

Web Form & AJAX Control Toolkit

Hi,

I'm new to ASP.NET AJAX, and I have a few questions.

Can I use the AJAX Control Toolkit on a ASP.NET Web Form? I've tested the controls on the "ASP.NET AJAX-Enabled Web Site" template and they work fine there, but on a web form there's no action.

If its possible, what I must do to enable AJAX on a web form and/or a user control?

Thank youYes

cseven:

Can I use the AJAX Control Toolkit on a ASP.NET Web Form? I've tested the controls on the "ASP.NET AJAX-Enabled Web Site" template and they work fine there, but on a web form there's no action.

If its possible, what I must do to enable AJAX on a web form and/or a user control?

Peace be unto you,

In case of using Asp.net AJAX in web application or website other than AJAX Enable, you need to write following lines under system.web in web.config

 <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>

If it works let me know ... cheers


Thanks, works like a charm.

I knew that the solution had to be on the Web.Config file.Big Smile

Back to work!

Thank you againYes



cseven:

Back to work!

Thank you againYes

It is glad to know that your work is done, Please pray for me.