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
M

mominafiz

@mominafiz
About
Posts
17
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SqlDataSource ERROR: Function or stored procedure has too many arguments passed. [modified]
    M mominafiz

    i got to know why my page was crashing.. thanks

    ASP.NET help database announcement

  • SqlDataSource ERROR: Function or stored procedure has too many arguments passed. [modified]
    M mominafiz

    hi,

    i m facing problem in gridview updating. I m using sqldatasource to select and update the record.
    In select of sqldatasource i m passing three parameter and in update i m passing 4 parameter. when i run my program, the select in sqldatasource works perfect. but when i update that record...its throws error...
    " Function or stored procedure has too many arguments passed". Even though i m getting this error and my page crashes...i m still able to update the record, this i noticed when i stop the program after webpage crash and then run the program again. but i dont want my webpage to crash.

    Here is my ASPX file code...

    ASP.NET help database announcement

  • Adding textbox column to gridview programmatically (vb.net)
    M mominafiz

    thanks Jamie!

    Web Development csharp

  • Adding textbox column to gridview programmatically (vb.net)
    M mominafiz

    hi. i want to add textbox column in gridview without using template in my aspx page...i m adding Sr.No column and few more columns to the datatable and then loading the gridview...but along with this i want to add textbox column in the end of the gridview column. Adding textbox to template tag in aspx page result in addition of textbox column in the first column ..this is want to the last column. Here is the code till loading gridview

        Dim dt As New DataTable()
        Dim dcol1 As New DataColumn(IDgen, GetType(System.Int32))
        dcol1.AutoIncrement = True
        dcol1.AutoIncrementSeed = 1
        dcol1.AutoIncrementStep = 1
        dcol1.Unique = True
        dt.Columns.Add(dcol1)
    
        Dim cmd As New SqlCommand
        cmd = New SqlCommand("SELECT \* FROM TestName", MySearchCon)
        cmd = New SqlCommand(Str.ToString, MySearchCon)
        cmd.Connection.Open()
        Dim rdr As SqlDataReader
        rdr = cmd.ExecuteReader()
        dt.Load(rdr)
    
        GrdDynamic.DataSource = dt
        GrdDynamic.DataBind()
        cmd.Connection.Close()
    

    A

    Web Development csharp

  • How to add columns dynamically in gridview
    M mominafiz

    hi, i want to add textbox columns in my Gridview dynamically. I first want to fill the gridview using dataset which i m able to...but i want to add one more extra column in the gridview at the same time. How to add that textbox column ......say on dropdownlist autopostback event or say button click event? here is the code for filling gridview using dataset

        TRcmd.CommandText = "GetLoadedTRGV"
        TRcmd.CommandType = CommandType.StoredProcedure
        TRcmd.Connection = MyTRCon
                TRcmd.Parameters.Add(New SqlParameter("@testID", SqlDbType.NVarChar) With {.Value =  testnameddl.Text})
        TRcmd.Parameters.Add(New SqlParameter("@techniqID", SqlDbType.NVarChar) With {.Value = Techniqnameddl.Text})
    
        TRadptr = New SqlDataAdapter("GetLoadedTRGV", MyTRCon)
        TRadptr.Fill(TRds)
    

    Gridview1.datsource=TRds.Tables(0)
    Gridview1.databind()

    modified on Tuesday, June 15, 2010 9:26 AM

    Web Development tutorial question

  • Error in dropdownlist binding
    M mominafiz

    i have created drop downdownlist and i m binding it with the testnames in the database.

    Private Function load_sptestreqtestnameddl()

        Dim Adptr As New SqlDataAdapter
        Dim Pkgddldt As New DataSet
    
        '##################     FOR CONNECTION  ################
    
        Dim MySearchCon As DbConnection = providerFactory.CreateConnection()
        MySearchCon.ConnectionString = connectionString.ConnectionString
    
        '###################  END OF CONNECTION #################
    
        Dim str As String = Nothing
        str = ("SELECT test\_id, test\_name FROM TestName")
    
        Adptr = New SqlDataAdapter(str, MySearchCon)
        Adptr.Fill(Pkgddldt)
    
        sptestreqtestnameddl.DataSource = Pkgddldt
        sptestreqtestnameddl.DataSource = Pkgddldt.Tables(0)
        sptestreqtestnameddl.DataTextField = Pkgddldt.Tables(0).Columns("test\_name").ColumnName.ToString
        sptestreqtestnameddl.DataValueField = Pkgddldt.Tables(0).Columns("test\_id").ColumnName.ToString
    

    sptestreqtestnameddl.DataBind()
    Return 0
    End sub

    the code shows me following error....this exactly same code works perfect in other webforms. 'sptestreqtestnameddl' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value

    ASP.NET database wpf wcf help

  • PostBack Problem
    M mominafiz

    hi. i m having problem with post back. i m having my .vb file in which i got my edit button even sub and save btn event sub. i m declaring ( dim flag as integer =-1 )on page load event. on clicking on edit button flag becomes 1 and in save btn event i got my condition if flag=1 then end if when i hit edit flag becomes 1 and on clicking on save button, the button's postbck event is called and due to post back the flag is initialised to -1. i know what is postback and how it works .but m not aware how to handle it.. can anyone help how to come out of this situation??

    Web Development help question tutorial

  • How to Change the default location of file --- VB.NET
    M mominafiz

    thanks Johnny. after posting i realized how to do it...but can u tell me how to save the file on server without using fileupload control in asp.net .....i want to store the content in textbox directly in file on server. and how to retrieve the file from the server. thanks

    Visual Basic visual-studio csharp sysadmin tutorial

  • How to Change the default location of file --- VB.NET
    M mominafiz

    I am making a VB.NET web application in VS.NET 2008. I am using streamwriter to write in the file. I am using filestream to create a new file Dim fs As New FileStream("'" & FN & "'.txt", FileMode.CreateNew, FileAccess.Write) using above line create the file in the default directory i.e (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE) But i want to store my files in my defined directory say ("C:/HMSFiles/PPFiles/") how to replace the default directory with defined directory?? how to read the file from the defined directory? if i want to store these files on the server how to do this?? Here is the code:

    Dim FilePath As String = ("C:/HMSfiles/PPFiles/")

    Dim fs As New FileStream("'" & FN & "'.txt", FileMode.CreateNew, FileAccess.Write)
    Dim s As New StreamWriter(fs)
    pretestcatch = pretestTA.Text
    posttestcatch = posttestTA.Text

    s.WriteLine("PRE TEST PRECAUTIONS:")
    s.NewLine = ""
    s.Write(pretestcatch)

    s.WriteLine("POST TEST PRECAUTIONS:")
    s.NewLine = ""
    s.Write(posttestcatch)
    s.Close()

    Visual Basic visual-studio csharp sysadmin tutorial

  • menu with multiview tab problem [ANY EXPERT CAN SOLVE THIS ...2 EXPERTS FAILED]
    M mominafiz

    hi. i have created a page having menu and multiview. this i used to create a tabs and on clicking on tab raises an onMenuItemClick event. this event i have placed it in vb script. when i run this page it works perfectly...and clicking on tabs shows me the content of that tab. but when i connect this page with masterpage and instead of writing script in the webpage...i wrote it in .vb codefile and tried to run the page...but surprisingly on clicking on tab takes me to home pages which is my default.aspx. when i put breakpoints on menuclick event in .vb codefile and then tried to debug the page it doesnt raise any event on tab click because it doesnt reaches the breakpoint. dont know what wrong with the code. here are is the .aspx page not linked to masterpage

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm7.aspx.vb" Inherits="PATHOLOGY.WebForm7" %>

    Sub NavigationMenu\_MenuItemClick(ByVal sender As Object, \_
        ByVal e As MenuEventArgs)
        'STDmultiview.ActiveViewIndex = Int32.Parse(e.Item.Value)
        If e.Item.Value = "0" Then
            STDmultiview.ActiveViewIndex = "0"
        Else
            STDmultiview.ActiveViewIndex = "1"
        End If
    End Sub
    

    'same as latter section div

    here is the master page linked page:

    <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Pathology.Master" CodeBehind="TestStandards.aspx.vb"
    Inherits="PATHOLOGY.TestStandards" %>

                              Test Name:
    
    Web Development debugging tools help

  • Opening webpage having stylesheets in masterpage contentplaceholder
    M mominafiz

    head, title and doctype tags are not removed from the masterpage.. it has been removed from the webpage which i want to display in masterpages's contentholderplace. if u refer masterpagefile in <@page> line then head and title, html and doctype tags will show error that these tags are should not be nested in div. i got my master page and a webpge which i want to open in master page. The webpage is having tabs and on clicking on it open the view of that tab. It works perfectly if not opened in masterpage's contntplaceholder. When i open it in masterpage contentplaceholder the webpage appears ...i can even see the tabs but on clicking on tabs takes me to home page which is default page instead of showing me tab view.

    Web Development html sysadmin help

  • Opening webpage having stylesheets in masterpage contentplaceholder
    M mominafiz

    i got little problem with opening a webpage in masterpage's contentplaceholder. To open a webpage in contentplaceholder of masterpage i need to do is remove html tag , head and title... and doctype tag too. along with this i need to remove runat=server from form tag and put action instead. and on the top most line '@page' i need to add masterpagefile attribute. All code except for the first line has to be placed in asp:content control with ref to master contentplaceholder...... but what i do if my webpage has style sheet ..i cant remove head tag bcoz it contains style sheet link..and if dont remove style from the head and try to run removing html tags and doctype....the webpage opens in masterpage but on clicking on tab which is in webpage takes me to homepage instead of opening tab. webpage code .aspx

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestStandards.aspx.vb"
    Inherits="PATHOLOGY.TestStandards" %>

    Standards

      Test Name:
    
    Web Development html sysadmin help

  • Opening webpage having stylesheets in masterpage contentplaceholder
    M mominafiz

    i got little problem with opening a webpage in masterpage's contentplaceholder. To open a webpage in contentplaceholder of masterpage i need to do is remove html tag , head and title... and doctype tag too. along with this i need to remove runat=server from form tag and put action instead. and on the top most line '@page' i need to add masterpagefile attribute. All code except for the first line has to be placed in asp:content control with ref to master contentplaceholder...... but what i do if my webpage has style sheet ..i cant remove head tag bcoz it contains style sheet link..and if dont remove style from the head and try to run removing html tags and doctype....the webpage opens in masterpage but on clicking on tab which is in webpage takes me to homepage instead of opening tab. master page code: <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Pathology.master.vb" Inherits="PATHOLOGY.Pathology" %> Pathology

    Image/Logo hospital name Hospital Address Hospital city, pincode Hospital Contact Numbers

    .NET (Core and Framework) html sysadmin help

  • opening GridView in contentplaceholder of masterpage
    M mominafiz

    runat=server attribute indicates that the element should be treated as a server control And page can have one or more forms in page. How many form tags with runat=server is allowed? --> this thing i dont know. but form requires a runat attributes when using GridView Plz give briefing on this and solution to the problem.. thank u..

    ASP.NET sysadmin help

  • opening GridView in contentplaceholder of masterpage
    M mominafiz

    please, tell me if u need a code .

    ASP.NET sysadmin help

  • opening GridView in contentplaceholder of masterpage
    M mominafiz

    here is the gridview page file code: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ScheduleList.aspx.vb" Inherits="PATHOLOGY._Default" %>

    Schedule List

    ASP.NET sysadmin help

  • opening GridView in contentplaceholder of masterpage
    M mominafiz

    hi, i am having a page with gridview and i want to open the page in master page...so to do this i removed the runat server attribute from the page and on the link button of the master page i referred the page with gridview ...but showed me an error " form with gridview must have runat=server attribute". when i put this attribute...and try to open in master page, the page with gridview loads leaving the masterpage....i figured out that when my masterpage form and gridview page form tag both have runat= server attribute then the gridview page will be loaded leaving the masterpage.

    Afiz Momin

    ASP.NET sysadmin help
  • Login

  • Don't have an account? Register

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