Search

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

Matching Posts

  • Re: calendar control in IE7 not working properly, why?

    Hi tanaji08, Can you show us your code please? Because as far as I know, calender control also works perfect in IE7. Waiting for your replay. Regards, ivan.
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/18/2008
  • Re: How to maintain the text in password field even after Autopost occurs

    Yep, there is a security problem. Only if the page is viewed by the real user it will be ok. If the user leave the computer alone and someone else looks into it, the password would be vulnerable. Why password textbox clears its content after a post back? It's for securtiy concerns. I just provide you this method in case you have to go with this "bad" design. If it's any possible, I would suggest you to leave it alone, just don't mess up with "maintaining passwords in the
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/17/2008
  • Re: How to maintain the text in password field even after Autopost occurs

    Hi cutekids525, Based on my understanding, you want to set a Password field on your page? Correct me if I misunderstand you. I don't know a way to do it in code-behind, because simply set the textbox's text property seems won't do the trick. So I suggest you go with javascript. Here is my example: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/17/2008
  • Re: Check box and buttoon click attribute.add

    Hi mpavas, You can set AutoPostBack property for your checkbox, <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged" /> And write the code-behind, protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { If (CheckBox1.Checked=true) Button1.Enabled=true; else Button1.Enabled=false; } Or you can do it with javascript: <script type="text/javascript"> function changck() {
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/17/2008
  • Re: Looking for a way to input data in a new page without closing main page

    Hi aspfun, Are you saying passing values to a new page? If you want to open a new page, while keeping its parent page, you can use <a > tag. For passing values, you can use querystring. It's the simplest way to go. For example, <a id ="link" href ="Default2.aspx?id=5" target ="_blank" >ABC</a> If you want to set the query string dynamically, just add a line of javascript like this: document.getElementById("link").href="Default2.aspx
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/16/2008
  • Re: how to enable an upload button after FileUpload "selection"

    Yep, that's very smart I think. : )
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/12/2008
  • Re: Passing data to a usercontrol

    Hi monkeylee, May I ask how did you add your user control onto the page? If you added its markup in the aspx file, you probably won't encounter this kind of issue. But if you created this control dynamically you should make sure you create it on each postback. Remember don't create your control inside a method like Button1_Click or so, this way subsequent postbacks that are not triggered by the Button will lose your dynamically created controls. If your control is inside an ItemTemplate of
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/12/2008
  • Re: insert data in SQL and send e-mail

    Hi ricas, You can find a tutorial for all ASP.Net 2.0 datacontrols, at http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/default.aspx Also, you can find code for sending email very easily on the internet. Here is a link http://aspnet.4guysfromrolla.com/articles/072606-1.aspx Regards, Ivan. This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/11/2008
  • Re: Regaring Dropdownlist

    Hi vsenthilganesh, Based on my understanding, you want to make a selection according to your input and change the selected item's value . Correct me if I misunderstand you. Here is the sample code: <asp:TextBox ID ="textbox2" runat ="server" ></asp:TextBox> <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem >------select------</asp:ListItem> <asp:ListItem >A</asp:ListItem> <asp:ListItem >B<
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/11/2008
  • Re: how to pass querystring to autofill blanks on external pages

    Hi, If the "external site" is not under your control, then you are almost impossible to auto fill anything in it. On the contrary, if this "external site is under your command, you can change it's Page_Load method to make the "auto-fill". It should be: protected void Page_Load(object sender, EventArgs e) { if(Request.QueryString["userName"]!=null&&Request.QueryString["password"]!=null) { userName.Text=Request.QueryString["userName"
    Posted to Web Forms (Forum) by Ivan Xin - MSFT on 6/11/2008
Page 1 of 48 (473 items) 1 2 3 4 5 Next > ... Last »