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
S

Sneha Bisht

@Sneha Bisht
About
Posts
95
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem in creating Shortcut to desktop and uninstall program in user all program
    S Sneha Bisht

    Hi, i face a problem to create a setup of window application in vs2010. for create a setup i use vs window installer and done step by step as i seen many examples in Google( how to create setup for window application). But in my case shortcut create in desktop, but when i click on the shortcut it will running look like as it install project again. same uninstall project create in all programs but when i click on them nothing happens. please help me. Thanks.

    C# help tutorial visual-studio workspace

  • Fixed first column position in datagridview in c#
    S Sneha Bisht

    Hi, i am using vs2010 with c#. i have a problem in datagridview, is it possible that we fixed the position of first column of datagridview, means all other columns scroll horizontally but first column fixed at his place. Thanks

    C# csharp help

  • stuck in (dll registration in system32 by c#)
    S Sneha Bisht

    Hi, i m stuck in dll registration using c#. i have to register some dlls in system32. for that first in put all dlls in a seperate folder DLL. then create a batch file who first copy all dll in system32 folder then register a XYZ.dll. all goes well when we run code. M using this line in batch file.**

    copy .\DLL\*.dll %windir%\system32\
    regsvr32 %windir%\system32\XYZ.dll

    **but when we create setup and install project in client system, nothing happens. even i m logged with adminsiatrator if we run exe from client system by runas(my exe) it works. i google it and find a solution ProcessInfo.verb = "runas" but same problem exists, nothing happens. now the main problem is that how it works without administrator.

    C# help csharp workspace

  • cast String to objet of class
    S Sneha Bisht

    Hi, i have to convert string to class object in c#. Class Admin = new Admin(); if(!((Admin)Session["Admin"]).GetRight()) { } i have to convert session["Admin"] to class Admin Object.. its give an error at runtime (can't convert string to class object) Any Solution..

    ASP.NET csharp help

  • excel workbook problem
    S Sneha Bisht

    String FileName = HttpContext.Current.Server.MapPath(@"../Excel/MyExcel.xls"); Excel.Application xlApp; Excel._Workbook xlBook; Excel._Worksheet oSheet; Excel.Range oRng; Excel.Range RRange; xlApp = new Excel.Application(); xlApp.Visible = true; xlBook = xlApp.Workbooks.Open(fileCopypath, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value); xlApp.Workbooks.Open not working when i upload application on server. i give full permission to a folder name Excel(IN root) .... but nothing happend. this code is working fine on my local system. tell me what i have to do.

    ASP.NET sysadmin help

  • url rewrite
    S Sneha Bisht

    Hi, i want to change my url by url rewritting. In the root of my application a Group name folder exists. in that folder user page exists.. after login url looks like that.. www.abc.com/Group/MyProfile.aspx but i want to change like that www.abc.com/Myusername/MyProfile.aspx means i want to change Group folder name with my UserName. can we don this with url rewritting or anything else we have to do . Thanks.

    ASP.NET com

  • regular expression
    S Sneha Bisht

    try [.\-0000] in expression

    ASP.NET regex

  • regular expression
    S Sneha Bisht

    one more method u can check enter value on server side or in page.

    ASP.NET regex

  • GridView Paging
    S Sneha Bisht

    copy this aspx.cs page using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class test : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BIndgrid(); } } void BIndgrid() { grid1.Enabled = true; DataTable dt = new DataTable(); dt.Columns.Add("Name"); dt.Columns.Add("ID"); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); dt.Rows.Add("Jack", 1); dt.Rows.Add("Jill", 2); grid1.DataSource = dt; grid1.DataBind(); } protected void grid1_PageIndexChanged(Object sender, GridViewPageEventArgs e) { grid1.PageIndex = e.NewPageIndex; grid1.DataBind(); BIndgrid(); } }

    ASP.NET css sysadmin algorithms help

  • how can get the birthday from database to dropdownlist
    S Sneha Bisht

    how I can get the birthday from column in database ( as datetime type ) and display it in a separate dropdownlist one for day and other for month and textbox for year . I want get the information to update on it . for that task first you have to create two dropdownlist for day and month and fill them. then try this code void BIndBirthDay() { DateTime _bdate = DateTime.Now; -- get this date from database field int day = _bdate.Day; -- return int value(find day of datetime field like that) drp_day.SelectedIndex = -1; drp_day.Items.FindByValue(Convert.ToString(day)).Selected = true; -- bind that perticulare day to dropdownlist by that } hope this helps and also same down for month (_bdate.Day) and year (_bdate.Year)

    ASP.NET database announcement

  • Empty publish Folder [modified]
    S Sneha Bisht

    first make sure your path for publish folder is correct.

    ASP.NET help

  • find runtime textbox value from grid
    S Sneha Bisht

    I create a gridview with runtime columns. after that add textbox in this column. Here the code. protected void grdOne_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { TemplateField T = new TemplateField(); grdOne.Columns.Add(T); GridViewRow gvr = e.Row; TableCell tcell = new TableCell(); for (Int32 i = 0; i < columnCounter; i++) { TextBox tb = new TextBox(); tb.Width = 30; tb.Text = "0"; tb.ID = "tb_" + i.ToString(); tcell.Controls.Add(tb); } gvr.Cells.Add(tcell); grdOne.Controls[0].Controls.AddAt(0, gvr); } } But when i fetch textbox value from this grid that comes with error. can any one tell me how to fetch textbox value from my grid m using these line of code to fetch textbox values public void GetArray(GridView grd) { String[,] ar = new String[rowCounter, columnCounter]; for (int i = 0; i < grd.Rows.Count; i++) { for( int j=1; j<= grd.Columns.Count; j++) { String tId = "grdOne_ctl03_tb_" + j.ToString(); String t = ((DataControlFieldCell)(grd.Rows[i].FindControl()).text; } } }

    ASP.NET css help tutorial

  • how to run outlook on client
    S Sneha Bisht

    Another one function go() { w = new ActiveXObject("WScript.Shell"); w.run('notepad.exe'); return true; } onLoad="go();" event in form

    ASP.NET question tutorial

  • how to run outlook on client
    S Sneha Bisht

    Try this using System.Diagnostics; Process.Start("outlook.exe");

    ASP.NET question tutorial

  • Date control in Dropdownlist
    S Sneha Bisht

    TRy like this in Database select convert(varchar(3),datename(mm,getdate()),24) + '--' + convert(varchar(4),datename(yy,getdate()),24)

    ASP.NET help

  • send mail with format
    S Sneha Bisht

    string message =""; message=""+ "" + "

    UserName:

    your username text

    Password:

    your password

    "; Try like this .............

    ASP.NET tools tutorial html database com

  • Gridview with A-Z Filter
    S Sneha Bisht

    call function CreateAlpha() in pageload

    ASP.NET question

  • Gridview with A-Z Filter
    S Sneha Bisht

    Try This , if anu probs let me know create Datalist dlist_chars in design <asp:DataList ID="dlist_chars" Width="100%" CellPadding="5" CellSpacing="5" DataKeyField="PageIndex" runat="server" RepeatColumns="26" RepeatDirection="Horizontal" OnItemDataBound="dlist_chars_ItemDataBound"> <ItemTemplate> <asp:LinkButton CssClass="detail_link" ID="lnl_chars" OnClick="LinkButton1_Click" CommandArgument='<%# Eval("PageText") %>' runat="server" Text='<%#Eval("PageText")%>'></asp:LinkButton> </ItemTemplate> </asp:DataList> private void CreateAlpha() { DataTable dt = new DataTable(); dt.Columns.Add("PageIndex"); dt.Columns.Add("PageText"); if (this.ViewState["Paging"] == null) { for (int i = 65; i <= 90; i++) { DataRow dr = dt.NewRow(); dr[0] = Char.ConvertFromUtf32(i); dr[1] = Char.ConvertFromUtf32(i); dt.Rows.Add(dr); } this.ViewState["Paging"] = dt; } else dt = (DataTable)this.ViewState["Paging"]; dlist_chars.DataSource = dt; dlist_chars.DataBind(); } on link buton click in datalist protected void LinkButton1_Click(object sender, EventArgs e) { LinkButton myButton = sender as LinkButton; if (myButton != null) { string text =(myButton.CommandArgument); clsEmployee emp = new clsEmployee(); emp.empID = 1; if (text == "| All") { emp.empName = "%"; } else { emp.empName = text; } DataSet ds = new DataSet(); // fetcha reccord from another datalist dlist_record then bind dlist_record.DataSource = ds; dlist_record.DataBind(); } }

    ASP.NET question

  • clickable gridview
    S Sneha Bisht

    May be this Help you can do this in rowdatabound event of grid e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#ffffff';"); here u have to find row and column what u selected from grid by javascript, then pass these ids in check page. e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#000000';"); e.Row.Cells[3].Attributes.Add("onmouseover", "javascript:window.open('check.aspx?id="+ val1+"','large','width=300,height=300,toolbar=0,menubar=0,scrollbars=0,location=0,resizable=0')");

    ASP.NET csharp asp-net tutorial

  • how to bind view to gridview control using asp.net with c#
    S Sneha Bisht

    use simple qry select * from dbo.yourView

    ASP.NET csharp tutorial asp-net database sql-server
  • Login

  • Don't have an account? Register

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