Web Forms :: Communicate With Sqldatabase In Javascript Without Revealing Details?
Jan 30, 2011
I have always continued to keep all of my code in codebehind that I would need to be secure, and don't make any calls to my database with javascript out of concern that a hacker could see the strconnection, username, ect. Is there a highly secure way to communicate with an sqldatabase with Javascript, or should I continue to do things the way I have done them?
I have a datalist bound to a sql source having two columns: Name and Description. The datalist contains a "Show Description" link as follows on clicking on which it calls the javascript which shows the description div.
[Code]....
The asp.net page source for itemtemplate of the datalist is as follows.The problem is that since the div id "Description" is applicable to multiple records, no matter I click on whichever "show details" link, the description of first record in the datalist is shwon and hidden since its the first div encountred by the javascript. In other words, I want a way to show/hide the description of each record in datalist indivigdually. [Code]....
Problem: I have two pages. Page1 and Page2. When I Click Page1_Button it redirects to Page2 with a Querystring value. In Page2 I do some processing and click save button. My database will get updated and at the same time when I do this my Page1 should also get updated with new values from database. I have a function in Page1 that does this. So my question is How do I call this function in page1 without loosing the previous data on page1 by forcing it to reload? Or in other words Is it possible to call a codebehind function of one page from codebehind of another page without loosing the data or loading the entire page?
I am trying to get a function to work in VB ASP 2010 that would retrieve all articles in my sqldatabase. The problem is the return syntax of this function results in an error.
I have on a page a gridview that can be filtered with one text box. I set up the gridview to show select and wanted to then connect a details view so that when you selected a row the entire details would show up. When I run it I get this error. Data keys must be specified on GridView 'GridView1' before the selected data keys can be retrieved. Use the DataKeyNames property to specify data keys.
I have a gridview control with a details column. I want the user to click details and it give me a pop-up showing details of the particular row. Any idea on how to do this using JQuery?? Looking for an example with code..
I have a details view that appears when record is selected in a GridView. Can this details view be opened in it's own modal window that would allow me to use the full event model?
I need to get client stats for browser (not full long description but short names, generally firefox,ie6,ie7,ie8,safari,chrome,opera and mozilla). Client resolution and OS ie. Windows Vista, Ubuntu .
i need the northwind databse. i dont have it in the database where i can find it and who to add it to my database in sql server so can i c it in the combo box off the database
I do my new website in Sqlserver2005,But when i upload it at that time DataBase Related page display Database error. In this site without Database page open. So give me reply I also add my database in hosting side How to attach my database in my asp.net website , when i upload this.
I have sqldatabase tables.I am reading table data and putting in a tabconatiner(wth tabs containing textbox, checkbox etc) specific to a client. If a client has more than one row i want to iterate through the rows and read each row data. Basically I want to use a button-click to read the next row data at put it in the tabs and so on. I used sqldatareader and a while loop.I can read the data but while loop iterates through the rows and show the last row data / i want to use a button to go to the next row and show data.
SqlDatareader reader=null; reader=cmd.ExecuteReader(); while(reader.Read()) { txtboxName.Text=reader["Name"].ToString(); } protected button_Click(Object sender,EventsArgs e) { //I want to read row data in this button click }
My sqldatabase is inputting NULL instead of the information from my form. Form is collecting different names and multiple phone numbers for each. names, addresses, zip codes are going in as entered on form but phone numbers are not they are going in as NULL. Columns are set as header is Cell, nvarchar, Length is 15 and I have setup as I did other columns. code for my form is (i have removed some lines that are working as expected)
I have a gridview displaying all employees. Upon selecting an employee, I'd like to open a new page or window that would display all of the information for that employee with the option to edit/delete/update. Once this transaction is complete, return to previous page with gridview of all employees. ((language I'm usings is VB))
I want to develop an interactive website in ASP.Net and what I mean by interactive is that it has a back-end application to provide real-time logic (which does not follow HTTP's model of Request/Response) and eventually it is provided with dynamic *.aspx pages with an SQL Server database.
And how would the components go together (as a design and as a communication mechanism) to have a scalable application?
EDIT: Ok, the story is as you know, we all are tending to get something more vital than HTTP model, I want my back-end application to be persistent working in real-time, for example, It would have some constant-intervals to do some queries on the database.
The design as I picture it is a server (holding an ASP.Net website, the back-end application and the database), the design may get more hybrid with time. The website is the interactive interface for the users, the website needs (sometimes) intensive calculations and queries which better be handled by the back-end application, then the application delivers the website the info to be wrapped and formatted as HTML markup to be returned the user eventually.
I have a very huge Asp.Net application using Asp.net 3.5 with aournd 3000 pages. Now we need to integrate some Silverlight controls in it. For e.g we need to change the dashborad to incorporate new SL UX. My question is that easy to use these 2 technologies i.e. Asp.Net and SL and both have different projects. Will that be difficult for us to communicate with each of these web applications and SL Application. We are in the middle of making a decision as to how to integrate SL in our exisiting application.
Keep in mind that its out of the question that we can shift the whole application to SL. We must have to stick to asp.net 3.5 or 4
How do I create a Inbox so that users can commnuicate in asp.net What controls do I need.I am ok with the Databse part of this project. But the design part is confusing I am using Visula web developer 2010. Not using ajax and silverlight. just asp.net This is my first asp.net project.
In the above structure room information has been loaded now when I click on book now then I want to access the roomid room price to send it next panel.
I just want to know that how it is possible to access other values using jquery...
I'm currently developing a website using ASP.NET MVC.I need this website to communicate with an external API using HTTP Post.
I'm unsure whether I should be coding this up in ASP.NET to perform the http post requet and read the response, or whether I should be coding this up in a c# class.It seems when developing a site, you have the option to chose either for many scenarios.
I am new to .net and i'm stuck with the following issue.
I have a windows GUI application and i need to communicate with a firewall using HTTPS protocol. I did some search on google and the results retrieved showed to use HTTPWebRequest and HTTPWebResponse objects.
But does this objects us HTTP protocal or does it work for HTTPS also. also is SSL required for HTTPS protocol. For SSL we need some security certificate. How to retrieve that certificate. Will a certificate need to available in each client machine