I am passing XML to the SP from .NET. My xml format is as follow.
<docs key1="value1" key2="value2">
<Item id="1">Item Name</Item>
View Complete Post
View Complete Post
each row in a table shows a a decimal value , i want to calculate the total with out using server codes
I have a site I'm working on where the values being stored in user profiles can change so I need to iterate through all available profile options and display them (say in a label or gridview for instance).
Here is an example of a web.config I threw together
Hi, I have an asp website, and a dataset with a datatable. When I check I after configuring it it shows all the data. But when I run the code I got an exception
System.Data.ConstraintException was unhandled by user code Message="Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."
I want to figure it out with iterating datarow.
Some codes are here but I need help to iterate datarow.
public partial class tabRegionExtremeList : System.Web.UI.Page
DataSet1TableAdapters.droughtDataTableAdapter k1 = new DataSet1TableAdapters.droughtDataTableAdapter();
DataSet1.droughtDataTableDataTable k2 = new DataSet1.droughtDataTableDataTable();
protected void Page_Load(object sender, EventArgs e)
private void getRegionExtremeList()
// How to catch error by iterating Datarow here
// such as using
I am using WPF DataGrid (VS 2008). i am using Template column with a button in it i want to change the content of the button(Caption) when it is clicked .i am doing it in its click event ,but it changes the content of only the button clicked(only one
row). i want to change the content of button in all rows.
how can access the button instance of all rows in this template column.
I have the following table variable that i store rows extracted from an
declare @tbl_ans table ( AnsText nvarchar(max), IsCorr bit)
this cannothave an index column.
assume it has 25 rows, i need insert each row to a table that has three columns
That Answers table has following structure:
The script should iterate through the @tbl_ans_table table and insert each to the answers table then i should fetch each
a_idx in each iteration and insert it to another. But the problem is how itereate through
@tbl_ans_table without an index?
How would I iterate the rows in the datagrid? The 4th column contains the time, I would like to compare it with the systemclock and enter "ACTIVE" in the 5th column if the time value in the 4th column is equal to the system clock?
I tried FOR EACH.. but I can't get it right.. Please help.
OK I am a total novice to VB so bear with me.In my web-based project, I pass an ID field as a parameter in my URL and go through each row in my gridview to find the correct row that matches the ID parameter, like so:
Protected Sub GridView1_DataBound(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.DataBound
REM if valid ID parameter was given in URL
If Not Request.QueryString("ID") Is Nothing AndAlso _
Dim bItemNotFound As Boolean = True
Dim i As Integer
Dim iSelectedIndex As Integer = -1
REM Loop through the items in the GridView
For i = 0 To GridView1.DataKeys.Count - 1 Step i + 1
REM Found the correct item
If Request.QueryString("ID") = GridView1.DataKeys(i).Value Then
bItemNotFound = False
iSelectedIndex = i
If bItemNotFound = False Then
GridView1.SelectedIndex = iSelectedIndex
GridView1.SelectedIndex = -1
The problem is that this code only works if the corresponding ID is in a row displayed on the first page. I want to loop through each page in the gridview's rows until either the correct ID is found or it reaches the end of the data set. How do I
User stored his/her profile picture in "Shared%20Pictures/Profile%20Pictures/bhind8ball.bmp" path in SSP. How to get this List item using this url? Or How to iterate SharePicture/ProfilePicture to get this List item using SPQuery?
Please share thoughts.
I want to iterate through all the activity designers present in a WorkflowDesigner ... the WorkflowDesigner has been loaded with a root Flowchart activity, and the flowchart will contain all kinds of different activities. I've tried to do this by using
the ModelService object, but for some reason it's hanging on the Find() method. Is there another/better way to do that?
This is what I'm trying currently:
ModelService modelSvc = this.wd.Context.Services.GetService<ModelService>();
IEnumerable<ModelItem> activityCollection = modelSvc.Find(modelSvc.Root, typeof(Activity));
List<ModelItem> activityList = activityCollection.ToList<ModelItem>();
foreach (ModelItem item in activityList)
StartWorkflowActivityDesigner designer = item.View as StartWorkflowActivityDesigner;
if (designer != null)
designer.ExpandState = true;
I have a class with three students in it. Each student has two test scoress for the semester. How do I iterate through my ArrayList?
Also suppose I want to remove a student score from the ArrayList while iterating through the list, How can I do this ?
An example is if I allow Hallie to drop her lowest score of 71
int Students=3; int Scores = 2; int[,] Student = new int[Students, Scores];
ArrayList Class = new ArrayList(); // Add joes scores Student[0, 0] = 88; Class.Add(Student[0, 0]); Student[0, 1] = 99; Class.Add(Student[0, 1]);
// Add Maries Scores