Given the following GridView:
<asp:GridView runat="server" ID="GridMenuItemAttributes" DataKeyNames="MenuItemAttributeID" AutoGenerateColumns="false"
OnRowCommand="GridMenuItemAttributes_RowCommand" DataSourceID="DSMenuItemAttributes" OnRowEditing="GridMenuItemAttributes_RowEditing" >
<Columns>
<asp:BoundField HeaderText="D...
Need to convert a web part to a field control on a Sharepoint page.
Part of the problem is to migrate all the content on existing pages that use the web part to the corresponding field control.
Any ideas on how to accomplish this as painlessly as possible?
...
I want to call a function, with as parameters a string and an Int32. The string is just a literal, the Int32 should be a field. So I thought it should be something like:
.method public hidebysig instance string TestVoid() cil managed
{
.maxstack 1
.locals init (
[0] string CS$1$0000)
L_0000: nop
L_0001: ldstr "m...
I have a SharePoint list of Issues and have set a column (called Alert) to a “Person or Group” (allowing multiple names).
I would like the system to send an email to all the users listed in the Alert field, if the respective Issue is modified.
How do I set the Workflow to send an email the users as specified by the data in the Alert...
I have a base class, say BassClass, with some fields, which I made them protected, and some pure virtual functions. Then the derived class, say DerivedClass, like class DerivedClass : public BassClass. Shouldn't DerivedClass inherit the protected fields from BassClass? When I tried to compile the DerivedClass, the compiler complains that...
im trying to understand the get and set properties for fields, and run in to this issue, can somone explaine to me why i had to make the int X field Static to make this work?
using System;
namespace ConsoleApplication1
{
class Program
{
public static int X = 30;
public static void Main()
{
va...
I added a field to a nodetype using CCK, but when I try to view the node as an anonymous user the field is not visible. I can see it when I am logged in with my admin account.
What could be the problem?
...
Is there a paradigm in which I can change a data-key name in one place and one place only, and have it properly be dealt with by both the application and database?
I have resorted most recently to using class constants to map to database field names, but
I still have to keep those aligned with the raw database keys.
What I mean is, us...
I encoutered a somewhat (at least for me) strange behaviour in a library I'm building;
I have this method:
public class Lib
{
private string field = "field";
public string Field
{
get
{
return field;
}
}
public void Add(Lib lib)
{
string field = DoSomething(lib);
Console.WriteLine(field);
}
protected string DoSo...
I believe there is no human way to change any attribute or field inside an Attribute apart from doing it in the constructor. That is, short of redesigning and recompiling Visual Studio yourself. There is already a similar question posted here:
http://stackoverflow.com/questions/51269/change-attributes-parameter-at-runtime
but I believe t...
Hi there, I am new to jquery and consider myself a very novice coder at best, so please bare with me. But I think I am in need of your help!
I have quite a long complicated php form, and a requirement to duplicate a set of fields. I am sure there must be a more efficient way of coding it, however I can't figure it out. There are 2 examp...
I am creating a table during runtime. This is how I do it:
AdoCommand1.Connection:=AdoConnection1;
cs:='CREATE TABLE '+edname.text+' (' +
'ID Integer IDENTITY(1,1) NOT NULL UNIQUE PRIMARY KEY,' +
'[Date Added] DATETIME,'+
'[Name] TEXT(255))';
ADOCommand1.CommandText:=cs;
ADOCommand1.Execute;
I need to add a field "age" which should be...
<input type="text" value="useraname" />
<input type="password" value="password" />
I'm using jQuery to make the inline labels disappear on click/focus. Password shows bulls as usual, but I wonder if its possible somehow to show "Password" label as text (instead of ••••) inside the password field?
Edited to add: I want the user-typed p...
Hi guys
I've mapped one XSD schema to another one using Altova MapForce and generated Java classes from it. So far so good, Java works nice.
However I've noticed that the mapper is not validating the maximum length of strings in input XML.
For example we have an element which is a type of String with following constraint :
<xsd:rest...
How do I set the value of a field (which is relevant to form, but not based directly on the same model) on a (model) form when it is displayed in the admin?
Here is a simplified version of what I have (my actual app/model/etc is more complicated):
A building has many rooms
A room has many pieces of equipment
Models:
#spaces/model...
I need to join my data table to a server calendar file (has set fiscal dates, periods, etc.). I don't get any results and believe it is because my table has date/time like "11/23/2009 11:30:34AM" and the calendar file only has date/time like "11/23/2009", so the fields are not identical.
current SQL reads like:
From tbl_data
Inner Join...
Hello. So as I click the button, the javascript adds new fields. Currently it adds the new text box to the side.. is there a way to make it add below? I guess as if there were a .
Here is the code. Thanks!
<html>
<head>
<script type="text/javascript">
var instance = 1;
function newTextBox(element)
{
instance++;
var newI...
hi, i'm having one text field, normally when touch the text field, keyboard will appear, is it any possibilities where when text field is touch one drop down list will appear to recommend value to be enter and value is selected it will appear in texr field
thanks
...
I was tryin to find any class to define a password field?
How can we do that?
Do we have a class for that or some method to edittext?
...
I have write a custom field that extends SPFieldLookup. I set AllowMultipleValues = true;
Here is Field Control Value:
public override object Value
{
get
{
EnsureChildControls();
SPFieldLookupValueCollection vals = new SPFieldLookupValueCollection();
ICollection s = TinBaiLienQuan...