1. Windows Mobile

    Date: 05/19/06     Keywords: no keywords

    I have a Tmobile MDA and I want to make an application for it.
    I also have Visual Studio, and I can’t find any tutorials on how to go about making applications for my mobile phone.
    Has anyone tried to make .net applications for Windows Mobile phones that can point me the right direction?


    Thanks.

    Source: http://community.livejournal.com/aspdotnet/66881.html

  2. Export GridView to Excel

    Date: 05/16/06     Keywords: html, asp, web

    Hey gang, I've got an odd Internet Explorer/MS Excel behavior that I need to figure out and fix.

    My xls.aspx.cs:

        protected void Page_Load(object sender, EventArgs e)
        {
            GridView grdExcel = (GridView)grdReport;
            Response.Clear();
            Response.Buffer = true;
            Response.AddHeader("content-disposition", "attachment;filename=rpt.xls");
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Response.ContentType = "application/vnd.ms-excel";
            Response.Charset = "";
            this.EnableViewState = false;

            System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
            System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);

            Response.Write("");
            //this.ClearControls(grdExcel);
            grdExcel.RenderControl(oHtmlTextWriter);

            Response.Write(oStringWriter.ToString());

            Response.End();
        }

        public override void
            VerifyRenderingInServerForm(Control control)
        {
            return;
        }

    Common code example from all over the net.

    What happens: When clicking on my link to download the excel doc, I am finding that "Open" in IE does not work.  I can save the document to my local drive and then open, but when I try to click the link and select "Open" it tells me:

    "'C:\Documents and Settings\user\local settings\temp net files\content.IE5\0L6RCHUN\rpt[n].xls' could not be found. Check the spelling of the file name, and verify that the file location is correct.

    If you are trying to open the file from your list of most recently used files on the File menu, make sure the file has not been renamed, moved, or deleted.
    " (note: file path location isn't exact. just giving general idea of temp location)

    But, if I click ok on that excel window error, and then return to the IE window and click on the link once more (now MS Excel is open).... My excel document opens properly.

    I'm using:
    MS Excel 2003 (11.5612.5606)
    IE 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
    Windows XP Pro ver. 2002 SP 2
    .NET 2.0/C#

    (FYI: Works beautiful in Firefox.)

    Anyone experience anything similar?


    UPDATE: If I set Caching to private, it works. (Response.Cache.SetCacheability(HttpCacheability.Private);)

    Source: http://community.livejournal.com/aspdotnet/66369.html

  3. Format a string

    Date: 05/16/06     Keywords: no keywords

    I have a string that I concatenate 4 text boxes into one variable for stuffing into the Body of an email.
    Is there a way to format the string for the body of my email?

    string NameAndLastDay = Label1.Text + Name.Text + LastDay.Text + BAndD.Text;

    This string bunches up all the values of the text boxes into one long line.

    I would like it to be something like…

    Label1
    Name
    LastDay
    BAndD


    How can I do that?

    Source: http://community.livejournal.com/aspdotnet/66112.html

  4. Stupid DataGrid/DataView question

    Date: 05/12/06     Keywords: database

    Ok... I know there is probably an easy answer to this but I can't figure it out. I have a program where I query a database, return a dataset, add columns to the dataset which are basically just formatted information, then display the information in the datagrid. If I had .Net 2.0 available I wouldn't be here asking this question (as I'd have the God-send DataGridView at my disposal,) but I can't figure out how I can do the following for the datagrid:

    A: Only show a few of the columns in the dataset.
    B: Specify the order of the columns in the dataset.

    I know I can hide columns easily in the Datagrid, but I need to move some of them too. I've looked all around and I can't find a real straightforward explaination as to how to do it, whether it be through using a datatable or a dataview.. I'm re-using a class that I made for formatting for a repeater control (god I wish those could be used on Windows Forms.) Does anyone have any ideas for this? Thanks.

    Source: http://community.livejournal.com/aspdotnet/65772.html

  5. VB.Net used to add files to SQL Server

    Date: 05/09/06     Keywords: database, asp, sql, web

    Christ I post so much to this group that its like if I keep doing it I'm automatically entered in a raffle..

    Anyways I have a ASP.Net/VB.net webform that allows a user to upload a file into a SQL Server database. I can't figure out how to get the file to be inserted correctly though. We have to use a data access class, but I can modify it to my needs. I also need to pass this to a stored procedure on the database, as opposed to using commands in the vb code.

    This is how I get the file:
    Dim strFileName As String = _
    fileupload1.PostedFile.FileName.Substring _
    (fileupload1.PostedFile.FileName.LastIndexOf("\") + 1)
    Dim fileLength As Integer = CInt(fileupload1.PostedFile.ContentLength)
    Dim fileContent(fileLength) As Byte
    fileupload1.PostedFile.InputStream.Read(fileContent, 0, fileLength)

    I keep getting all sort of casting errors and other crap when I try and pass this through my stored procedure. I don't think my error lies in there, because it looks like its not being "converted" to the proper format or it just isn't going over properly. I can't seem to find any tangible "good" info online about this. Can anyone help out? Thanks.

    Source: http://community.livejournal.com/aspdotnet/65161.html

  6. Throw IIS errors in Asp.net

    Date: 05/04/06     Keywords: security, web

    We're working on using Windows authentication on our intranet site. We're trying to block out users that do not have permission to various folders (NT security.) We don't like using the web.config allow/deny setting because we don't want to "prompt" the user for their information. We just want to either allow them or deny them. I'm trying to write authenication on the code side to check if the user is authorized. If the user is not authorized I want to throw the 401.2 Error Screen (Access is denied.) Does anyone know how to throw this specific error? My co-worker said that you can throw IIS errors in code, but I can't seem to find any information on this. Thanks.

    Source: http://community.livejournal.com/aspdotnet/64894.html

  7. nesting tables

    Date: 04/25/06     Keywords: asp

    Hi,
    I want to display an outer table where if you click on a link in one of the columns, you will then see an inner/details table. I am working with VS 2005. When I did this before I used an asp table as my outer, and a datagrid as my inner. I do want sorting and editable cells inside my table. Does anyone have any recommendations for what the best control to use for this would be?
    Thanks

    Source: http://community.livejournal.com/aspdotnet/64253.html

  8. Impersonation Question

    Date: 04/25/06     Keywords: database, asp, security, web

    I have a question for you all. I have an ASP.NET (VB.NET) application that access access 97 databases on a file server (don't laugh). In IIS, I have it set to use Windows Authentication, and anonymous access turned off. In my web config, I have impersonation turned on. My question is why do I have to specify a user that has specific rights to the file server? The clients using the application already have rights to this server. I don't want to have to specify a domain, user name, and password in my web config for various reasons (Specifically Security). Am I going about this the wrong way? Any help would be much appreciated.

    Source: http://community.livejournal.com/aspdotnet/63948.html

  9. IIS Issues

    Date: 04/24/06     Keywords: database, sql, web

    I asked about this issue a while back here, but I have found out some more information that may better help people diagnose or point me on the right path of this issue.

    We have a document management system that uses Windows 2000 (server?) and IIS 5. The same machine also has SQL Server 2000 installed on it which it uses. Basically this program has had issues for a while, primarily that after a while various functions of the web app will just stop working. No one knows what is causing these errors, but all we DO know is that this is "fixed" by restarting IIS. Typically this would happen like once in a while, but we had to restart this like 3 times in the past month. I don't have tons of access to this server, but I'm wondering if there's anything I can tell the tech guys to look at or perhaps monitor to help us better diagnose this issue. I have access to the source code, but obviously I can't "run" it on the live server. This server hosts this one web app, and this one database, so its not like there's multiple programs running that could be bogging it down.

    Thanks.

    Source: http://community.livejournal.com/aspdotnet/63389.html

  10. Backup SQL Server 2000 to SQL

    Date: 04/21/06     Keywords: database, sql

    Is there a way to backup an entire database in SQL Server 2000 to a SQL script file? I know you can copy tables and structures to a file, but I want EVERYTHING.. like the values that are in those tables as well. I can't find anything in SQL Server that does this, but people seem to be telling me that it can be done (without telling me exactly HOW of course.) Can anyone help with this?

    Source: http://community.livejournal.com/aspdotnet/63193.html

  11. AD and C#

    Date: 04/20/06     Keywords: google

    My current project I need to pull an Active Directory name for the current visitor.
    On my page I'd like to display

    "Hello, (active directory user)"

    I'm using C#, with Visual Studio 2005

    Does anyone have experience with this, and perhaps some code I look at?
    There are a few references that I've found with Google, but I'm leery of running the code because I don't have a development environment for testing our Active Directory at the moment.




    Thanks,
    Benjamin

    Source: http://community.livejournal.com/aspdotnet/62789.html

  12. myspace.com is hiring .NET developers!

    Date: 04/19/06     Keywords: programming, software, asp, sql, web, yahoo, microsoft

    They are hiring developers like crazy! Email your resume to myspacejobs@yahoo.com.

    Job description: .Net Developer-ASP.Net and C# (1.1 and 2.0)

    Social Networking is one of the hottest sectors on the web in recent years. MySpace.com has emerged as the definitive leader in this space and is the 2nd highest trafficked site on the Internet. MySpace has 210 employees and is in rapid growth mode.

    The .NET Team at MySpace.com focuses on performance and scalability to a degree that most developers have never had a chance to experience.

    Required Skills/Experience:
    - 2+ years of solid C# experience
    - 2+ years of ASP.NET (and the .NET 1.1 Framework) experience
    - 2+ years of experience developing with SQL Server 2000 (including stored procedures)
    - Strong knowledge of .NET Remoting (including HTTP and TCP/IP) and UDP
    - a solid foundation in n-tier, Business Objects, Design Patterns, and general OOP
    - Strong knowledge (and wisdom) of IIS6 and it's internals
    - Experience on sites under heavy loads that require meticulous attention to coding practices as they relate to performance and scalability

    Preferred but not required Experience:
    - Microsoft Pattern and Practice Team's Enterprise Application Blocks
    - Agile Software Development (including Extreme Programming)
    - Microsoft Application Center Test
    - LLBLGen
    - NUnit
    - nANT
    - Visual Studio 2005 (including Team System)
    - ASP.NET 2.0, ADO.NET 2.0, AJAX (Atlas), and the .NET 2.0 Framework
    - SQL Server 2005 feature set, enhancements, and changes that effect developers
    - ReSharper & dotTrace (from JetBrains)

    Source: http://community.livejournal.com/aspdotnet/62694.html

  13. Does anyone know anything about dotnetnuke?

    Date: 04/17/06     Keywords: no keywords

    I need some guidance...

    Source: http://community.livejournal.com/aspdotnet/62350.html

  14. Вышел №56 Рассылки .Net Собеседник

    Date: 04/14/06     Keywords: html

    http://subscribe.ru/archive/comp.soft.prog.dotnetgrains/200604/14091954.html

    Source: http://community.livejournal.com/aspdotnet/62133.html

  15. asp.net 2.0

    Date: 04/12/06     Keywords: css, html, asp

    I am upgrading some 1.1 code to asp.net 2.0. The old code used stylesheets. The controls on my page that use css classes are fine after the upgrade, but the controls that i have hard coded the properties for are not. Its as though they are being overridden by a style sheet or some other unknown force. I have no css class specified for these controls, just set the properties on the html page, and I can't get it to show what I want.
    Does anyone know why these hard coded properties are not showing up? What is overriding the settings?
    Thanks for any tips.

    Source: http://community.livejournal.com/aspdotnet/61852.html

  16. Resource files and images/icons/anything other than strings!

    Date: 04/11/06     Keywords: asp, web

    Greetings everyone,

    I've started a mission on learning to use resource files with my web applications. I'm starting simple just learning how to put assets in to my resource files, and then reference to them within my content pages and code-behind pages.

    I'm able to handle string resources no problem. I've moved on to trying to add/retrieve images. Here's where I'm getting stuck! (So I can only imagine where I'll be trying to skip images and checking out icons or media or files or... or.. or... you get the picture)

    I have my default.aspx page (with her .cs file as well) and I've created the Default.aspx.resx file stored in the App_LocalResources folder.  I've added a test image with the name "defaultImg" filename of "userDefaultImg.gif" it tells me the Type is "Graphics Interchange Format" with size of "140x140".

    Now... How the heck do I display this image resource on my default.aspx page?

    I know when I add a string resource, I can easily set the text of, say, a label control by:



    But Resources:defaultImg will give me "System.Drawing.Bitmap" if I try and set the same way:



    What's the best way to retrieve these image assets I've placed in to my resource files?

    Source: http://community.livejournal.com/aspdotnet/61620.html

  17. New VS.Net file extensions

    Date: 04/06/06     Keywords: software, asp, sql, microsoft, google

    Hi,

    I'm kind of new here and wasn't sure of where to post this since it pertains to Microsoft Visual Studio .NET 2003 itself and neither C# not ASP.Net

    The project I'm working on requires me to work a lot on.pc and .pkg files (ProC and PL/SQL packages)

    Now Microsoft Visual Studio .NET 2003 recognizes neither and I spent a long time on google trying to find out how to make it treat these files like C and SQL files respectively - basically do the necessary colorization - but with no result.

    I finally found the solution after looking around in my machine's registry.

    -

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Languages\File Extensions\

    That's where you need to add an extra key in the registry if you need your VS to recognize new file types.

    Use the value from the existing file type whose formatting you want the new file type to have.

    -

    Works beautifully!

    Just thought I'd post it here in case anyone else finds it useful. Posted to both '[info]'aspdotnet and '[info]'csharp. Do let me know if this is against community rules and I'll take it off.

    Source: http://community.livejournal.com/aspdotnet/60864.html

  18. Getting data from SQL Server

    Date: 04/06/06     Keywords: database, sql

    We're transitioning from one content manager to another adn I've been assigned to figure out how the database in teh old CM worked. Looking through I see that it has binary data stored in the database. Thing is though I don't know how to actually extract the binary data and view it. I was looking online for information and it seems very complex and/or convoluted. Does anyone know of any good tutorials or methods of doing this? Its SQL Server 2000 SP3.

    Of course if they just gave me access to the source code my life would be 10X easier, but apparently they want me to make this into a "learning experience."

    Any help is greatly appreciated.

    Source: http://community.livejournal.com/aspdotnet/60435.html

  19. wse 3.0 policies

    Date: 04/05/06     Keywords: microsoft

    Hello,
    I am trying to migrate my wse 2.0 code to wse 3.0. I have created a new policy using the wizard, using a username token. According to Microsoft, after you create the new policy you just have to add the line of code which sets the policy (service.setPolicy("myPolicyName")). I have done this, but it keeps telling me this policy is not recognized.
    This is all new to me, so I could be missing a very obvious step. If anyone can give me any kind of insight into this, it would help a lot.
    Thanks!!

    Source: http://community.livejournal.com/aspdotnet/60244.html

  20. Silly Easy Question.. I hope

    Date: 04/05/06     Keywords: browser, asp, security, web

    In Visual Studio 2005 I’m writing in VB for an ASP.NET website, when I Build my website and copy the files to a server I get error...
    It says that I can not view the site I just wrote... however when I’m on the PC and I run it with debug or F5 the pages work correctly... What could be the problem?

    The server is on the same LAN at my work and has our Intranet website running on it just fine…




    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

    Source: http://community.livejournal.com/aspdotnet/59935.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home