Search

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

Matching Posts

  • Re: if(!ispostback) is not working in usercontrol

    Try using Page.IsPostBack from your user control's code.
    Posted to Web Forms (Forum) by Vinija on 12/31/2009
  • Re: use query in web user control in web application

    Although you can do it technically, it is not recommended at all. User controls are often ways to encapsulate areas of your page wich are not necesserily contains a whole unit of data. Therefore it is more recommended to let the page go to the business layer and to the database through, than to do sofrom your user control. I suggest you to expose data properties from your user control to your page so your page can use it to send the data needed to your business layer and your database from there
    Posted to Web Forms (Forum) by Vinija on 12/31/2009
  • Re: Problem with displaying data

    Try the following: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Net.Sockets; using System.Threading; namespace ForumHelp { public partial class _Default : System.Web.UI.Page { private static object syncObject = new object(); public _Default() { } protected void Page_Load(object sender, EventArgs e) { } protected void Button2_Click(object sender, EventArgs e) { InitClient();
    Posted to Web Forms (Forum) by Vinija on 12/28/2009
  • Re: Problem with displaying data

    OK - now another question: Does type method work at all and not working on some specific calls? If so, when does it work and when does not?
    Posted to Web Forms (Forum) by Vinija on 12/23/2009
  • Re: Problem with displaying data

    I don't see your markup code but I'll try help you anyway: 1. What control type is CConcole? is it TextBox? Label? 2. Is EnableViewState on CConcole set to false? 3. If it is label - could it be that the label does not expand according to the text additions?
    Posted to Web Forms (Forum) by Vinija on 12/22/2009
  • Re: Problem with displaying data

    Well, according to the approach youv've presented here you might... However, You can make all connection related members static (or as Singleton class members) and then you won't have to reconnect every time. This method can help you presenting messages using AJAX instead of posting back to your web server each time
    Posted to Web Forms (Forum) by Vinija on 12/22/2009
  • Re: Image

    I haven't seen your code but I will try helping you anyway: Did you place an image as an Image control (<asp:Image ...>) or as an HTML tag (<img ...>) ? If it is an Image control - check the ImageUrl property of it. If it is relative try change it to absolute from your root dir, it will look something like that: <asp:Image id="imgYourUmage" ImageUrl="~/images/youimage.gif"/> I'm not sure that is your problem because I haven't seen your code, but nevertheless
    Posted to Web Forms (Forum) by Vinija on 12/21/2009
  • Re: Problem with displaying data

    Please note that all members needs to be initialize on every postback, otherwise they will be null. From a quick look at your code I can tell that you call the write() method when clicking on Button1. Therefore, try calling InitClient on Button1_Click event handler so the binary writer won't be null. The fact that it works fine on Winform is simply because the Winform class is alive as long as the form is alive which is not the same for web forms.
    Posted to Web Forms (Forum) by Vinija on 12/21/2009
  • Re: datetime format...

    yourDate.ToString("ddMMyyyy"); If your date is December, 23rd 2009 it will give the string 23122009. To get date from a string in that format you need to write: DateTime.ParseExact(yourString, "ddMMyyyy", CultureInfo.InvariantCulture.DateTimeFormat); where the 3rd paramter is required but if you give strings on that format on yourString it won't metter. Good luck!
    Posted to Web Forms (Forum) by Vinija on 12/20/2009
  • Re: Insert error on FreeTextBox Input to MS sql server

    It appears that you have overflowed nvarchar(max). Try converting the data type to ntext. This should do the trick.
    Posted to Web Forms (Forum) by Vinija on 12/15/2009
Page 1 of 18 (177 items) 1 2 3 4 5 Next > ... Last »