Search

You searched for the word(s): userid:868937

Matching Posts

  • Re: Change content-type from text/xml to "application/vnd.google-earth.kmz kmz"

    Never did this work but what if you simply add this line for your response header: Response.ContentType = "application/vnd.google-earth.kmz" Here you can find an example: http://shan-tech.blogspot.com/2007/01/aspnet-create-google-earth-kmz-files.html
    Posted to XML Web Services (Forum) by SSA on 11/16/2009
  • Re: String to Substring....

    One easy way: string str = "[abc].[def].[ghi]"; string str1 = ""; string str2 = ""; string str3 = ""; string[] StrArray = str.Split('.'); for (int x=0; x< StrArray.Length; x++) { str1 = StrArray[x].Trim('[', ']'); //System.Console.WriteLine(str1); }
    Posted to C# (Forum) by SSA on 11/16/2009
  • Re: Why asp knows about row count in Page_Load phase?

    I believe its a nice question. First thing from MSDN: Before this event...... PreRender Before this event occurs: * Each data bound control whose DataSourceID property is set calls its DataBind method. For more information, see Data Binding Events for Data-Bound Controls later in this topic. But certainly it does not explain clearly why you have Row.Count available in page_loag.... You need to look in internals of DataSource control..... There is good post about it which can explain how it works
    Posted to Data Presentation Controls (Forum) by SSA on 11/12/2009
  • Re: understanding AddWithValue

    Hi, 1. Check the update statement if you are not making a type, like you have "UPDTAE" instead of Update. 2. Try if specifying CommandType for cmd helps. 3. Its not mandatory to use AddWithValue only with stored procedure. http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlparametercollection.addwithvalue.aspx
  • Re: Webrequest doesn't work...but direct Get post does.

    I used your URL in below c# function and it gives me same output: Check it in VB: protected void Button1_Click(object sender, EventArgs e) { #region make URL string Url = "https://www.moneybookers.com/app/email_check.pl?email=demo@moneybookers.com&cust_id=4444597&password=098f6bcd4621d373cade4e832627b4f6"; #endregion /** * Make request **/ HttpWebRequest objWebRequest =(HttpWebRequest) WebRequest.Create(Url); objWebRequest.ContentType = "text/plain"; objWebRequest.Method
    Posted to XML Web Services (Forum) by SSA on 11/6/2009
  • Re: Session and Browser Tabs

    Please read this article, it will explain you pros and cons + the solution http://dotnet.org.za/calmyourself/archive/2007/03/09/unique-session-id-between-tabs.aspx
    Posted to State Management (Forum) by SSA on 11/6/2009
  • Re: curious question about the inherits attribute in the page directive

    For that you need to understand partial class concept. its explained here http://www.devx.com/dotnet/Article/22603 . From MSDN: refer Code behind pages http://msdn.microsoft.com/en-us/library/ms178138.aspx When the page is compiled, ASP.NET generates a partial class based on the .aspx file; this class is a partial class of the code-behind class file. The generated partial class file contains declarations for the page's controls. This partial class enables your code-behind file to be used as part
    Posted to Web Forms (Forum) by SSA on 11/3/2009
  • Re: curious question about the inherits attribute in the page directive

    No Omego, it's same as class inheritance and Inherits attribute gives indication which the class created in the code-behind file from which this .aspx file will derive. Answer of your question how code code behind access controls declared in aspx file is lies in Partial class generated from .aspx file, which contains declaration of controls. This partial class and class in code behind finally makes a complete class and then there is no need to declare control explicitly. I hope I am clear.
    Posted to Web Forms (Forum) by SSA on 11/3/2009
  • Re: Many Oracle Client Homes

    Hi Tony, Have a look at this thread, http://forums.asp.net/t/1414029.aspx How about using this idea from above thread posts, Environment.SetEnvironmentVariable("Path", string.format("{0};{1}",OracleHomeString, Environment.GetEnvironmentVariable("Path").ToString))
    Posted to Oracle (Forum) by SSA on 11/2/2009
  • Re: How to modify this code to close Page without Y/N Prompt ?

    Try this: (Will not work in FireFox, but does work in IE7,8, Chrome) <script type="text/javascript"> //Closes the browser window function CloseWindow() { window.open('', '_self', ''); window.close(); } </script> <script type="text/javascript"> //Closes the browser window function CloseWindow() { window.open('', '_self', ''); window.close(); } </script>
    Posted to Getting Started (Forum) by SSA on 10/29/2009
Page 1 of 41 (408 items) 1 2 3 4 5 Next > ... Last »