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
R

rajmca g

@rajmca g
About
Posts
15
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Unable to connect with asp.net development server problem
    R rajmca g

    Hi, when i debug my site it is giving "unable to connect to the asp.net Development server" msg box. what is this problem, how it will come. and what is the solution for this problem. plz help me friends.How to solve this problme. if I reinstal the vs 2008 then the problem is solving.. but i need alternate solution for this. Thanq,

    ASP.NET

  • use db(sql server2000) for storing images
    R rajmca g

    if u store those images in a folder it will very easy. but some complexity also there if somebody delete that folder. or else u can store images in database that is difficult but more flexible and relable. so my suggetion is to store in database directly. use below code to store the images in database. If fileImgUpload.PostedFile.ContentLength = 0 Then lblmsg.Visible = True lblmsg.Text = "Please Browse for the New Image/Photo......." lblmsg.ForeColor = Drawing.Color.Red Exit Sub End If openAccessConnection() Dim imageSize As Int64 Dim imageType As String Dim imageStream As Stream ' Gets the Size of the Image imageSize = fileImgUpload.PostedFile.ContentLength ' Gets the Image Type imageType = fileImgUpload.PostedFile.ContentType ' Reads the Image stream imageStream = fileImgUpload.PostedFile.InputStream Dim imageContent(imageSize) As Byte Dim intStatus As Integer intStatus = imageStream.Read(imageContent, 0, imageSize) Dim cmd As New OleDbCommand("insert into tblImg(img_title,img_type,img_stream) values(@img_title,@img_type,@img_stream)", myAccessConnection) cmd.CommandType = CommandType.Text cmd.Parameters.Add("@img_title", OleDbType.VarChar).Value = txt_title.Text.Replace(",", """") cmd.Parameters.Add("@img_type", OleDbType.VarChar).Value = imageType cmd.Parameters.Add("img_stream", OleDbType.LongVarWChar).Value = Convert.ToBase64String(imageContent) cmd.ExecuteNonQuery() closeAccessConnection() txt_title.Text = "" lblmsg.Visible = True lblmsg.ForeColor = Drawing.Color.Green lblmsg.Text = "Photo Uploaded Successfully......" displayImages()

    ASP.NET database adobe help question

  • FireFox loading my pages twice. No Images exist, AutoEventWireup is false - Code included. [modified]
    R rajmca g

    just remove below code in oninit event and try..... this.Load += new System.EventHandler(this.Page_Load);

    ASP.NET database visual-studio design collaboration help

  • [Not a question]ASP.Net MVC 1.0 released
    R rajmca g

    hi Thanx for this. :rose:

    ASP.NET asp-net question csharp com architecture

  • [Not a question]ASP.Net MVC 1.0 released
    R rajmca g

    hi, sorry i am new for asp.net actually wat is the use of asp.net MVC 1.0 wat it is.? :confused:

    ASP.NET asp-net question csharp com architecture

  • datatable filter expression......
    R rajmca g

    in this first you have to create column for dt. ex:dt.column.add[...]; after that write this code. DataRow myrow = dt.NewRow(); myrow["REF"] = id; myrow["Description"] = desc; myrow["QTY"] = quanti; myrow["Price"] = unitprice; myrow["Cost"] = cost;

    ASP.NET database sysadmin question

  • datatable filter expression......
    R rajmca g

    if your getting any error after debug plz.. write that error.. in this you will get only one row ......

    ASP.NET database sysadmin question

  • datatable filter expression......
    R rajmca g

    hi, Actually what is your task, DataRow myrow = dt.NewRow(); myrow["REF"] = id; myrow["Description"] = desc; myrow["QTY"] = quanti; myrow["Price"] = unitprice; myrow["Cost"] = cost; int dtcount = dt.Rows.Count; if (dtcount > 0) { DataRow[] arrMatchingValues = dt.Select("REF=" + id); in this code your searching for the id which is added to same datatable previously...

    ASP.NET database sysadmin question

  • Master page?
    R rajmca g

    Actually in Vb.net this is the solution for that, but i don't know in c# .net If Not Page.IsPostBack Then If Not Session("username") Is Nothing Then lituser.Text = Session("username") End if End if

    ASP.NET tutorial question

  • Master page?
    R rajmca g

    to display user name in master page. just put one lable in master page and in master page Page_load event. just assign the session to lable ex: lblusername.text=Session["username"];

    ASP.NET tutorial question

  • problem with web.config
    R rajmca g

    in my website i have to folders. in that two folders i put two web.config files for each one. And in root folder i put another web.config file in that i write below code Now i want to user this authentcation in above two folder but. here. for folder1 i have different login url and defaulturl. and for folder2 i have different login url and default url. how to apply root web.config to those to folders web.config

    ASP.NET help tutorial

  • Problem with auto increment.
    R rajmca g

    Public Function getvalsfrmtbl() As Integer Try Dim res As Integer If cn.State = ConnectionState.Open Then cn.Close() End If cn.Open() Dim cmd As New SqlCommand("select max(regi_code) from regi_mast", cn) cmd.CommandType = CommandType.Text Dim dr As SqlDataReader Dim dr As SqlDataReader dr = cmd.ExecuteReader() If dr.HasRows = True Then dr.Read() res = CInt(dr.Item(0)) Else res = 0 End If dr.Close() cn.Close() Return res Catch ex As Exception Return 0 Finally cn.Close() End Try End Function just try this code in your class and in you front end coding write this code Dim newid As Integer = Val(obj.getvalsfrmtbl()) + 1 Me.txt4.Text = newid Me.txt4.Enabled = False

    Visual Basic help database learning

  • about web.config
    R rajmca g

    in my website i have to folders. in that two folders i put two web.config files for each one. And in root folder i put another web.config file in that i write below code Now i want to user this authentcation in above two folder but. here. for folder1 i have different login url and defaulturl. and for folder2 i have different login url and default url. how to apply root web.config to those to folders web.config

    Visual Basic tutorial

  • about .net framework 3.5
    R rajmca g

    Please tell me where i can find the information and coding about WCF,WPF,Linq in .net framework 3.5.......

    Visual Basic csharp dotnet wpf wcf linq

  • Session End [modified]
    R rajmca g

    how to clear session values when we close the browser in vb.net. please give me immediate response.

    modified on Monday, February 23, 2009 1:16 AM

    Visual Basic csharp 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