Click here to Skip to main content
15,926,507 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sendin Emails !!! Pin
hsesoldi3-Sep-08 4:05
hsesoldi3-Sep-08 4:05 
QuestionRepeater and datagrid Pin
cbm13-Sep-07 6:02
cbm13-Sep-07 6:02 
AnswerRe: Repeater and datagrid Pin
eggsovereasy13-Sep-07 9:51
eggsovereasy13-Sep-07 9:51 
QuestionGridView Problem Pin
priyank_ldce13-Sep-07 5:50
priyank_ldce13-Sep-07 5:50 
AnswerRe: GridView Problem Pin
Member 407932028-May-08 4:56
Member 407932028-May-08 4:56 
QuestionProblem with sorting and paging Pin
satishkumarnk13-Sep-07 5:35
satishkumarnk13-Sep-07 5:35 
Questionhow can I use itextsharp to create a pdf with html in it? Pin
Big Ralph13-Sep-07 5:04
Big Ralph13-Sep-07 5:04 
QuestionSetting Value in a row of Column/Filed of a documnet Library as link to another Library Pin
khan SharePoint Developer13-Sep-07 4:41
khan SharePoint Developer13-Sep-07 4:41 
i have a document library (named: Outstandings) which contain word cosuments, i searched a document (named: Balance_343,35725.doc) within this library , i ahve some columns in this library, i want to change the value of column/filed(named: Document Library) , how can i change the value of field? (actually i want to show a library name as link in the clumns in front of document)

This is my code:

SPSite sitecollectiont = SPControl.GetContextSite(Context);

SPWeb sitet = sitecollectiont.OpenWeb();

sitet.AllowUnsafeUpdates = true;

SPListCollection lists = sitet.Lists;

foreach (SPList list in lists)

{


if (list.Title == "Outstandings") //this D. library

{

SPListItemCollection items = list.Items;

foreach (SPListItem item in items)

{

SPFile file = item.File;

string docName = file.Name;

if (docName.Equals("Balance_343,35725.doc"))

{

SPField field = item.Fields.GetField("Document Library"); //this is column name

field.DefaultValue = "1234";
field.Update(true);

return;

}

}

}


but setting its value by defaultValue necver worked.

Please help to set the value as a link to Library.



Thanks


Needo
Questiongetting only date part of a variable not time Pin
Farhad Eft13-Sep-07 4:31
Farhad Eft13-Sep-07 4:31 
AnswerRe: getting only date part of a variable not time Pin
Paddy Boyd13-Sep-07 4:39
Paddy Boyd13-Sep-07 4:39 
Questionspecify certain file formats for file upload control Pin
Farhad Eft13-Sep-07 4:24
Farhad Eft13-Sep-07 4:24 
AnswerRe: specify certain file formats for file upload control Pin
Shujaat Ullah Khan13-Sep-07 20:36
Shujaat Ullah Khan13-Sep-07 20:36 
QuestionProblem binding data to GridView Pin
macca2413-Sep-07 4:17
macca2413-Sep-07 4:17 
AnswerRe: Problem binding data to GridView Pin
Brent Lamborn13-Sep-07 4:23
Brent Lamborn13-Sep-07 4:23 
GeneralRe: Problem binding data to GridView Pin
macca2413-Sep-07 4:32
macca2413-Sep-07 4:32 
GeneralRe: Problem binding data to GridView Pin
Brent Lamborn13-Sep-07 5:16
Brent Lamborn13-Sep-07 5:16 
GeneralRe: Problem binding data to GridView Pin
macca2413-Sep-07 23:50
macca2413-Sep-07 23:50 
QuestionAsp.net in intranet Pin
prabhu dot net13-Sep-07 3:07
prabhu dot net13-Sep-07 3:07 
AnswerRe: Asp.net in intranet Pin
Urs Enzler13-Sep-07 3:50
Urs Enzler13-Sep-07 3:50 
AnswerRe: Asp.net in intranet Pin
Guffa13-Sep-07 3:51
Guffa13-Sep-07 3:51 
QuestionASP.Net: Multiple Asynchronous Calls Pin
IshfaqHussain13-Sep-07 2:34
IshfaqHussain13-Sep-07 2:34 
QuestionTrap events for dynamically created RadioButtonList Pin
Rakesh Khanna13-Sep-07 2:32
professionalRakesh Khanna13-Sep-07 2:32 
AnswerRe: Trap events for dynamically created RadioButtonList Pin
Sandeep Akhare13-Sep-07 2:41
Sandeep Akhare13-Sep-07 2:41 
QuestionCrystal reports chart option is disabled in my visual studio 2005 dev Pin
codelinks13-Sep-07 1:57
codelinks13-Sep-07 1:57 
Questionpassport authentication Pin
Sonia Gupta13-Sep-07 1:57
Sonia Gupta13-Sep-07 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.