|
So can .NET 2 be deployed on Win98 and WinMe ?
Thanks
|
|
|
|
|
Read the System Requirements[^] for .NET 2.0.
98 and Me are supported (point gun at foot, squeeze trigger), while NT is no longer supported, on any processor platform.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Is Ajax technology related to .Net ?
And where can I get the IDE or SDK for AJAX development ?
Thanks
|
|
|
|
|
AJAX stands for Asynchronous Javascript and ActiveX, and is not related to .NET, though in my humble opinion, .NET DOES make it easier to deal with. AJAX makes use of an object available in most browsers 4.0 and above, commonly called XmlHttpRequest, if memory and laziness to verify this right now serve me correctly, and as such, is simply a technology you can use in just about any web based technology. My personal favorite AJAX implementation is one called My Ajax.NET, soon to be called Anthem.NET, and is a completely free implementation. You can find it here: http://jason.diamond.name/weblog/category/my-ajax-dot-net/[^]
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
|
|
Unfortunately, though, Anthem is still in alpha phase. I've used My Ajax.NET up through version 11, and it's rock solid. I'm looking forward to seeing, though, what he does with Anthem when it's finalized. But thanks for posting the link.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
Thanks,
so do you think it is easy to program with ? As it seems need to deal with DOM, xml, javaScript, so many technology together.... And what are the differences in the programming paradigm when compared it to normal client server implementation ? Do it need to take care the many states changing in both the server and the client browser ?....
|
|
|
|
|
My Ajax.NET is extremely easy to use. You can either add the .cs file directly to your project, as it's implemented in a single file, or, if you prefer, or are using something other than C#, you can compile it in to a .dll file, and add a reference in your project to it. From there, calling server functions from your client side is a 2 stop process.
First, you need to register your page class with the library, then you need to expose methods for your client script to call. This is done using attributes.
public class MyTestPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Ajax.Manager.Register(this, "Callback");
if (!Page.IsPostBack)
{
...
}
}
[Ajax.Method(IncludeControlValuesWithCallBack = false))]
public int Add(int x, int y)
{
return x + y;
}
[Ajax.Method()]
public DataTable GetClientInfo(int clientID)
{
return this.ConnectToDatabaseAndRetrieveData(clientID);
}
}
Second, you just call them from your client side as if they were Javascript functions:
<script language="javascript">
function onSomeButtonClick()
{
var cmb = document.getElementById('cmbClients');
var clientID = cmb.options[cmb.selectedIndex].value;
var dtbl = Callback.GetClientInfo(clientID);
for (var i = 0; i < dtbl.Rows.length; i++)
{
alert(dtbl.Rows[0].ClientName + '\n' +
dtbl.Rows[0].Address1 + '\n' +
dtbl.Rows[0].City + '\n' +
dtbl.Rows[0].State + '\n' +
dtbl.Rows[0].ZipCode);
}
}
</script>
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
I forgot to answer your second question. The differnce between AJAX and traditional web application implementation is that with traditional web apps, when you needed to talk to the server, you did a post back. The web browser would bundle up the value of all controls nested in an HTML FORM element, append those values to an HTTP request, and send that request to the server. Once the server received the request, it would run code written by the page designer to process the sent data. What the server would send back was a full page of HTML markup, forcing the browser back at the client to completely redraw itself. For large forms, this was mostly acceptable. But what if you just needed to update a single control based on the selected value of another? A good example is the sites where you can select a state from a drop down, and another dropdown on the form then populates with the cities in that state.
AJAX allows you to avoid posting back the entire form if you want, and allows you to avoid having to redraw the entire page just to update a field or two. With AJAX, if someone changes the state dropdown on the example above, I can, behind the scenes, ask the server for JUST the cities of that state, and it will return it to me in some format set up by the server side developer. Maybe as an XML blob, or a delimted string. Your javascript on the client is responsible for clearing out the cities dropdown, and repopulating it. The user experience is cleaner this way, and closer to what they'd see in a traditional Windows application because only the changing element refreshes; not the whole page.
You must be careful, though, to use AJAX only where it's appropriate. You DO NOT want to try and send a 10,000 record datatable to the client, and expect the users of your site to be happy with you as their browser first waits for all the records to come to it, then draws your table. Compiled code is almost always faster than script, so for major operations like a 10,000 record table, do the work server side.
Now, as for state changes, since you're not actually refreshing the page when you make a callback, state isn't an issue. If you need to have the current values of your server side controls when you call back, make sure that on the server side, your callback function is attributed as such:
[Ajax.Method()]
public void SumFunc()
Or
[Ajax.Method(IncludeControlValuesWithCallBack = true)]
public void SumFunc()
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
NOOOOOOOO!!!
AJAX: Asynchronous Javascript And XML
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA] - eMule Server .NET
|
|
|
|
|
D'Oh! You're right. I was pretty tired when I wrote that original reply.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
it is there in vs 2005 and the upcoming vs2006....
but can also implement it in vs 2003.
the code is not posted back to the server every time so it saves a lot of time retreiving the data and this is done thro xml and javascript either a webservice or a page with script should act as a data layer.
|
|
|
|
|
Thanks,
Is it embedded into the ASP.Net in VS2005 ?
or how can I get started to develop with it ?
Any good reference for starters ?
|
|
|
|
|
ya but i dunno much abt it since im workin in vs2003......
i have an app which i developed using this AJAX(it might be useful) if needy how can i post tht to u.....
sathy
|
|
|
|
|
thank so much !
Could you send the app to me via email : shirleylstam@yahoo.com.hk ?
|
|
|
|
|
|
Apart from that MyAjax .NET thing, MS have a tool called Atlas in development.
Kevin
|
|
|
|
|
I have started working with C# and am trying to do something that I have done in C++, MFC, VB and ASP code. All I want is a read only recordset set that is only a snapshot of several values spanning more that 2 tables with inner joins. I used to do this with a SQL query and recordsets, then step through the recordset till I reached EOF then stop. The new adoAdoAdapter and sqlDataAdapter both error on more then 2 tables linked, and I can't seem to find out the proper information on how to import or use ADO 1.5. I am currently using and Access database, but could move to an SQL if it would help. The problem is that this is a view screen (ListView) and I want to control how the data is entered. I have lookup values linked to other tables. I want the lookup value and not the lookup key.
Thanks,
Leo T. Smith
|
|
|
|
|
Hi,
Currently there is a MS Access Database, how can i do a check and see what tables are contain within the database? OR how can i create a Dataset filled will all tables from the database?(a small database)
Thanks alot
Need help
Thanks so much
|
|
|
|
|
Assuming conn is an open oledb connection to your access database:
DataTable tables = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables,
new object[] {null, null, null, null});
string[] tableNames = new string[tables.Rows.Count];
for(int i = 0; i < tables.Rows.Count; i++) {
string temp = tables.Rows[i][TABLE_NAME_COLUMN].ToString();
if(tables.Rows[i]["TABLE_TYPE"].ToString() == "TABLE") {
tableNames[i] = temp;
}
}
|
|
|
|
|
Hi!
I`m using winmm.dll to play multimedia files in my c# app! But, when i click on the button to play, i have one small flickering, like the first frame of the avi is black (i think it is a time needed to load the file into RAM)! Multimedia files are large (10-20Mb)! Is there any chance to make preloading of the avi file into RAM, on the form_load event, so, when the user click on the button to play, the file is already in the memory! !? Or, does anybody know how to make that flickering go away!Thanx
-- modified at 20:50 Tuesday 27th December, 2005
|
|
|
|
|
I tried getting the location from using Start Position via Centre Screen.
But the results give me 0,0 for its location. How do I find its position?
-- modified at 20:18 Tuesday 27th December, 2005
UPDATE: Ok, if i use centre screen, I cannot set its location differently unless I use manual, thus is there a way to find the StartPosition location somehow?
|
|
|
|
|
There you go:
//"this" refers to the current form object
Point somePoint = this.PointToScreen(Location);
//Note it calculates it from upper-left edge
of the client area, not the border. I don't think there is a specific function to do that, but you can easily calculate it if you want the location of the form from the border. This is the width and height of the border in pixels: {X=3,Y=29}. Of course if you have tool border (smaller) it will be different. If you want to check that set the form start position to manual like so:
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
This will make your form/dialog box open in the upper-left edge of your screen.
______________________________
|_____________________________|<- form/dialog box border
||...........................................||
||...........................................||<- form border
||.......................<-------------||--- client area
||...........................................||
||...........................................||
||___________________________||
-- Don't worry about the world coming to an end today. It's already tomorrow in Australia --
-- modified at 22:34 Tuesday 27th December, 2005
|
|
|
|
|
Hi.
I have a gridview with a commandfield (edit and delete buttons) i have converted it to a templatefield.
in my C# backend i would like to get those linkbuttons so that i can deactivate them based on events.
i know how to do it if the control is in a footer.
for example:
TextBox txtName = GridView1.FooterRow.FindControl("txtName") as TextBox;
and then i can use it as a normal textbox in my code.
but how do i do it when it's not located in the footer of the gridview ?
|
|
|
|
|