Is there a way to grab the querystring from the original request or pull it from the ASPX ErrorPath?
We've updated 5 applications, and combined them into one. However, when someone requests and old URL such as [URL]I tried capturing the value from the querystring, but it does not seem to work since the aspxerrorpath is there (404 page).
I want to be able to pull the clients date/time and then show it in my asp.net web page. I know if I do now.tostring, it will show the servers date and time. How can I do this?
Using: visual web developer 2008; Asp.net; Access db; VB.net code
When a user logins, I want to be able to store all his profile information so I can display, for example, his email on different pages of my website, but I don't want to have to keep querying the database for every time I want to display his email. How would I go about doing this?
Lets say I have a variable 'userid', I want to select from aspnet_Membership AND aspnet_AccountProfile tables. They both have the column userid, I just want to be able to make a statement like SELECT * FROM aspnet_AccountProfile, aspnet_Membership WHERE UserId=@UserId and it gets the records with the matching user id for BOTH tables. how do I do this?
I have a recruitment portal that people can use to advertise and search for jobs.I would like the recruiters to be able to add a small javascript snippet to their personal websites, that will list jobs on my site. how can i go about this?I have webservices set up so the javascript can just call that, but i also need the result to be formatted and placed inline.This should work in a simular way to google adsense.
I am trying to pull data from my populated javascript table. How do I pull the value from a javascript row? I am using
for (var i = 0; i < rowCount; i++) { var row = table.rows[i]; //This is where I am having trouble var chkboxIndicator = row.cells[0].childNodes[1]; alert(chkboxIndicator); // if (chkboxIndicator == indicator && Checkbox.checked == false) { table.deleteRow(i); rowCount--; i--; } }
which has an alert message of "undefined". I tried .value and .text as well and no progress. How do I get the text from the childNodes?
I am currently developing a web site for our Student Council so members can check in and view the work they've done, sign up for tasks, etc. They will authenticate using their username provided by the school district's AD servers. How can I make it so that only their data shows up when they use their username?
pull some data from this grid view, and then update all pulled grid view data value to tableTwo.Update tableTwo set uit = Grieview.NewSid where con = 'Gridview.pid' and unid = 'Girdview.Gid' + 'Gridview.Tid'
How can I call a public property declared on a ASPX page from a different ASPX Page? Is that possible? It is a website project. How can I get/call this property from a different aspx page? I have attempted this from the other page, but it is not recognizing the partial class: private Test_Default _test; It does not recognize the "Test_Default"
I've been working on this function, basically it's an order page. When the user presses the "Order" button, I would like the data to write to a SQL DB. This is what I have:
Protected Sub btnOrder_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOrder.Click For Each row As GridViewRow In GridView1.Rows Dim Owner As String = DirectCast(row.FindControl("lblOwner"), Label).Text Dim Item_Num As String = DirectCast(row.FindControl("lblItem_Num"), Label).Text Dim Lot_Num As String = DirectCast(row.FindControl("lblLot_Num"), Label).Text
[Code]....
I can't get these "Dim Owner As String = DirectCast(row.FindControl("lblOwner"), Label).Text" to compile. I think because this is looking for template fields and my gridview is filled in on the fly so they are bound fields. Does anyone know how to get the text out of a bound field?
So I am using a jquery plug in that allows me to change the order of things in a list by dragging and dropping them. So my goal is to be able to grab a list of my objects (AlertInfo) and using it in a javascript function. I was able to use a json webservice call in a test project to pass the data to the page.But we don't have a webservice page now so I tried to grab it from a aspx.cs page and it hasn't worked.
///Aspx page: $.ajax({ type: "POST", url: "~/Alerts/GetAlerts", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { var data = eval("(" + msg.d + ")"); jQuery.each(data, function (rec) { AlertList[AlertList.length] = new objAlert(this.id, this.title, this.details, JSONDateSerializationFix(this.startdate), JSONDateSerializationFix(this.enddate)); UpdateDisplayList(); }) }, error: function (msg) { alert("BRAD" + msg); }
The issue is that the Alerts page in "URL /Alerts/GetAlerts" is Alerts.aspx.cs. I can't figure out if I can use this ajax command to call a method in a aspx.cs page.
//Code behind page aspx.cs [WebMethod] //[ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string GetAlerts() { List<AlertInfo> list = AlertInfo.GetTestAlerts(); return new JavaScriptSerializer().Serialize(list); } public List<AlertInfo> GetAlertsList() { List<AlertInfo> list = AlertInfo.GetTestAlerts(); return list; ; }
So I was hoping that I could load data into an asp control (dataList) and then grab the data
I have an existing windows .net application that has an access database as the backend.
I want to place the access database on a web server and it was suggested that I create a web service in order to communicate with the database.
I've been looking at some tutorials but am still confused about the basic config needed. Here's some questions I have:
1) Does the web service need to be created inside my current project by right clicking on the solution and choosing to add a new web site...and then selecting web service?
2) If it's set up like this, what files do I place onto the web server?
3) Where does the database reside? Do I need to place the database inside the web server that I create?
4) My current project has existing sql that gets data and I'm uncertain how to re-write in order to retreive the data. e.g. which part goes into the client and which part goes to web service pages? here's an example of a procedure that currently exists...I'm getting data to populate a dropdown:
I have been banging my head against this problem for a bit and I think I am stuck. I would like to pull data from a Database to populate a list of possible "clients" to select from on one side. Then using what has been clicked load the client specific data into a tab container on the opposite side. I plan on doing lazy tab loading so I am not sure if that matters. I am really stuck and any help or guidance anyone could give would be greatly appreciated! I understand the basics of data loading and of tab containers, but i am unsure of what to do. I am coding this in C#. Example Mock Interface This is where the data list would be and I want to be able to select something here And update the Tab Panel control here based on the selection from the left side via querying the database.