|
Hi,
I am working in asp.net 2.0.I am new to ajax concept. I need some clarification about this. we can use ajax using the dll ajaxcontroltoolkit and i have seen in some site, they didn't use the ajaxcontroltoolkit dll they had written the code for the funcationality.
can anybody suggest me which one i have to use?
Thanks.
|
|
|
|
|
|
sbua wrote: can anybody suggest me which one i have to use?
It depends on you.
What you want to implement i.e. AJAX toolkit or using JavaScript.
If you are good enough in JavaScript and can write a code that is browser independent, then i suggest to go for JavaScript.
You can refer a book
AJAX in Action By Dave Crane
|
|
|
|
|
Hi sbua,
this is just a matter of taste. If you like saving time you can use the ajaxControlToolkit, but if you more the one who writes everything on his own (from memory management to the OS ) you can write the code yourself.
I suggest using the Ajax ControlToolkit since it provides most of the functions you will need.
By the way, the Ajax Control Toolkit is just a library containing controls implemented using a concept called Ajax. So this is like the Windows Forms Controls, there are implemented with a concept called object-oriented programming using the .NET framework.
Hope this helps.
Regards
Sebastian
|
|
|
|
|
|
hi every body
how are you
i have website application and i have iframe object which get it source from google maps
and ofcourse the map is changing when user change it
i want to get the image inside this i frame and save it on my server
how can i do this ???
|
|
|
|
|
i m creating controls dynamically...like i m having a button "Add More" and on click of this button i want to add dropdownlist binded from database and a link button "Remove" when user clicks on remove button the particular dropdownlist and that remove button should be removed.... but how can i do that using javascript...
|
|
|
|
|
Just use document.removeChild(element) to remove.
Also do an AJAX call to the database to remove the element from server as well..
Abhishek Sur
|
|
|
|
|
Hi
I was just wondering if there is any easy way to build a ASP.NET frontend for an existing C++/win32 based application for some heavy processing.
I have this C++ application which I use to do some file/db input, process, store result to file/db. Now I want to be able to start/pause/stop processing and read status from the web-browser.
So how can I, by using ASP.NET (and the nature of http), communicate with this process?
Any ideas? I would really appreciate it...
|
|
|
|
|
Well, from ASP.NET frontend it can be done. But be sure to check the status when the page is loading. Its because, IIS creates a new session for every new session. So if the process is already started or stopped from another browser, you cannot start it again. So before doing anything just check the status.
You can also use WCF, the new concept to do the same.
Abhishek Sur
|
|
|
|
|
Whether or not the service/process is already running and just waiting for a signal to process, or the web-app starts the application doesn't really matter as long as the method to achieve it is "failsafe".
Which solution would you recommend?
Making the background process listening on a local UDP-socket and send UDP packets from the web-app to control it? Using the Windows message queue and push messages into this queue from the web-app? Or is there any "built in" method which is better?
Perhaps I can start the process from the web-app, and store the identifier/process handler somewhere (file? mssql?) and then watch this handler for whether the app is running or not, use it to kill the process, and etc? In this case I need to "lock" some object I assume so that two parallel page-requests won't start two processes over just one?
I am really looking for the best possible solution...the most "correct" one. If not for this particular app, then for learning purposes.
|
|
|
|
|
i have one problem when i enter some integer value in asp.net text box,& when press enter then automaticaly my focus goes to asp.net button which is in my form & event of that button gets fire...bt i dnt want to fire that event unless i press that button...plz any one have solution....?
|
|
|
|
|
I think you can make
TabIndex="-1" of that control. and it will not focus.
Abhishek Sur
|
|
|
|
|
i done that tabindex of button as -1 but the same problem occurs.
|
|
|
|
|
Hi all,m working on a web application in which I am creating a session for each member after login and redirecting to his home page,but after going to the home page when I click on a link or I just refresh my page session is getting timedout automatically and it comes to login page.I hv defined my sesion timeout in config file.I m not getting what is going wrong.Plz help me to resolve the problem...........
|
|
|
|
|
I think some error is happening during your redirection, so that the session is getting lost somewhere.
Debug each line in the login process.
Abhishek Sur
|
|
|
|
|
Please give some details along with code
1. How you are creating the session? Are you doing any thing in homepage?
2. What about the authentication / authorization entries in your web.config file?
*jaans
|
|
|
|
|
div_gusain wrote: hv defined my sesion timeout in config file.I
How ? Can you please put those line of section ? which mode are you using ?
|
|
|
|
|
Hello There ;
I want to retrieve header text of link button using javascript.I tried following code but it is not working.I am passing page and link button as parameter to this function.
function ActivateCountry(form,link)
{
var LblHead =document.getElementById('" + link.ClientID + "').innerText;
if(LblHead =='Add Country')
{
form.lblHead.innerText ='Add Country';
form.lblCTC.innerHTML ='Country Name';
}
if(LblHead =='Add State')
{
form.lblHead.innerHTML ='Add State';
form.lblCTC.innerHTML ='State Name';
}
if(LblHead =='Add City')
{
form.lblHead.innerHTML ='Add City';
form.lblCTC.innerHTML ='Add City';
}
}
If anybody knows solution please help.
Thanks
|
|
|
|
|
link.clientID should be within server tag.
use <% %> to evaluate server codes withing your javascript
Abhishek Sur
|
|
|
|
|
Hi friends,
I want to export a grid into word in asp.net.
The grid contains product details like product id,name,date and image of the product.
If i export this grid into word file,it works fine except the image of the product.
The product image should not display.Is there any other method to export image into word.If so please help me?
Thanks and Regards,
Venkat.
|
|
|
|
|
Use this code:
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.doc");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.word";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
myDataGrid.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Hi Sathesh,
Thanks for ur response.
But i already tried this.This code only export data which are present in the grid and not display the image.
So please give me another solution.
Thanks and Regards,
Venkat
|
|
|
|
|
Good Morning guys
i did not know what subject to use, But let me explain my Problem, i have inherited a web application. In that Application the User is doing a lot of Selection that lead to the end of the page and automatically enabling a Scroll bar that hides user selection from User. below are the links of the images of how it looks before the end of the page and after it has reached the end of the page.
http://www.vbforums.com/attachment.php?attachmentid=68574&d=1232435913[^]
http://www.vbforums.com/attachment.php?attachmentid=68573&d=1232435899[^]
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
I guess you have a css-class problem with a width or a height-property.
(this is the best answer I can give, You do not exactly tell what your problem is. I have to guess from the pictures)
modified on Tuesday, January 20, 2009 5:30 AM
|
|
|
|