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
K

karanba

@karanba
About
Posts
131
Topics
91
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • pluggable gadget system
    K karanba

    Hi, I am looking for a framework that runs for .NET 3.5 or better for 4.0 that support pluggable gadget system for windows user interface development. I want to develop a main container window application that can load gadgets that I or my team develop. User could manage gadget like google home page..add gadget and set layout. Also there must be interface to talk each gaget with the container static components or other gadgets. Is there a framework that is written open source or paid api?

    karanba

    WPF csharp design docker collaboration json

  • AzMan Authorization provider and Security problem [modified]
    K karanba

    Hi, I have a Win Form application (C# Net Framework 3.5) which I try to run on Windows 7. In my local network I set up an AD LDS role to a windows 2008 server. I make an application store by using azman on AD LDS. Define operations, task, roles and roles assignments on it. Using Enterprise Library 5.0 security application block I add an AzMan Authorization Provider to my app.config in Win Form. Here is the properties that I set; Name: MyProvider Application: Application Scope: Audit Identifier Prefix: W Store Location: LDAP://WS2008:389/CN=STR2,CN=WS,DC=PW,DC=COM Type: AzManAuthorizationProvider In Win Form I code like this..

    WindowsIdentity identity = WindowsIdentity.GetCurrent();
    WindowsPrincipal principal = new WindowsPrincipal(identity);

    // Default provider is MyProvider
    IAuthorizationProvider iAuthorizationProvider = AuthorizationFactory.GetAuthorizationProvider();
    bool auth = iAuthorizationProvider.Authorize(principal, "BackUpAdmin");

    the last line gives the following error Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use Microsoft .NET Framework Configuration tool. I want to understand why .net apply security policy for the code. How could I grant the application for the required permission. Did it relevant only on Client part (Windows 7), did I do anything on Windows 2008 server. I can reach application store via azman.msc on windows 7... Please inform and advice me.. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Security.SecurityException: The specified network provider name is invalid. (Exception from HRESULT: 0x800704B4) --->

    karanba

    modified on Tuesday, June 15, 2010 10:55 AM

    C# csharp sysadmin security help dotnet

  • Ms Soap Toolkit 3.0 and complex data types.
    K karanba

    Hi all, I need to use mssoapclient30 to reach a web service which use complex types as parameters and return types. There write in mssoap toolkit documantation use Type Mapper, but could not get understand how to write this file and how to call it in code. Basiclly I call a service method var Client = WScript.CreateObject("MSSOAP.SoapClient30"); Client.mssoapinit("http://abc.com/service.wsdl","","",""); var sid = Client.MethodName("abc..."); . . . and I don't know what will be if the parameter description says <complexType name="Alert"> <all> <element name="tag" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true" /> <element name="msg" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true" /> </all> </complexType> as parameter to pass method and return type in wsdl.

    karanba

    XML / XSL wcf com xml tutorial

  • Ms Soap Toolkit 3.0 and complex data types.
    K karanba

    Hi all, I need to use mssoapclient30 to reach a web service which use complex types as parameters and return types. There write in mssoap toolkit documantation use Type Mapper, but could not get understand how to write this file and how to call it in code. Basiclly I call a service method var Client = WScript.CreateObject("MSSOAP.SoapClient30"); Client.mssoapinit("http://abc.com/service.wsdl","","",""); var sid = Client.MethodName("abc..."); . . . and I don't know what will be if the parameter description says <complexType name="Alert"> <all> <element name="tag" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true" /> <element name="msg" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true" /> </all> </complexType> as parameter to pass method and return type in wsdl.

    karanba

    Web Development wcf com xml tutorial

  • Unmanaged DLLs with ASP.NET
    K karanba

    Hi All, I want to use an unmanaged dll with in an aspx page (with c#). I try the below code that I am sure it works with a console program. [DllImport("myapi.dll", CharSet = CharSet.Auto)] public static extern IntPtr function1(); . . . function1(); How could I use this dll with asp.net. Or do you have any advice to integrate a type of any other project with asp.net to use this dll. Also I need a second adwice on working with an exe, in an aspx page. thax a lot.

    karanba

    ASP.NET csharp asp-net

  • XslCompiledTransform problem with special chars
    K karanba

    Hi, I am using XslCompiledTransform class to convert xml files to html with xsl. Evething is good but when input comes with special char it also convert them to html; like " < to < " I don't want this. Because I need them in html like blah blah as it orjinal. What must I do. StringBuilder sb = new StringBuilder(); XPathDocument XPathDoc = new XPathDocument(NewsXmlFile); XslCompiledTransform XslTrans = new XslCompiledTransform(); XsltSettings settings = new XsltSettings(true, true); XslTrans.Load(Server.MapPath(@"xsl\NewsDefault.xsl"), settings, null); XmlWriter xtw = XmlTextWriter.Create(sb); XslTrans.Transform(XPathDoc, (XsltArgumentList)null, xtw); uxNewsBody.InnerHtml = sb.ToString();

    karanba

    C# xml html sysadmin help

  • defaultbutton problem
    K karanba

    Hi.. I have problem with setting default button property on a page that has a clasical issue. My page use a master page that has a textbox and imagebutton for search, and the content page have a login button with two textbox for username and password. I put them in a asp:panel with giving the true defaultbutton property values. but always enter goes to search where ever it. The login controls is default are visible=false. I check on page load event that if the user has login or not, then open login controls to visible=true if needed. I have use asp:panel default value for several times but this times this don work. is there any think you know why could default button does not work?

    karanba

    ASP.NET help question

  • what is this used for --> @
    K karanba

    :-O thaks much.

    karanba

    C# csharp php question

  • what is this used for --> @
    K karanba

    In some codes I saw @ character before string. I here that it is used in php sytax for breaking loops, but could not found any clue what it does in c#

    karanba

    C# csharp php question

  • how browsers render pages
    K karanba

    thanks this answer really help..but I want more..:) I go on key rendering engine for browsers but could not catch any good resource also no resource about that. what could be the key word for this subjects to searc for.

    karanba

    Web Development performance question javascript css adobe

  • delete cookie manuel and javascript error
    K karanba

    After hours we found the problem..the problem cause by any menu dialog in explorer. when a menu item open a dialog and wait a bit .. after closing it all the timers stop thei job..even normal link do not wotk properlly. this happens on many pc with ie 6. now we are looking for if this bug occurs only with settimeout or using ajax on page.

    karanba

    Web Development javascript tools help

  • delete cookie manuel and javascript error
    K karanba

    I got a strange error. I have a ticker in page and it work well. But when I delete cookies from internet expolorer manuel and refresh page, my script do not work. I have no interact with cookies in script. what could cause this.

    karanba

    Web Development javascript tools help

  • how browsers render pages
    K karanba

    I want to learn about browsers, mostly on internet explorer, how they took a page data and render it to client. And want to get performance tips for making more faster pages by learning explorer ways of doign its job. I want to find answers of question like... --> which one is best fast for ie .. using divs or tables to layout conttent? --> when to include style data in page or when to put style on a css file? --> how to find javascript usage of cpu and ram on a page, and compare with each other? --> does flash object is bad for rendering speed of a page? --> which doctype is best, in which stuation --> is it really helps giving all dimension, like height, to tags that explore do not need to think about it. --> how many percent of a page elemnets takes total time of rendering all elements. .... and so on.. Please send any urls, or clues on the subject, and give your opinions. thanks.

    karanba

    IT & Infrastructure performance question javascript css adobe

  • how browsers render pages
    K karanba

    I want to learn about browsers, mostly on internet explorer, how they took a page data and render it to client. And want to get performance tips for making more faster pages by learning explorer ways of doign its job. I want to find answers of question like... --> which one is best fast for ie .. using divs or tables to layout conttent? --> when to include style data in page or when to put style on a css file? --> how to find javascript usage of cpu and ram on a page, and compare with each other? --> does flash object is bad for rendering speed of a page? --> which doctype is best, in which stuation --> is it really helps giving all dimension, like height, to tags that explore do not need to think about it. --> how many percent of a page elemnets takes total time of rendering all elements. .... and so on.. Please send any urls, or clues on the subject, and give your opinions. thanks.

    karanba

    Web Development performance question javascript css adobe

  • converting from string array to int array
    K karanba

    thank array.convert.all work fine for me

    karanba

    C# data-structures question

  • converting from string array to int array
    K karanba

    İs there any method taht convert all items in a string array to an int array String[] --> int[] ???

    karanba

    C# data-structures question

  • RepeatColumns in asp:repeater
    K karanba

    There is good property in datalist; RepeatColumns Is there any think like this makes a repeater repeate item tempaltes, like putting 3 in a row. I do this a bit ugly way using condition for "ItemIndex"

    ----------------------------
    | item 1 | item 2 | item 3 |

    | item 4 | item 5 | item 6 |

    | item 7 | item 8 | item 9 |

    .
    .
    .

    ... <%# (int.Parse(DataBinder.Eval(Container, "ItemIndex").ToString())%3==0)?"":""%> <%# Eval("caption") %> <%# (int.Parse(DataBinder.Eval(Container, "ItemIndex").ToString())%3==2)?"":""%>

    karanba

    ASP.NET docker question

  • listbox problem
    K karanba

    Hi.. I have two asp:ListBox tag in a select.aspx page. Then users select items from first asp:ListBox push a simple button to pass them to a second asp:ListBox. I made pass action by using javascript and dhtml. When the page is posted by an asp button, always the socond box comes emtyp so I could not get selected items. Why aspx do not get control filled by javacript.

    karanba

    ASP.NET javascript help

  • Picture Gallery with paging
    K karanba

    Hi.. use PagedDataSource class. Here an example that shows how to use an asp:Repeater with paging next and previus page // After you get your data by using a DataAdapter fill a Dataset DataSet ds = new DataSet(); da.Fill(ds); // create an instance of PagedDataSource and give ds as datasource to it. PagedDataSource pds = new PagedDataSource(); pds.DataSource = ds; pds.AllowPaging = true; pds.PageSize = 10; // take curent page from QueryString and set CurrentPageIndex int CurPage; if (Request.QueryString["p"] != null) CurPage = Convert.ToInt32(Request.QueryString["p"]); else CurPage = 1; pds.CurrentPageIndex = CurPage-1; // bind pds to repeater and set link for next and prev links or you can simple make a loop and // write all page links down with using another repeater myRepeater.DataSource = pds; if (pds.Count > 0) { myRepeater.Visible = true; myRepeater.DataBind(); } if (!pds.IsFirstPage) lnkPrev.HRef = "news.aspx?p=" + Convert.ToString(CurPage - 1); if (!pds.IsLastPage) lnkNext.HRef = "news.aspx?p=" + Convert.ToString(CurPage + 1); if it is not clear you could ask for more..

    karanba

    ASP.NET csharp asp-net database question

  • closing a connection
    K karanba

    thanks a lot a get a clear answer.

    karanba

    ASP.NET performance
  • Login

  • Don't have an account? Register

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