Thing is, I think I've done everything in the post, but my code is just not working. When I click submit, the variable in the code behind (val) isn't capturing any data - Object reference not set to an instance of an object.

More Related Resource Links

Hi, I am using a IIS 7.5 on Windows 7. I have a simple application that uses System.Net.WebRequest to POST data to another URL (in fact, the server side URL is on my local computer and it is hosted in IIS 7.5).

1. The problem is the server does not save data from client although on the client side codes when I debug and I see the OK message return from the code line

response.StatusDescription; // this has value of "OK"

2. How can I debug the server code side where to receive the request from client side who posts the data ?

The following is the codes for client who posts data using System.Net.WebRequest, and codes for server side who received posted data to save to database.

My page is having one gridview with check boxes,two textboxes and one button
just like this see this link now i want to enable go button whenever user
has select checkbox in gridview and he needs to enter text in two textboxes. i
have written onkeyup event for two textboxes to test whether user enter text in
textboxes or not but i am unable to write javascript function to check
whether user has selected checkbox in gridview or not to enable go
button .My requiremnet is user need to enter three inputs select atleast
one checkbox in gridview and he needs to enter text in two textboxes.please
friends pls tell me how to write javascript function to find whether user
has selected the checkbox in gridview or not

I've got a project, when I put up on another server I point two sites in IIS6 to it

i have

http://www.main.com pointing to the folder the files are in

and

http://www.anotherofoursites.com/main pointing to that same folder in it's own "Virtual Application" or whatever IIS calls it when you put a folder into it's own

If I just "Build" and push all the files up.. both work without issue and as expected... but when I use "Publish" to precompile, the site works until I post, and then i get nailed with:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

I have succeffuly Imported the ADF and have also successfully created a Business Data Column. But when I try to query data , I get the following error

An error occurred while retrieving data from Oracle Instance. Administrator, see the server log for more information

And this is what I found in the Application Logs
A Metadata Exception was constructed in App Domain '/LM/W3SVC/81256521/ROOT-1-129217212004078822'. The full exception text is: LobSystem could not be found using criteria 'id=476'.

I have this problem regarding searching within a XML
file.
the
idea is that my search will be based on the keyword entered
in by the user from a HTML form. the keyword is then used to search all
the nodes and the child nodes within a XML file. once the match
is found, i will have to display the results.

But i don't know how to do so - especially the part of searching xml
file using javascript

Hi
I am working with sharepoint linq concept. When I am giving a query with lookup column It's working fine. But when i am trying to retrieve the data from a look up column to spgridview. I was unable to get the output.
Here is the above code which i have worked.
string strTitle = string.Empty;
string strStatus=string.Empty;
var context = new LinqSampleDataContext(SPContext.Current.Web.Url);
EntityList<SharePoint2010ConceptsItem> Concept = context.GetList<SharePoint2010ConceptsItem>("SharePoint 2010 Concepts");
var query = from cs in Concept where cs.Status.Title.ToString()!="Completed"
select new
{
cs.Title,
cs.Id,
//cs.Status
};
sgvConcepts.DataSource =query;
sgvConcepts.DataBind();
Any help me plz how to retrieve the data from a lockup column.bvnprasad

Hi
I am working with sharepoint linq concept. When I am giving a query with lookup column It's working fine. But when i am trying to retrieve the data from a look up column to spgridview. I was unable to get the output.
Here is the above code which i have worked.
string strTitle = string.Empty;
string strStatus=string.Empty;
var context = new LinqSampleDataContext(SPContext.Current.Web.Url);
EntityList<SharePoint2010ConceptsItem> Concept = context.GetList<SharePoint2010ConceptsItem>("SharePoint 2010 Concepts");
var query = from cs in Concept where cs.Status.Title.ToString()!="Completed"
select new
{
cs.Title,
cs.Id,
//cs.Status
};
sgvConcepts.DataSource =query;
sgvConcepts.DataBind();
Any help me plz how to retrieve the data from a lockup column.bvnprasad

Hi,
I have created an InfoPath form in InfoPath 2007. In this form I am getting data from SQL Server. To do this I have created data source for SQL Server 2008’s Tables. I have created 4 connections for 4 tables.
When I am previewing this form from InfoPath Designer 2007, it is working. But when I am publishing this, it is giving me an error ‘Can not update content type’.
If I skip this error then my form published but when I open this form from Share Point 2007. It gives me an error:
There has been an error while processing the form.
Click Continue to resume filling out the form. You may want to check your form data for errors.
Click Start Over to load a new copy of the form.
An error occurred accessing a data source.
An entry has been added to the Windows event log of the server.
Log ID:
6932
G. Goyal

I have a form that has the following<form action="http://site" enctype="multipart/form-data" method="post">
<input type="hidden" name="action" value="the action" />
<input type="hidden" name="apiKey" value="key here" />
<input type="hidden" name="name" value="racing" />
<input type="hidden" name="title" value="Race Cars" />
<input type="hidden" name="signature" value="sig here" />
<input type="file" name="file" />
<input type="submit" name="_upload" value="Upload" />
</form>I know its not .net controls.. but hat doesn't matter for now, what I need to do is post this form with all it's data, but entirely in code.I have found this post: http://www.developmentnow.com/g/36_2005_3_0_0_300351/Using-HttpWebRequest-to-send-POST-data.htm this describes how to do it but I am not getting it.I will have a file upload on my page and a textbox for name and title, but the rest are generated in code.I know it's a long shot, but can anyone give me an example of exactly how I would do it for my scenario? I have been at it all day and I am struggling! I keep getting bad gateway errors when

Hi,
I am looking at making my database historic and would like some pointers. Data older than 1 year does not need to be kept so every 12 months, data is "recycled".
So far I have come up with the following using DATEPART and all data is in the same table (tables simplified):
1. When I insert records:
INSERT INTO [Table] VALUES (newid(), @FKID, @Value, GETDATE())
1. When I update records:
UPDATE [Table] SET [Column] = @Value WHERE [FK] = @FKID AND (DATEPART(month, GETDATE()) = DATEPART(month, [TimeStamp]))
2. When I select records:
SELECT * FROM [Table] WHERE [FK] = @FKID AND (DATEPART(month, GETDATE()) = DATEPART(month, [TimeStamp]))
3. WHEN I delete records:
DELETE FROM [Table] WHERE [FK] = @FKID AND (DATEPART(month, GETDATE()) = DATEPART(month, [TimeStamp]))
Is this efficient? I was looking at partitioning, but I am not sure that it would be feasible as I want to recycle data every 12 months. Or is there a better way to do it?
Regards,
James

hi everyone,
I have a page which will retrieve data base on drop down lists and place the data onto a gridview. When the data was entered, each field was entered with multi-selected and delmited by a comma. In the database, some fields will have a string with multi information delmited by the comma, for example, Chicago, Atlanta, NYC will be recorded and place in the field in the database. I'm trying to search now but with a dropdown list with Chicago, Atlanta, and NYC being an individual record. If the person selects NYC, all of the records from NYC will appear even though Chicago and Atlanta are part of the string. Can someone show the right direction to do this? Thank you, Carlos
The following is the code for the current page:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ExportContacts1.aspx.vb" EnableEventValidation = "false" Inherits="ExportContacts1" %>
<%@ Import Namespace="System.Web.Mail" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub exportcsv_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim objStreamWriter As IO.StreamWriter
objStreamWriter = New IO.

Hi, I'm having a question about retrieving data. I'm using VS 2008 and I have to create a new consultation record for a patient and I've already created a database with 3 tables, which are doctor, patient and consultation. I have 10 records saved in consultation table, and I've made a aspx form which contains a DetailsView that ask for new consultation details to be added. But I have to be able to get the doctor and patient information from the database and put in the DetailsView, then fill in the rest of the consultation details. The information entered have to be written to the database in the consultation table. But I don't know how to get doctor and patient information from database and apply them into the DetailsView so that doctor who wants to add new consultation details can select patient and doctor information from the database.I was thinking maybe I need to do a query with insert statement and apply into the DetailViewthis is the query i have:INSERT INTO [Consultation] ([ConsultationID], [GPname], [PatientFirstName], [PatientLastName], [Height], [Weight], [IllnessDescription], [Diagnosis], [Date]) VALUES (@ConsultationID, @GPname, @PatientFirstName, @PatientLastName, @Height, @Weight, @IllnessDescription, @Diagnosis, @Date)as you can see, I need to get the GPname, PatientFirstName and PatientLastName from the database tables and the rest will be fi

I've got a button click event (btnSend_Click) within which I want to programmatically POST data ("key1=value1", "key2=value2") to another aspx page ("ReceivingPage.aspx") on my site. It would be very easy to do if it were a GET, cos I'd just append the data key/values to a query string of a HyperLink control. But How do I do this as a POST?