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
Y

YazhiniP

@YazhiniP
About
Posts
10
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to persist the focus on the panel during postback
    Y YazhiniP

    Hi,    I am a beginner in .Net.    In my application i have 4 panels.    But,during postback(such as a button click event),the focus automatically goes to the first panel.    In web,i found on idea to use TabbedPanels1.showPanel(tabindex) on button's onclick event.    But,both in the OnClientClick and OnServerClick events i have written the validation and some task to be done respectively.    How to persist the focus on the panel during postback? Thanks in advance :)

    Yazhini

    ASP.NET csharp tutorial question learning

  • How to call confirm from C#.Net?
    Y YazhiniP

    Hi, In my application,the user have to upload   a particular document. I have to check the database and if the document has been already uploaded by the user.If so,then i have to get the consent of the user to overwrite. If he says ok,then the updation should happen. This should be done in the middle of btnUpload_click() event. Since confirm(msg) is a javascript function,how to call it from aspx.cs page?. It seems that a javascript function can be called only at some events(Buttonclick etc.) and <body onload().... :( How to call the confirm(msg) without any event firing?.Any ideas?. Thanks in advance

    Yazhini

    ASP.NET csharp javascript database tutorial question

  • Generating word document and saving to a particular location in c#.net
    Y YazhiniP

    ok...I dropped the idea of using Response object.I tried using FileStream and StreamWriter.but,how to pass the GridView object to the StreamWriter?             FileStream fs = File.Create(path);             fs.Close();             StreamWriter sw = new StreamWriter(path);             StringWriter sWriter = new StringWriter();             HtmlTextWriter htwWriter = new HtmlTextWriter(sWriter);             gvRCA.RenderControl(htwWriter);             sw.Write(htwWriter);             sw.Close(); The above code writes only System.Web.UI.HtmlTextWriter to the word file. I am beginner in .Net and i dont know a lot. Do u have any idea on how to do this?. Thanks in advance... :)

    Yazhini

    ASP.NET csharp help tutorial question

  • Generating word document and saving to a particular location in c#.net
    Y YazhiniP

    Hi, I have to generate a word document dynamically in .Net. I have to write the contents of the GridView to the Word document. I am able to do all but,the problem is i have to save the file automatically to a particular folder than saving the File via the FileDialog box. Can anyone please tell me that how to store the word file automatically to a particular location? I have given the code below.             string attachment = "attachment; filename=" + strFilePath;             Response.ClearContent();             Response.AddHeader("content-disposition", attachment);             Response.ContentType = "application/ms-word";                   StringWriter sWriter = new StringWriter();             HtmlTextWriter htwWriter = new HtmlTextWriter(sWriter);             gvRCA.RenderControl(htwWriter);                         Response.Write(sWriter.ToString());             Response.End();

    Yazhini

    ASP.NET csharp help tutorial question

  • What is operator used in ASP.NET2.0 instead od "& _"
    Y YazhiniP

    No...if i remove '+' it gets compiled but i m throws a run-time error stating "input string is not in correct format". Whether '+' operator doesn't work for parameter passing or in function definition?

    Yazhini

    ASP.NET csharp help question asp-net

  • What is operator used in ASP.NET2.0 instead od "& _"
    Y YazhiniP

    objIncidentBL.UpdateIncidentDetails(Convert.ToInt32(txtIncidentNo.ToString()),                                                       txtApplicationName.ToString(),                                                       txtIncidentType.ToString()); I have to pass 15 more parameters in this function.if i use '+' as below,i m getting an error message such as operator '+' cannot be applied to operand of type string. objIncidentBL.UpdateIncidentDetails(Convert.ToInt32(txtIncidentNo.ToString()), +                                                       txtApplicationName.ToString(), +                                                       txtIncidentType.ToString());

    Yazhini

    ASP.NET csharp help question asp-net

  • What is operator used in ASP.NET2.0 instead od "& _"
    Y YazhiniP

    Hi, I am working with Visual Web Developer 2005(c#.net). I want to pass more than 15 parameters to a function. So,for clarity i wrote the function in multiple line using the operator "& _". But,it doesn't work and i get an error message as 'The name '_' doesn't exist in the current context. Can anybody help me in this?.

    ASP.NET csharp help question asp-net

  • [Message Deleted]
    Y YazhiniP

    No need to write query for each template field.    Just mention the DataSource in the asp:GridView tag and define the DataSource seperately..    U can assign the respective column value to each template field using the following method. <asp:TemplateField HeaderText="Status"> <ItemTemplate>    <asp:Label ID="lblStatus" runat="server" Text=<%# Eval("Column name") %> /> </ItemTemplate> </asp:TemplateField> U can also specify the DataSource in cs file as following if u use datatable/dataset as datasource.    Gridviewname.DataSource= DataTablename/DataSetName;    Gridviewname.DataBind();

    Yazhini

    ASP.NET

  • Problem while binding data to a DropDownList in GridView's EditItemTemplate column
    Y YazhiniP

    Yes...i might have been given as Cell[5].But,that alone is not the mistake. I have resolved the problem now... I think the main mistake is that i haven't filled the Grid at the RowEditing event. After doing that,i got it. Anyhow,thanks for helping me... Now,i have another doubt. How to retrive the cell value of the BoundField in the RowUpdating event?. For example,i have to retrive the IncidentNo whose ApprovalStatus has been edited and have to pass both the ApprovalStatus and IncidentNo values to another function. Since The IncidentNo column is a BoundField control,how to get it's value in the RowUpdating event?

    Yazhini

    ASP.NET help csharp wpf wcf learning

  • Problem while binding data to a DropDownList in GridView's EditItemTemplate column
    Y YazhiniP

    Hi, I am a beginner in .NET. I Placed a DropDownList in GridView's EditItemTemplate field. Whenever i click the Edit Button i am getting a runtime error stating "object Reference not set to an instance of the object". That is,when i try to find the DropDownList using FindControl method,it is always null. I have tried a lot of code in both GridView's RowBound and RowEditing events. But,all the time i am getting the same error. Below i have given the code that i tried in RowEditing event. It will be very helpful if anyone help me in resolving this error. .aspx source code /> .cs file protected void gvDocumentDetails_RowEditing(object sender, GridViewEditEventArgs e) { int intEditIndex; intEditIndex = e.NewEditIndex; gvDocumentDetails.EditIndex = e.NewEditIndex; PopulateApprovalStatus(intEditIndex); } protected void PopulateApprovalStatus(int intRowIndex) { DataSet dsApprovalStatus = new DataSet(); DropDownList ddlApprovalStatus = null; ObjReviewDocumentsBL.LoadApprovalStatus(out dsApprovalStatus); ddlApprovalStatus = (DropDownList)gvDocumentDetails.Rows[intRowIndex].Cells[6].FindControl("ddlApprovalStatus"); ddlApprovalStatus.DataSource = dsApprovalStatus;

    ASP.NET help csharp wpf wcf learning
  • Login

  • Don't have an account? Register

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