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
A

Anish Gopi

@Anish Gopi
About
Posts
60
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Stored Procedure to find emails
    A Anish Gopi

    Hi shameel, this will not work . priority for same designation is different for different customer type

    Database database sharepoint algorithms sales

  • Data Access application Block with support to asp.net 3.5
    A Anish Gopi

    Use Microsoft Enterprise Library 4.0 – May 2008. This version supports .NET famework 3.5 Download link : http://www.microsoft.com/downloads/details.aspx?familyid=90de37e0-7b42-4044-99be-f8ecfbbc5b65[^]

    ASP.NET csharp asp-net

  • Data inserted once again after Refreshing the browser
    A Anish Gopi

    Redirect to the same page using Response.Redirect() once you have successfully enter the data. This will prevent the refreshing in performing a postback.

    ASP.NET

  • Validators are not working in live
    A Anish Gopi

    Checkout if you have any Custom HTTPModule that interfering with WebResource.axd handler

    ASP.NET help csharp asp-net com tools

  • label viewstate not preserved
    A Anish Gopi

    Check your label for following scenarios : 1. Is the property EnableViewState is set to false for the label control or its parent control 2. Is the control is being dynamically added to your page. if yes recreate the control on "Init" 3. Binding a "Null" or "Empty" value to label on postbacks

    ASP.NET help

  • How to hide label ?
    A Anish Gopi

    On Client side Labels are render as "SPAN" tag. So write a javascript method which set an empty string to the control on your button click

    function clearControls()
    {
    var ctrl = document.getElementById('labelname');
    if (ctrl != null)
    {
    ctrl.innerHTML = '';
    }
    }

    Call the above method on button click

    It would be great if you turn off the ViewStatate for this particular labe1.

    ASP.NET csharp asp-net help tutorial question

  • Showing PPT in Webpage
    A Anish Gopi

    Thnaks for your response. To use ZOHO show we need to create presentations using this application . In our case the users are creataing application using Microsoft Power Point . ZOHO is not free for commercial use :(( .

    ASP.NET csharp asp-net

  • Configuration problem in web.config
    A Anish Gopi

    Hai, In webconfig file remove 'xmlns' attribute from configuration Tag . <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> </configuration>

    ASP.NET tutorial csharp database com xml

  • Using javascript confirmation box in gridview
    A Anish Gopi

    Hai Sandeep, _ctrlName_.Attributes.Add("onClick","JavaScript:return confirm('Are you sure');");

    ASP.NET javascript question

  • To change the size of the textboxes in a datagrid that is in edit mode
    A Anish Gopi

    Hai Mayl, Try to use Templated Coloums so that you can have a better control over the cell controls.

    ASP.NET question

  • too many arguments on Boolean funtion
    A Anish Gopi

    Hai, The error is self explanatory Your function declaration contain only one argument Private Function checkNumber(ByVal intQNbr As Integer) As Boolean but you are trying to call this function with two arguments Call checkNumber(intQueNumber, **bolfound**) The call must be like this bolfound = checkNumber(intQueNumber)

    ASP.NET question database help lounge

  • web.config file
    A Anish Gopi

    Hai, When ever you update Webconfig file your webapplication will restart.

    ASP.NET csharp asp-net tutorial announcement

  • Page Inheritance
    A Anish Gopi

    Hai, I will be better to keep the method in a seperate class file. Eg:

    classs Utilities
    {
    public static void doCommonJob()
    {
    }
    }

    or create a custom page class with this function implemnted. Then make all pages you need to call this fucntion inherit from this class eg:

    classs MyBasePage : Page
    {
    public void doCommonJob()
    {
    }
    }

    classs MyPage : MyBasePage{}

    ASP.NET oop question

  • two relation Drop down list
    A Anish Gopi

    LovelyHelp wrote:

    cmdSelect2 = New SqlCommand("SELECT link_titleid, link_title, t_linkTitle.link_chapterid, t_linkChapter.link_chapterid FROM t_linkTitle LEFT JOIN t_linkChapter ON t_linkChapter.link_chapterid = t_linkTitle.link_titleid", myConnection) dr2 = cmdSelect2.ExecuteReader()

    you are joining t_linkChapter.link_chapterid = t_linkTitle.link_titleid but what you need is t_linkChapter.link_chapterid = t_linkTitle.link_chapterid Try out this Code Set ddlLesson AutoPostBack property to True. Which will fire ddlLesson_SelectedIndexChanged When ever user select a new Title

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If Not IsPostBack Then
    LoadChapters()
    LoadTitle()
    End If
    End Sub

    Private Sub ddlLesson\_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
        'Load Title when ever a new chapter is selected
        LoadTitle()
    End Sub
    
    Private Sub LoadChapters()
    
        Dim myConnection As SqlConnection
        Dim cmdSelect As SqlCommand
        Dim dr As SqlDataReader
    
        myConnection = New SqlConnection("server=localhost;UID=;pwd=;database=abc")
        myConnection.Open()
    
        'call the Chapter item to drop down list
        cmdSelect = New SqlCommand("select \* from t\_linkChapter", myConnection)
        dr = cmdSelect.ExecuteReader()
    
        ddlLesson.DataSource = dr
        ddlLesson.DataTextField = "link\_chapter"
        ddlLesson.DataValueField = "link\_chapterid"
        ddlLesson.DataBind()
        dr.Close()
        myConnection.Close()
    End Sub
    
    
    Private Sub LoadTitle()
    
    
        Dim myConnection As SqlConnection
        myConnection = New SqlConnection("server=localhost;UID=;pwd=;database=abc")
        myConnection.Open()
    
        Dim cmdSelect2 As SqlCommand
        Dim dr2 As SqlDataReader
        cmdSelect2 = New SqlCommand("SELECT link\_titleid, link\_title FROM t\_linkTitle Where t\_linkTitle.link\_chapterid = " & ddlLesson.SelectedValue, myConnection)
        dr2 = cmdSelect2.ExecuteReader()
    
        ddlTitle.DataSource = dr2
        ddlTitle.DataTextField = "link\_title"
        ddlTitle.DataValueField = "link\_titleid"
        ddlTitle.DataBind()
        dr2.Close()
        myConnection.Close()
    
    End Sub
    
    ASP.NET database sysadmin help

  • put data in array
    A Anish Gopi

    Create array as per your row count public static Int32[] tcode = new Int32[ds.tables[0].rows.count] ; for(int i=0;i<ds.tables[0].rows.count;i++) { tcode[i] = Convert.ToInt32(ds.Tables[0].Rows[i][0]); }

    ASP.NET data-structures question

  • put two field in listbox
    A Anish Gopi

    Hai, String Concatenation is quite simple in C# with the use of + operator,

    eg:
    string tmp = row["id"] + " ------" + row["name"];

    We can also do the code with much more redabilty like,

    string tmp = string.Format("{0} ----- {1}", row["id"], row["name"]);

    ASP.NET

  • put two field in listbox
    A Anish Gopi

    Hai, Its not possible to bind multiple coloums to ListBox. To do so you need to loop through data and do things manually.

    Eg:
    foreach(DataRow row in tblUser.Rows)
    {
    ListItem itm = new ListItem(row["id"] + row["name"], row[id);
    listbox.Items.Add(itm);
    }

    ASP.NET

  • How to handle events of dynamically created buttons???
    A Anish Gopi

    Hai Try out this one

    Private Sub Page_Load
    InitPage()
    End sub

    While working with dynamic controls you need to build controls on each post back. Its better to build dynamic controls in Page_Init

    Private Sub Page_Init ....
    InitPage()
    End Sub

    ASP.NET asp-net design json help tutorial

  • problem with radio button
    A Anish Gopi

    By Setting RadioButton1.ID = "Newvalue"; Both the Name and ID value Can be set at Runtime Radio buttons are rendered With in a span Tag in Client Side By setting RadioButton1.Attributes.Add("Name","Value"); We can specefying an Name attribute to SPAN Tag

    ASP.NET html help tutorial question

  • help me...html table
    A Anish Gopi

    Hai vtalau To make a HTML table control accesable at server make it HTML server control (runat=Server). Then in code behind 1. To itreate through each cell

    foreach(HtmlTableRow row in Table1.Rows)
    {
    foreach(HtmlTableCell cell in row.Cells)
    {
    Response.Write (cell.InnerText);
    }
    }

    2. Explicitly get values from a cell

    Table1.Rows[0].Cells[0].InnerText

    Hope this will solve your problem Thanks and Regards

    ASP.NET html sysadmin help tutorial
  • Login

  • Don't have an account? Register

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