Use AJAX With Aspx Backend?
Apr 5, 2011
I have to use VB.Net. Microsoft provides black magic tools (in the Visual Studio IDE) for making AJAX work, but using these seems hopelessly complicated and documentation for these tools covers only the simplest examples. By contrast, writing the scripts myself seems much easier, and I will understand what is going on.
So my question is, is it possible to write my own AJAX javascript (creating the XMLHttpRequest object, etc.), and have the server-side function be written in VB.Net instead of PHP?
View 1 Replies
ADVERTISEMENT
Apr 13, 2011
For several days now I've been messing around with Ajax calls using different combinations of javascript, ASP controls, and regular controls. I've gotten a bit of understanding about what's going on, but using ASP controls still hides too much of the machinery, and I want to have a deeper understanding. With that aim, can anyone tell me why the following setup doesn't quite work?I have a file "Testy.aspx" with the following:[code].....
So, I hoped to make my .aspx file do double-duty both as the regular-page request handler as well as the Ajax request handler. However, when I click the button ("baroo") to generate the Ajax request, the result that ends up written back to the "testytext" div is the raw html for the entire page, as if under normal request conditions. Clearly, my attempt to override the page request by making the code-behind implement IHttpHandler and supplying an "Overrides Sub ProcessRequest" method is not working. The server is still treating the Ajax request as a normal request, and in fact my own "ProcessRequest" method is never even called.Is it possible to build a page/handler like this? How can I intercept the incoming request from the client and respond accordingly?This is how Ajax works, right? So it must be possible.Again, I'm deliberately doing this as an excercise to avoid the use of "magic" ASP controls like UpdatePanels,
View 1 Replies
Jan 23, 2012
I am trying to service AJAX requests with a method in my .aspx page. For some reason I am not getting the data returned that I want.
mypage.aspx:
<%@ Page Language="VB" Title="My Page" %>
<%@ Import Namespace="System.Web.Services" %>
<%@ Import Namespace="System.Collections.Generic" %>
[Code].....
When I click mybutton I get an alert "error:" and then whole lot of HTML that says:
Unknown web method testmethod.
Parameter name: methodName
View 2 Replies
May 2, 2011
Im trying to pass a value bounded with a button in form1.aspx to form2.aspx
form1.aspx:
<asp:Button ID="Button1" runat="server" Text="Button" CommandArgument = '<%#Eval("Parking_ID")%>' />
[code].....
View 2 Replies
Jun 8, 2011
I have two aspx pages. I need to send a textbox(record_id) value as a parameter from page1.aspx to page2.aspx to be utilized within a SqlCommand query in the VB code behind page. I would like to pass this parameter using the session. Page1 is a gridview which displays records from a sql datasource and on the edit button click the user is redirected to page2 which populates several textboxes and drop down lists and allows the user to edit the record.
page1.aspx:
<div id="header">
<h1>Page1</h1>
[code]......
View 1 Replies
Feb 22, 2012
If Page1.aspx opens Page2.aspx in a window, how can I have Page1.aspx refresh once Page2.aspx is closed?I have a page with data on it and I have a LinkButton set up so the user can edit that data. The LinkButton launches another windowed page with some text fields and a "Save" & "Cancel" button. Once one of those clicks I execute a save and close the window OR just disregard the information and close the window. I was hoping to have the initial window with the data on it refresh once the 2nd window is closed.
View 1 Replies
Oct 27, 2010
I've had the same problem a couple of times with different ASPX pages after renaming them and I am surprised that I can't find someone else with the same problem on stackoverflow.When I run my ASP.NET C# project, the debugger gives me a message like this one.
Error 5 The name 'txtTitle' does not exist in the current context
It seems that the aspx and aspx.cs files at no longer bound. The only fix I have found for this is to recreate the page and copy/paste my code. how to fix this without recreating the whole thing?
View 4 Replies
Jan 16, 2009
I have two asp pages. a.aspx is layout and b.aspx is content. I want to display the contents of b.aspx inside a <div> on a.aspx. I know with PHP you can do it like so:
//a.php
<html>
<head>
[Code]....
View 5 Replies
Mar 2, 2011
I have two webpage in my website namely Default.aspx and Default2.aspx
I have asp.net textbox1 and button1 inside Form tag in Default.aspx page
and i have textbox1 inside form tag in Default2.aspx page
i want when i wanna transfer the textbox1 text of default.aspx page into default2.aspx textbox1 text hidden parameters ... which will not show query string in address bar and transfer value from one page to another..
View 2 Replies
Dec 27, 2011
I have following abc.aspx file:
[Code]...
When i try to use this it gives error: txtSearch is not accesible? what am i doing wrong here? This is not complete code just a snippet. But i think it gives an idea what am i trying to do.
View 1 Replies
Mar 18, 2011
how to redirect to another .aspx page on clicking on a rectangle on a .aspx page? mention the whole program including headers, preferably in vb
View 1 Replies
Jun 27, 2012
I have 2 pages. parent.aspx and child.aspx. In parent.aspx, i use colorbox and send some value for the child.aspx to popup.
[code]...
child.aspx will popup and shows ASPxGridView base on the value passing from parent.aspx. User will select the data from ASPxGridView. the selected data need to send back to the parent page. I code it in child.aspx.vb page.My problem is how can i get the value from child.aspx.vb and pass it to parent.aspx ?
View 1 Replies
Jan 11, 2011
How do I pass a variable difined in .aspx.vb to .aspx. I've tried this in the .aspx.vb:
[Code]....
'postcode' is not declared. It may be inaccessible due to its protection level. What am I doing wrong?
View 1 Replies
Mar 15, 2012
I have following code in aspx page:
<div id="a" runat="server" style="display:block;">
abc
</div>
[code].....
View 3 Replies
Jun 17, 2010
i have my first aspx page that has data thatthe user fills in. it is in format of textbox's and at the end of it all the user clicks submit and all data goes in the database. In the database each record gets an ID field. Now when the users clicks submit and goes to the next page, i want the ID's (they could be 1 to 1000+) from the DB that he just inserted and have them available on the second page. how can i take all the id's from page 1 to page 2? can i do it in session?
View 2 Replies
May 16, 2011
I'm trying to create a proxy for cross-domain AJAX POST queries and, in order to do that, I need to be adding the cookies from my client (browser)'s request into the POST request I send to the PHP backend, which is using HttpWebRequest. In order to do this, I'm adding each of the Request.Cookie into the HttpWebRequest.CookieContainer object. For some reason, none of the cookies I add to it ever get to my PHP backend.
I understand from some searches that the CookieContainer object is URI-dependent (I'm not sure how to even explain it!), so perhaps that's the cause of my issues. However, I've tried setting the domain on my cookie to different things and it doesn't seem to affect it. So maybe URI means something different than the Cookie's Domain parameter. If that's the case, I'm stuck.
[Code]...
View 2 Replies
Jan 11, 2011
I'm really struggling here - I'm trying to create a connection string to my TD backend and this is not working unless I create a data source in the project and enter my username & password. (to be stored in the config file?) I just want a simple connection string that will allow me to perform updates - furthermore i would like it to prompt the user for a password initially. I keep receiving the error:"No error message available, result code: DB_E_ERRORSOCCURRED(0x80040E21)" [code]
View 6 Replies
Aug 11, 2011
i was create the .exe of vb.net project with sql server in backend. when i install it any other computer that time it is not connect to the data base. whta i do for that.
View 1 Replies
Jul 13, 2011
m a final year bsc.IT student.i need your help can u suggest me some topics for my project.
i want to make it in vb langugae n its backend in MySQL
but m not finding any suitable topic.
View 2 Replies
Nov 20, 2010
i have two item in form it is---1 is textbox and 2nd is combo box.now i have single value in textbox but there is a multiple value for a combobox with is totally depend on a value of textbox.*i am already add data to the backend files ... in which 1 columns that is called column A it's value is for textbox and 2 column that is called column B it's value for combo box When i write in textbox it's dependent ALL value can be get in the combo box.Can any one solve my problem..
View 1 Replies
Dec 17, 2010
i am using thickbox in asp.net and everything works fine. I load it, have textboxes and dropdowns in it. I also made modal=true, so it only closes when i click the "Thank you" button. The problem is that behind in the aspx.vb file, i need the data from the thick box, so i can insert, update in my database. How can i do that? Right now all that is happening is that onclicking the button the thickbox closes, but how do i send data to .vb file in backend?
View 1 Replies
Apr 17, 2011
I have a User interface in VB.net(for a desktop application). And i want the backend to be in Java. How to connect them . Example: I want to have the search box functionality to be wriiten in Java.
View 1 Replies
Mar 7, 2009
I'm creating an admin backend on my site. All the user content that goes on the site will be stored in a database table called Pending. There are other tables where the content will go once approved (Guestbook, Quotes) but if the content is rejected, it'll just be deleted.I know how to delete the content from the database, but I'm having problems will the approval system.On the approval screen, the admin will see a DataGrid that's databound to the Pending table. There's a button that the admin will click to approve the content (based on a checkbox selection or input of a uniqueidentifier entered into a textbox.Can anyone give me an idea on how to move the content from one table to another? Some sample code would be very nice.I'm using VS2005 with SQL Server 2005 Express.
View 1 Replies
Mar 30, 2010
I have recently learnt vs '05 and am creating a project in vb.net '05.my question is-During project development, we connect it to MS SqL server 2005 express installed on my system and it works.( I use add datasource wizard,add sqldataadapter,add gridview control,generate dataset,connect dataset to gridview method). But after the project is finished and we create its executable, the project will be run on adiffrent machine with a different server name and hence a new connection string will be required.
How can i make my project detect server details and connect to it, at runtime ? because the user is only expexted to start the server and open my application.the app must connect to the new server on its own. If anybody has an answer or if you know some resource where i can find it, please post here. Any suggestions are welcome.
View 1 Replies
Oct 26, 2009
I have some really nice Python code to do what I need to do.I don't particularly like any of the Python GUI choices though. wxPython is nice, but for what I need, the speed on resizing,refreshing and dynamically adding controls just isn't there. I would like to create the GUI in VB.NET.I imagine I could use IronPython to link the two,but that creates a dependency on a rather large third-party product. I was perusing the MSDN documentation on Windows IPC and got the idea to use sockets. I copied the Python echo server code from the Python documentation and in under 5 minutes was able to create a client in VB.NET without even reading the System.Net.Sockets documentation, so this certainly doesn't seem too hard.
View 2 Replies
Apr 6, 2010
trying to delete a record in access backend table...
The form shows the record being deleted..
But the records in the table never get deleted. ?????
Private
Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
[Code].....
View 3 Replies
Mar 8, 2011
I'm using Excel as a database backend to load into a datagridview.
This is how I connect and bind to the dgv:
vb.net Dim sFileName = filelocation & "checks.xls"
Dim connectionStringTemplate As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties=""Excel 12.0 Xml;HDR=Yes;IMEX=1"""
[CODE]...
It connects and populates fine. I have a button for the user to "refresh" the datagridview. I cannot get it to correctly refill the dgv. I have tried setting the bindsource.datasource to Nothing along with the datagridview datasource, but I get an error that brings up the Visual Studio debugger with no real error message...
View 3 Replies
Dec 14, 2011
My problem is that I need to use a access database as a backend for my visual basic.net program.
The database will be accessed by a maximum of 10 users but I want to lock tables when a user is updating a record.
I am unable to use the SQL server at the company due to it storing sensitive information.
I have some basic knowledge of ado.net
I have read many articles but I can't find any articles that say how to lock a access .mdb file using Visual basic.net
View 1 Replies
Nov 16, 2010
I has a Access database ...that is password protected.... i am connecting in this manner given as follow .......(Without password protection)
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:My Documentsdb2.mdb")
cn.Open()
///codes.......
cn.close()
how can i edit that can use for access those password protected Access database
View 2 Replies
Mar 9, 2010
I've been using ms access bfore but want to upgrade coz the company im working in is getting bigger. With almost 10,000 new clients added every week. Im afraid access can't handle it anymore. So im planning to create a new database. Im really new to this SQL Express but have knowledge in sql using vb codes. Is it easy to be used as backend database?
View 6 Replies