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

Sreekumar P P

@Sreekumar P P
About
Posts
13
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to run an .exe from asp.net page
    S Sreekumar P P

    --

    ASP.NET csharp asp-net help tutorial

  • [Message Deleted]
    S Sreekumar P P

    [Message Deleted]

    ASP.NET

  • MOSS 2007 Workflow
    S Sreekumar P P

    Hi 1. Can i create a new workflow using two out-of-the box workflow templates (say Approval & Collect Feedback) 2. Can i modify the default out-of-the box workflow template (say Collect Feedback) with certain new features or features of an approval flow 3. Any support URL where i can get info on creating complex and lengthy workflow solutions using MOSS 2007 Thanks In Advance Sreekumar PP Sreekumar PP

    IT & Infrastructure wpf beta-testing code-review workspace

  • Auto Fit DataGrid according Columns Content length
    S Sreekumar P P

    the quick way out is to untick the "wrap text within cell" property of column items.

    ASP.NET question

  • Drop down list
    S Sreekumar P P

    i would recomend to add a default text to the dropdown after binding. dropdownXYZ.DataSource = something; dropdownXYZ.DataValueField = something; dropdownXYZ.DataTextField = something; dropdownXYZ.DataBind(); dropdownXYZ.Items.Add("Select One"); dropdownXYZ.SelectedIndex = ddlEventIDONX.Items.Count-1; // Assuming that you won't be having any negetive value in real time. dropdownXYZ.SelectedItem.Value = "-1"; --- On Clear Button Click event, change the drowndown to "-1" However, i would recommend this clear button to have javascript function. Why should it make an unnecessary round trip to server and waste time even if that is just seconds. --Javascript --- loop thru the document and find all required controls like text box, dropdowns etc and clear it.... ---- var controls = document.all; if(controls[i].tagName == 'INPUT' || controls[i].tagName == 'SELECT' || controls[i].tagName == 'TEXTAREA' || ... etc) if(controls[i].value.length > 0 ) { //Clearing Text Box if(controls[i].tagName == 'INPUT') controls[i].value = ""; //For DropDows else if(controls[i].tagName == 'SELECT' ) { if(controls[i].value != -1) controls[i].value = -1; } else if(controls[i].tagName == 'TEXTAREA') controls[i].value = ""; ----- etc.. } Sreekumar PP

    Web Development csharp asp-net wpf wcf question

  • Javascript String Prob
    S Sreekumar P P

    by default value picks as string. you will have to pasre it to integer using parseInt. parseInt("document.getElementById('technicalScore1'). value",10) Sreekumar PP

    Web Development javascript help

  • To clear all textboxes in a page
    S Sreekumar P P

    you can also have some javascrip funtion for this. var controls = document.all; if(controls[i].tagName == 'INPUT') { var tmpID = controls[i].id; tmpID.value = ""; }

    ASP.NET csharp help

  • how to add textbox to a table at runtime and send textbox's value to database
    S Sreekumar P P

    Nitin, sandip is right... However, you can also use "Panels" for the same protected System.Web.UI.WebControls.Panel Panel1; ... ... .... .... TextBox txt =new TextBox(); txt.ID = "textBox1"; Panel1.Controls.Add(txt); ... ... .... .... //At any point of time you can read value from this text box TextBox tempText = new TextBox() tempText = (TextBox)Panel1.FindControl("textBox1") string strValue = tempText.Text() Sreekumar P P

    ASP.NET database help tutorial

  • To insert values from a gridview to textboxes in web page
    S Sreekumar P P

    1. You can use DataGrid's ItemDataBound event for this. At any point you can have the exact cell value by --> e.Item.Cells[x].Text -------------------------------------------------------------- 2. You can also have mouseover or mouse-click events for a DataGrid Row. if (e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem) { if (e.Item.ItemType == ListItemType.Item) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } if (e.Item.ItemType == ListItemType.AlternatingItem) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } }

    ASP.NET csharp help

  • create directory at run time
    S Sreekumar P P

    System.IO.Directory.CreateDirectory(your-directory-path); Sreekumar PP

    ASP.NET

  • Dataset
    S Sreekumar P P

    DataSet is connection less RecordSet is connection oriented DataSet can have bi-directional move; from top row to bottom row and bottom row to top row of any table contained in it RecordSet - Can only have uni-direction DataSet - 3 dimension (having multiple tables. Tables|Rows|Cols) RecordSet - 2 dimension (Rows|Cols) Sreekumar PP

    ASP.NET

  • How do I call a public function in another page???
    S Sreekumar P P

    it is simple class call. Forget that it is a page and access the function as in a seperate class. Page 1 namespace TEST { public class PAGE1 : System.Web.UI.Page { -------------------- private void Page_Load(object sender, System.EventArgs e) { PAGE2 obj = new PAGE2(); Response.Write(obj.test()); -------------------------- ------------------- ----------------- Page 2 namespace TEST { public class PAGE2 : System.Web.UI.Page { ------------------------ --------------------------- public string test () { return "SREE"; } ------------------------ --------------------- Sreekumar PP

    ASP.NET question csharp

  • how to fix textbox size using "%" [modified]
    S Sreekumar P P

    hi i have a text box that gets its text vlaue after a postback. However, if the text is of a long string, my textbox too growing with text. how to fix it static but with a "%" unit. ---- ----- Initial display is fine. But after a round trip it changes based on the size of the text assinged. txtCommitteeNameMYS.Text = e.Item.Cells[3].Text; It is perfect when the textbox Text is having a small string value like "ABC COMMITTEE". But if the text is bit long like "COMMITTEE FOR HUMAN RIGHTS VIOLATION TOWARDS WOMEN & CHILDERN", text box also grows with no wrap to the text. I want my textbox width to have a 100% fit in the 22% td of its container table. Strange -- noticed that the problem is not available if direction is RTL.. any idea ?? Sreekumar PP -- modified at 10:57 Saturday 30th September, 2006

    ASP.NET help docker tutorial question
  • Login

  • Don't have an account? Register

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