Sorry i made mistake Now here, can i call oxmlhttp.open("GET",url,true); method, instead of using "GET" can i use "POST" and still send Data=' + reqdBox.value; as a Querystring. Mads
crazy_mads
Posts
-
What is the difference between HTTP GET and POST method? -
What is the difference between HTTP GET and POST method?function GetData() { //make the object here // to communicate/send data to the server, you need to add data as a //querystring. for this, make a variable called url. Let it refer to the same //page. Assuming, you have this page called AJAX.aspx, var url='AJAX.aspx'; //if you wanna pass the contents of a textbox named 'txtOrderNumber' //get the textbox var reqdBox = GetObject('txtOrderNumber','input'); //append the value to the url url = url + '?Data=' + reqdBox.value; //the step above is important as this is the only way data is sent to server. //then, open the oxmlhttp object and pass the reqd. parameters. oxmlhttp.open("GET",url,true); //(method, reqd url, async?) //as we are saying GET in the method, we have to pass null as a parameter // for the send() method. ie oxmlhttp.send(null); //this will send the data to the server asynchronously.
Now here, when i call oxmlhttp.open("GET",url,true); method, instead of using "GET" can i use "POST" and still send Data=' + reqdBox.value; as a Querystring. Mads -
What is the difference between HTTP GET and POST method?Can i send data through querystring and body using HTTP POST method? mads
-
How to display number dynamically on a image button or a hyperlink?its actually a tag with an image.
-
How to display number dynamically on a image button or a hyperlink? -
How to display number dynamically on a image button or a hyperlink?I have an icon in the data grid. How to display number dynamically on this icon?
[](# "View Customer Service Refund Details")
I want to display a number dynamically. Plzzzz help me...:( Mads -
session variables are getting mixed up when multiple instances of application are openedI have developed a website. If i use Internet 7.0 , i am able to open multiple instances of the application and my session variables are getting mixed up. Some one told me that i can Use GUID. Is there any other better method. If i have to use GUID. How to use GUID? Plz help me :( Mads
-
Writing the contents of response object into an ExcelSheetFollowing is the code that i have written to write contents of response object into an ExcelSheet.
Response.Clear(); Response.Buffer = true; Response.ContentType = "application/vnd.ms-excel"; Response.Charset = ""; string sep = ""; foreach (DataColumn dc in dt.Columns) { Response.Write(sep + dc.ColumnName); sep = "\t"; } Response.Write("\n"); int count; foreach (DataRow drow in dt.Rows) { sep = ""; for (count = 0; count < dt.Columns.Count; count++) { Response.Write(sep + drow[count].ToString()); sep = "\t"; } Response.Write("\n"); }
If less than 30 records are there in the response , its not writting in the excel sheet. Plzzzz help me:( Mads -
Need Atlas ControlsPlease provide me the link from where i can download Atlas Controls. Mads
-
How to Validate 3 textBox controls using a single RequiredValidator?I have 3 TextBoxes which hold Addresses. Only if all the three textBoxes are blank i need to display a Message saying, Address cant be left blank. Even if any one of the textBox is filled i should not display the message. I have to do this in the client side and then on the click of a button i need to validate the address(i call a function in the code behind page in C# to check the format) Please help me. How do i go abt? :( Mads
-
SQL Server 2005 BasicsI am new to SQL Server. I want learn basics abt 1. Stored Procedures 2. View 3. Index 4. Triggers 5. Function 6. Cursors 7. Locks Can anyone help :) Mads
-
How to remove last row from DataView before binding it to a DataGrid?I have a DataView. I am Sorting the DataView and then removing the last row before binding it to dataGrid.
dvViewOrder = new DataView(dtViewOrder); dvViewOrder.Sort = "VOD_ProductCategory ASC"; if (dtViewOrder.Rows.Count >= 2) dtViewOrder.Rows.RemoveAt(dtViewOrder.Rows.Count - 1); OrderList.DataSource = dvViewOrder; OrderList.DataBind();
Even tough I am removing it afte sorting. It is removing a row and then sorting. Can anyone help:( Mads -
Dilema whether to go to Biztalk Project or stay in ASP.NETCurrectly i am working in ASP.NET for past 7 months. I have been given a choice to move to Biztalk. I have undergone traning in Biztalk 2006. Will it be a right decision to switch to a new technology at this point of time in my career. If i switch to biztalk now will it help me in future. Plz help me guys... :( Mads
-
How to add buttons inside PopUps?I am currently using the below custom popup control.(ASP.NET,Language used is C#) http://www.codeproject.com/aspnet/asppopup.asp[^] But i am not able to add Ok and CANCEL buttons inside the pop up.I cant use alert since i need to change the color and include title, which cannot be done in alert. Can anyone help me out in this and suggest me with a better idea.:( Mads
-
How to add buttons inside PopUpsI am currently using the below custom popup control.(ASP.NET,Language used is C#) http://www.codeproject.com/aspnet/asppopup.asp[^] But i am not able to add Ok and CANCEL buttons inside the pop up.I cant use alert since i need to change the color and include title, which cannot be done in alert. Can anyone help me out in this and suggest me with a better idea. :( Mads
-
To change the background color of AlertBox?It is really helpful.but i am not able to add a pop up with OK and CANCEL buttons inside. Can u suggest me with something about this.:( mads
-
To change the background color of AlertBox?Thanks a lot. i think its really useful. :) mads
-
To change the background color of AlertBox?I have an issue.. I have many alertBoxes in my code (ASP.NET - C# is used). I want to distinguish between AlertBoxes. For that i want to change the background color of the alertbox or use an icon inside alert. Or add a title to the alert. My code is similar to this. My .aspx page contains the following
function LoadWindow() { <% if(PageInvocation.Trim().Length <= 0) { Response.Write("window.history.go(+1); "); } %> <%=PageInvocation%> <% PageInvocation=""; %> } . . .
My .aspx.cs has the following code.public Page_load() { PageInvocation = "alert('Hi- First Time!!!'); "; PageInvocation = "alert('Hi- Second Time!!!'); "; }
I want to distinguish the 2 alerts by giving a different background color or adding icon or by adding a different title. Plzzz.. Help me out.:( Mads -
What is Serializable attribute?I have seen ppl using Serializable attribute for Classes. Can anyone explain me wat does Serializable mean? and why is it used? Mads
-
Serializable attribute in .NET FrameworkI have seen ppl using Seriable attribute for Classes. Can anyone explain me wat does Serializable mean? and why is it used? Maddy