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
T

Talal Sultan

@Talal Sultan
About
Posts
268
Topics
48
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Apparent issues with ASP.NET 4.0 and VS 2010
    T Talal Sultan

    Hi, I have reinstalled VS 2010 on my home PC and now it works! :) The difference between this PC configuration and the previous one was that I have installed VS 2005 in this one prior to installing VS 2010 and I didn't upgrade to IE8. I have a feeling it could be IE8 installation that is causing the problem. In any case, here at work I had IE7 and VS 2005 installed when I installed VS 2010 and it worked, so with the same configuration now it worked on my home PC :) Although there are still of course other differences in terms of software installed like for example Telerik components and SQL 2008. Nevertheless it is working now and AJAX also worked, so I am happy :)

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET csharp visual-studio help asp-net com

  • Apparent issues with ASP.NET 4.0 and VS 2010
    T Talal Sultan

    aaargh X| well it works well in fact, I was just trying some things and it doesn't have an impact on compilation nor on execution. So we can very well live with it. One thing that differs between what I have here and what I have at home is the fact that at home I have this green wave-like line under the name of the web controls, e.g. Button. I don't have that here. But even at home it compiles well, however AJAX wasn't working, meaning when I click, nothing happens on the page. Whereas here, AJAX works. I'm telling you, this VS 2010 is haunted :omg: :-D If I can get things to work at home as they are working now in the office, I would be happy, even if it's not perfect :sigh: ;P

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET csharp visual-studio help asp-net com

  • Apparent issues with ASP.NET 4.0 and VS 2010
    T Talal Sultan

    Well, the major issue is that VS 2010 takes a lot of time to install anyway, but I could actually try using Virtual PC and see if it helps me :) Now you won't believe what I just discovered now...just now :doh: I was playing a bit with VS 2010 here at work and I am also having a weird behavior but not as weird as what I had at home :sigh: Anyway, here is what I have noticed. I opened a .aspx page. By default, as you know, it opens in HTML editing mode. So I clicked inside a button tag. Guess what?? in the properties windows, it says: Button1 . Then, in the fields below, I have the proper fields displayed like CausesValidation, CommandName, etc...Note that I DON'T have the events button. Now, I click on Split to split the editor into design and editor mode. I click around the HTML code a bit and then on that same button tag and in the properties now I have Button1 System.Web.UI.WebControls.Button and now I have the events button. Now going back to Source (HTML edit), again I have Button1 !!! :confused: As I recall, I wasn't having that behavior at home, it was always Button1 and I don't remember I was able to get the correct property displayed. As I said before, I will install again and see what happens, but now I know that something is definately not right in this VS 2010 :-D

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET csharp visual-studio help asp-net com

  • Apparent issues with ASP.NET 4.0 and VS 2010
    T Talal Sultan

    Hi :) Well, it's my PC at home that is causing me problems. Here at work VS2010 is doing well. I have removed it from my PC at home, in fact I have restored the Norton Ghost image of a clean Windows install. Do you think this could be the issue? The ghost image has a few things installed like VS 2008, SQL 2005, Office 2007 and some other things. Unfortunately I didn't have time to reinstall VS 2010 yet (as you know, it takes ages :zzz: ) I will keep you updated with what happens when I do install it :) Yesterday, I have tried what you suggested with the validation stuff. I wanted to see if I could get the same behavior like what I was getting at home but I didn't get that. I don't think it's due to the doctype because when I switch the target framework to 3.5 the problem disappears (with the same solution). It is quite frustrating honestly as apart from you, I didn't get any reply to any of my posts at asp.net or msdn. Like if nobody encountered that problem before! :sigh: The only difference I see with what I have in the office is that I have installed SQL server 2008 before installing VS 2010 here, but I really doubt it could be the issue. Anyway, as you said, it could just be a matter of reinstalling it. Once I do reinstall, I'll let you know what I get :) Thanks again! Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET csharp visual-studio help asp-net com

  • Apparent issues with ASP.NET 4.0 and VS 2010
    T Talal Sultan

    Thanks for replying, is this the target validation schema validation you're talking about or is there another dropdown that I need to find? Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET csharp visual-studio help asp-net com

  • Apparent issues with ASP.NET 4.0 and VS 2010
    T Talal Sultan

    Hi people, Sorry if this isn't the right place to post this. I have posted my message already in the Visual Studio forum but still didn't get any answer. I also posted it in asp.net forums and in MSDN forums and still nothing. I have also searched the web without much success. I am hoping someone here can help me figure out what is going on. Here is the link to my post in the VS forums: http://www.codeproject.com/Messages/3573698/Issues-with-VS-2010-editor.aspx[^] I would like to add that I have the same Visual Studio 2010 Premium edition installed on two PCs, one is working well and the other is having the issue mentionned above. I would appreciate any insight or suggestion about this crazy matter. Thanks, Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET csharp visual-studio help asp-net com

  • Issues with VS 2010 editor
    T Talal Sultan

    hi all, I am having a weird problem with VS 2010. I am using the premium edition. It seems that none of the asp controls asp:.. tag are recognized by the editor. I keep getting a green underline under each control name. To check this, I have created a brand new web site targeting .NET framework 4.0 and even in the auto-generated pages, none of the asp controls is recognized. I am also unable to see the properties of any control if I click inside the tag (at an attribute). All I get is the ID of the button and the tag <HTML ELEMENT>! Furthermore, when I drop an ASP control from the toolbox, the attribute "ID" is not generated. Only when I switch to the design view that I can get to see the properties of the control and the ID is set automatically. The message for the green underline says: Element 'Button' is not a known element. This can occur if there is a compilation error in the Web Site, or the web.config file is missing. Finally, I have tried switching from framework 4.0 to 3.5 and now everything works as it should do! so could I say that something is wrong with framework 4.0? Does anyone know what is going on? Thanks, Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    Visual Studio help question csharp html dotnet

  • url problem
    T Talal Sultan

    What are the question marks? I suppose they are some special characters that were badly encoded/decoded? if the system reads the page name as city-hotels-in-p?lgh?t.aspx and the page's current name is city-hotels-in-pâlghét.aspx for example, for sure the file will not be found. Maybe special characters can be escaped in the URL?

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET

  • ASP.NET Ajax error 404 on postback
    T Talal Sultan

    Hi guys I am having a weird problem on the client's test server. ASP.NET 2.0. My application works fine on my machine (where it is developped) and works fine on 2 of our test servers. However, once copied to the client's server, I am having a problem with only one page. The user logs in fine and selects a page from the menu. A grid will appear with a list of roles. The grid contains action image buttons to perform edit, delete, activate, deactive for each role. When I click on the edit image button I get the ajax popup alert error 404. I don't understand why it only happens in this page and only on this image button. If I click on view or deactivate, it works fine! Many pages are ajax-enabled, not only this one, and they were fine! any ideas? Thanks, Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET

  • How to redirect to the default.aspx page ?
    T Talal Sultan

    Hi Did you try Response.Redirect("~/")? or simply Response.Redirect("~/default.aspx")? Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET question csharp asp-net tutorial

  • Keeping the session alive
    T Talal Sultan

    Thanks. I will try that, even though I am not sure it would work. You see, the problem I have is that Javascript is already running to upload the file and I have an Ajax timer set to postback every 6 sec (just for testing now). As soon as the upload starts, the timer stops working. So I suspect that only one Javascript code (or whatever) is executed and we cannot have multiple "threads" in Javascript executing at the same time. But I will try out your solution, maybe it would work since the javascript code (in the page) is executed once. I hope it would work :) Thank you

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET help csharp asp-net sysadmin testing

  • Keeping the session alive
    T Talal Sultan

    Thanks for your analysis. So basically I can try using this thread solution but I should to be careful of what will happen around it. I knew it would have other implications. I need to do a few tests now :) Thank you.

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET help csharp asp-net sysadmin testing

  • Keeping the session alive
    T Talal Sultan

    Thank you for your reply. It is important for me not to change any timeout values. It's a security requirement. Any idea if a thread is running on the server, will it keep the session alive or should we do a postback to keep it alive?

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET help csharp asp-net sysadmin testing

  • Keeping the session alive
    T Talal Sultan

    Thank you for replying. I am trying to avoid increasing any timeout values and since it's the RAD component that is doing the upload in javascript, no server call is made until the upload is done, and this is precisely when it is timing out. If the session times out, the user is not more logged, I'm using Forms authentication. How would I get back all my Session variables?

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET help csharp asp-net sysadmin testing

  • errormessage from two separate validators appearing in the same place
    T Talal Sultan

    You can try setting the Display property to Dynamic. Example:

    <asp:RequiredFieldValidator ID="requiredEmailAddress" runat="server" ControlToValidate="txtEmailAddress" Display="Dynamic" CssClass="SomeClass"></asp:RequiredFieldValidator>

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET help

  • Keeping the session alive
    T Talal Sultan

    Hello people, I'm having the following problem: I have a page where the user can upload a file for some processing. The file could be big (40 MB or more). I am using Rad Upload component and it is working well (with progress bar and all). Now the problem is that I cannot guarantee that all users around the world will have a fast internet connection and it could be possible that the upload time exceeds the timeout of the asp.net session. I have tried to use an Ajax timer with a code-behind event handler method in order to simulate a "ping". It works but once the upload starts, it stops. I have talked to Telerik about that and they said they have no way of making the upload do a ping. So now, I'm turning my attention more to the server code. Is there a way that I can keep alive the session in C#? My idea is to launch a thread when the user accesses the section where the upload is. That thread will keep on running with something in it to keep the session alive. And then when the upload completes and the postback is done, I would stop the thread. I haven't done any testing of this yet. I don't know if a session is kept alive if some code is being executed in it. I would also need to save the thread ID in the viewstate in order to be able to find it in the upload button event handler method. If anyone has some insight about this problem or maybe another way to solve this issue, I greatly appreciate your help. Thanks, Talal

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET help csharp asp-net sysadmin testing

  • Code jumps from one place to the other unexpectadly with Firefox!!
    T Talal Sultan

    Hi people, I am having a weid problem here. I have a web page A that calls another web page B to do some computations. Page B then calls a web service method to perform some computations. The web service method itself calls a method in the Business Logic Layer DLL. When I do a step into, I manage to jump correctly from the web page A to B to the web service to the business logic DLL. The method that does the computations is called and then instead of having the step jump to the next line, it jumps directly to a line in a method located in web page A!!! I have tried the debug process several times and it's still the same result...I land at the same line of code in page A each time. This problem does not happen when using the site with IE7, it only happens with Firefox. I have rebuilt the different projects (web, service, DLLs) server time and even deleted the temporary files in windows\microsoft.net but still I get the same thing. I don't know what to do now as I have no idea what is going on! One last note. The computation method that I call in the business logic is located in a DLL that includes some unmanaged C++ code. I am wondering if this could be a reason for the problem, even though a while back, everything worked perfectly :( :sigh: Any help is greatly appreciated. Thanks. Talal

    ASP.NET help csharp c++ sysadmin debugging

  • Login skipped for Flash object
    T Talal Sultan

    hi, I have a flash object on the root directory of my website. I use it to do multiple uploads on one of my site pages. The site is protected with forms authentication but I just found out that if a user (not logged) enters the complete path of the flash object i.e. http://someserver/myflashobject.swf, he will be able to see the object and use it! in my case it's not a big deal since the page that usually displays the object also sets some javascript event handlers and uses some session parameters, which won't be available here, so no file will actually be uploaded but I was quite astonished that the user wasn't requested to login to access the flash object. does anybody know why the flash is accessible directly without reverting to the login page? is there a special configuration for the web site in web.config to stop people accessing the flash object directly? Thanks

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET javascript adobe security question workspace

  • SMTP configuration
    T Talal Sultan

    Thanks, I have checked it out. Unfortunately it seems that this method is not able to chage the encoding through web.config as specified by this page: http://www.systemnetmail.com/faq/4.1.aspx[^] It seems I will have to release a fix to the application anyway since another bug has to be fixed as well. but thanks anyway :)

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET question csharp asp-net com sysadmin

  • SMTP configuration
    T Talal Sultan

    hi, no I don't mind changing the web.config. In fact, I was looking for a solution like that. Changing the code means that I would have to go through all the testing documentation and the release of a fix, and I'm trying to avoid that. So changing the web.config would be a great solution.

    -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

    ASP.NET question csharp asp-net com sysadmin
  • Login

  • Don't have an account? Register

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