Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

papy boom

@papy boom
About
Posts
56
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem ModalPopupExtender and UpdatePanel
    P papy boom

    Hi, I have a gridview that contains a list of name and i want to use a modalpopup to modify each row. The problem came when i want to sort the column name inside the gridview i've added an updatePanel outside the gridview to make sure that only the gridview is reloading. due to that my ModalPopupExtender is not working. the code excute but i m getting nothing inside the popup below the code :

        Nom & Prénom
    
    Web Development help

  • Update Listbox values after AJAX call doesn't work
    P papy boom

    Hi, I have listbox wich is dynamically updated with an AJAX call the declaration of the controls

    In code behind i'm binding dropdownlist to datasource and adding OnChange Event to make an AJAX call with the function getvalues

    protected void Page_Load(object sender, EventArgs e)
    {
    lb_Retour.DataSource = Ctx.Retours.OrderBy(n => n.Id).Select(n => n);
    lb_Retour.DataTextField = "Retour";
    lb_Retour.DataValueField = "Id";
    lb_Retour.DataBind();
    lb_Retour.Items.Insert(0, new ListItem("-Selectionner-", "0"));

        lb\_Retour.Attributes\["onchange"\] = "getValues(this);";
    

    }

    The javascript wich update the listbox values depending on dropdowlist selection

        function getValues(Control) {
            var Code = Control.value;
            if (Control.value.trim() != "")
                $.ajax({
                    type: "POST",
                    url: "../Services/DomaineService.asmx/GetResponse",
                    data: "{ 'typeId': '" + Code + "'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: OnSuccess,
                    error: OnError
    
                });
        }
        function OnSuccess(data, status) {
            $('#ctl00\_ContentPlaceHolder1\_lb\_Info').children().remove();
            $('#ctl00\_ContentPlaceHolder1\_lb\_Info').append(data.d.ValueList);
         
    
        }
        function OnError(request, status, error) {
            alert(error.toString());
        }
    

    <script></pre>
    The data that returns the webservice is

    <pre lang="HTML"><option value="1">toto</option><option value="2">titi</option><option value="3">tata</option></pre>
    below the Webservice Code

    <pre lang="c#">[WebMethod]
    public ResponseInfo GetResponse(string typeId)
    {
    ResponseInfo xResponse = new ResponseInfo();
    xResponse.ValueList ="";
    PDataContext Ctx = new PDataContext();

            var query = (from objInfo in Ctx.Infos
                         where objInfo.Type == Convert.ToInt32(typeId)
                      </x-turndown>
    
    ASP.NET csharp javascript html database wpf

  • Printing a web page
    P papy boom

    hi all, i'm trying to use javascript funtcion 'javascript:window.print();' to print current webpage. the problem that i lose all my color font, layout when i do the print. is there something to add to CSS to print the same page as it is shown on screen ? Thank you for helping me :)

    Web Development javascript css help question

  • Date Time Conversion
    P papy boom

    this is the day 'Mon Jun 08 15:19:42 CEST 2009' and the error i have is while doing Convert

    ASP.NET help

  • Date Time Conversion
    P papy boom

    Hi all, I want to get conversion of this format 'Mon Jun 08 15:19:42 CEST 2009' to DateTime type. I explain the problem i'm reading from RSS feed but some of them bring that format of datetime, so my code m_pubDate = Convert.ToDateTime(DirectCast(xNode.Element("pubDate").Value, String)) Broke for RSS Feeds that bring that format and i'm not able to convert this to DateTime. Thank you for help

    ASP.NET help

  • Date Time Conversion
    P papy boom

    Hi all, I want to get conversion of this format 'Mon Jun 08 15:19:42 CEST 2009' to DateTime type. I explain the problem i'm reading from RSS feed but some of them bring that format of datetime, so my code m_pubDate = Convert.ToDateTime(DirectCast(xNode.Element("pubDate").Value, String)) Broke for RSS Feeds that bring that format and i'm not able to convert this to DateTime. Thank you for help

    C# help

  • Select XmlElement Help
    P papy boom

    hi all, i have to make a sample code using XmlDocument to select an XmlElement in this doc here is my file <Root> <node title="john"> </node> <node title="Sam"> <node title="Charle"> <node title="jim"></node> </node> </node> <node title="Sandra"> <node title="Amy"></node> </node> </Root> and here is the method i wanna make private static XmlElement findElement(string AttributeValue) { XmlDocument familyXml = new XmlDocument(); familyXml.Load("family.xml"); return siteMapXml.GetElementById(AttributeValue);// AttributeValue can be john, or jim ... } the problem that this method work only with ID attribute i notice wich supose that the ID is unique, how to select and XmlElement without using an xPath because i don't know the deep of my xml tree. thank you for help

    XML / XSL xml help data-structures tutorial

  • Blog MVC beginner
    P papy boom

    hi, I'm very interessted in blog mvc issues,the right meaning of this post is sharing knowledge with those who are intersted in MVC models with who want's to know more about the project. the methods is diferent:) get the target to our knowledge share with each other so we will collect a lot of knowledge shared by the group. it's very motivating for me as a beginner thank you all who answer me you are welcome :)

    IT & Infrastructure

  • Workflow Impersonation
    P papy boom

    hi, i want to perform a task in a specific workflow in my sharepoint Site using a job. the problem by using code below,that impersonation doesn't work when i go to list of tasks and check who perform the task i find that user is always System\Account. could you tell me what's wrong with that code ? the line who made impersonation are in bold var q = new SPSiteDataQuery(); q.Lists = ""; q.Query = "0x0108011"; q.Webs = ""; q.ViewFields = ""; q.ViewFields += ""; q.ViewFields += ""; q.ViewFields += ""; q.RowLimit = 10; SPSite site = new SPSite("http://abt-mossdev/"); SPWeb web = site.OpenWeb(); SPUser user = web.AllUsers(YesMan); SPUserToken token = user.UserToken; SPSite impersonatedSiteCollection = new SPSite(SiteUrl, token); DataTable dt = impersonatedSiteCollection.RootWeb.GetSiteData(q); foreach (DataRow row in dt.Rows) { string listId = row("ListId"); SPList taskList = web.Lists(new Guid(listId)); string taskId = row("ID"); var task = taskList.GetItemById(Convert.ToInt32(taskId)); //Performing the task Hashtable taskHash = new Hashtable(); taskHash("PercentComplete") = "1"; taskHash("IsApproved") = "1"; taskHash(SPBuiltInFieldId.Modified_x0020_By) = "yesman"; SPWorkflowTask.AlterTask(task, taskHash, true); Thank you all

    IT & Infrastructure sharepoint database help question career

  • Workflow Tasks in sharepoint
    P papy boom

    hi all, i wanna thank you for you contribution in all those forum and we know all that real knowledge is sharing so thank you again. here is my problem i want to make a job in sharepoint site who check all task in certain workflow i'll call him "sampleworkflow" i want to get task not completed in this "sampleworkflow" and impresionate a user called "goMan" to achieve this tasks. but first of all i must check all groups wich go man belong to and got this task who are assigned to those group. here is my code #region "Imports" using System.Globalization; using Microsoft.SharePoint; using Microsoft.Office.Server.UserProfiles; using System.Security.Principal; using Microsoft.Office.Server; using Microsoft.SharePoint.Workflow; using FileHelpers; using Microsoft.SharePoint.Utilities; using System.Collections; using System.Runtime.InteropServices; #endregion static class Module1 { public const string goMan = "Domain\\goMan"; public static void Main() { SPSite site = new SPSite("http://Site/"); List ListGroupgoMan = default(List); SPWeb web = site.AllWebs("http://Site/"); SPUser user = web.AllUsers(YesMan); impersonateValidUser("goMan", Result, "toto"); UpdateAllWorkflowTasks(site.RootWeb); Console.ReadKey(); } private static bool CheckUserInGroup(SPGroup Group, string name) { bool isInGoup = false; foreach (SPUser User in Group.Users) { if (User.Name.ToLower() == name.ToLower()) { isInGoup = true; break; // TODO: might not be correct. Was : Exit For } else { isInGoup = false; } } return isInGoup; } private static List GetGoManGroup(SPWeb web) { List ListGroup = new List(); foreach (SPGroup @group in web.SiteGroups) { if (CheckUserInGroup(@group, YesMan)) { ListGroup.Add(@group); } } Console.ReadLine(); return ListGroup; } #region "Workflow" public static void UpdateAllWorkflowTasks(SPWeb web) { var q = new SPSiteDataQuery(); q.Lists = ""; q.Query = "0x010801

    IT & Infrastructure sharepoint database sysadmin security help

  • can't crate trigger in stored procedure
    P papy boom

    hi all, i want to create a trigger on table through a stored procedure but i got error in excuting the script it say syntax problem near word TRIGGER CREATE PROCEDURE CreateMyTrigger -- Add the parameters for the stored procedure here AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; CREATE TRIGGER [dbo].[InsertQuestionTrigger] ON [dbo].[Question] FOR INSERT AS UPDATE child -- set the depth of this "child" to be the -- depth of the parent, plus one. SET depth = ISNULL(parent.depth + 1,0), -- the lineage is simply the lineage of the parent, -- plus the child's ID (and appropriate '/' characters lineage = ISNULL(parent.lineage,'/') + LTrim(Str(child.QuestionId)) + '/' -- we can't update the "inserted" table directly, -- so we find the corresponding child in the -- "real" table FROM Question child INNER JOIN inserted i ON i.QuestionId=child.QuestionId -- now, we attempt to find the parent of this -- "child" - but it might not exist, so these -- values may well be NULL LEFT OUTER JOIN Question parent ON child.IdParent=parent.QuestionId END GO Any Idea and how can create trigger using function or stored procedure. Thank you in advance!

    Database database help tools question announcement

  • Sharepoint from beginner to Expert
    P papy boom

    hi all, i use to be a .NET programmer but i'm a beginner in sharepoint devellopement so as a beginner thanking you for sharing your knowledge. i' m faced to two problems the first one is sending mail as an item in document library, i want to create a custom content type in sharepoint as a mail object so i can customize the body,the subject etc.. of the mail as an item in document libray so what code in Sharepoint SDk can i use to do this ? an exemple or links dealing with that problem are great. the second one is that i have user let's called "yesman" belonging to group of users in sharepoint site and this groups have some items in document library wich are submited to a specific workflow tasks i must check all items in document library wich have groups handle with those items and if "yesman" user belong to this group i must process the next task in workflow. so have you samples of code using Sharepoint SDK to do this thank you for you suggest!!

    IT & Infrastructure csharp sharepoint help question learning

  • Session Problem [modified]
    P papy boom

    No i'm not changing the session duration with code.

    ASP.NET windows-admin help

  • Session Problem [modified]
    P papy boom

    Hello, i add the following tags in web.config file in my project to set the session to 200 minutes but the session is lost in some minutes,i 'm using system file project so i don't need to set session in IIS is the web.config enough to set session duration. Thank you for answer modified on Thursday, February 12, 2009 4:46 AM

    ASP.NET windows-admin help

  • HtmlInputPassword could not be set !!!
    P papy boom

    hi everyone, I got a System.Web.UI.HtmlControls.HtmlInputPassword control in a page i try to intialize it but no value was shown. protected global::System.Web.UI.HtmlControls.HtmlInputPassword Password1; this.Password1.Value = "TOTO"; How can i show init password Control. thank you for help!!

    ASP.NET design help question

  • How to make a post to page with href url
    P papy boom

    Hi everyone, I have a control who contains a repeater to display some Url whith some parameters below the code of the control

    <%# ShowLink(DataBinder.Eval(Container.DataItem, "QuestionId"))%> ["> <%# DataBinder.Eval(Container.DataItem, "Description")%>](SaisiePage.aspx?onglet=2&idchapiter=<%# DataBinder.Eval(Container.DataItem, )

    the problem that in href link i must make a POST to the page not a GET. th problem that for style reason i must keep the*
    to keep the style in the page. is that possible, is there any trick to do it? thanks you for help!

    ASP.NET help docker tutorial question

  • AjaxToolkit with gridview
    P papy boom

    hi everyone i got some problems to manipulate a gridview using the AJAxControls toolkits here is my problem i got a gridview binded with data here is the code ofmy page ]]> Untitled Page

    ReadOnly="True" SortExpression="StructId" />

    ASP.NET help

  • procedure in SQL
    P papy boom

    it works :sigh: it was a problem in my Program thank you all !!

    Database database sql-server sysadmin help question

  • procedure in SQL
    P papy boom

    i've tried that but still not working

    Database database sql-server sysadmin help question

  • procedure in SQL
    P papy boom

    excuse me still not work

    Database database sql-server sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups