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
D

dharanighanta

@dharanighanta
About
Posts
15
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create context menu for notify icon using windows service application in c#.net
    D dharanighanta

    Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu for this icon. I have added context menu for notify icon but context menu not displaying in systray. Please let me know how to do this? With regards, Dharani.

    C# csharp tutorial question

  • how to access session variables in html page
    D dharanighanta

    Hi All, I need your help, i have 3 html pages and one aspx page.After visiting the aspx page it creates one session variable this variable i want to access in all my html pages thru anyway. How can i access, give some idea is it possible or not. Regards, Madhuri.

    ASP.NET html help tutorial question

  • Image not displaying in IE7
    D dharanighanta

    Hi all, I m executing my project in ie6. some times i use to execute my project in ie7 Here my problem is: i m getting images well and good when i run it on the ie6 (my images are stored in my project in one folder) and in ie7 i m not able to get the images on my aspx page even though if the images are there on my image folder.But some times the images will disply on ie7. plz any one can help.. Regards, dharani.

    ASP.NET help

  • How to get query string parameter value in html
    D dharanighanta

    Hi All, I want to redirect from aspx page to html page for this html page i'll pass query string parameter like this www.test.com/welcome.htm?login=sanju how to get querystring parameter value in html page. Thanks, Dharani.

    ASP.NET html database com tutorial question

  • Regarding Browser Problem
    D dharanighanta

    Hi all, I m executing my project in ie6. some times i use to execute my project in ie7 Here my problem is: i m getting images well and good when i run it on the ie6 (my images are stored in my project in one folder) and in ie7 i m not able to get the images on my aspx page even though if the images are there on my image folder.But some times the images will disply on ie7. plz any one can help.. Regards, dharani.

    ASP.NET help

  • How to save aspx page as html
    D dharanighanta

    Sorry,Html page'll save in local systems only. I am calling the following javascript function on the save as html button click event

    function saveashtml()
    {
    window.document.execCommand('SaveAs',false,'C:\\file.html');
    }

    This function simply reads the entire page and save it into html page.

    ASP.NET html help tutorial

  • How to save aspx page as html
    D dharanighanta

    Thanks for the reply. Saving HTML page to client machine.I am getting images in that html page.whats my problem is in that page i am having 3 buttons.How to hide those buttons in html page?

    ASP.NET html help tutorial

  • How to save aspx page as html
    D dharanighanta

    Hi All, I have to save the webpage as html.In tht page, i have images,text and three buttons.The buttons like Print,Save As HTML and Close.If user click the save as html button then a save dialogbox should open and user'll give some file name for save that page.I got upto here but in that html page i am containg those three buttons.How to hide those buttons in save as html page.Plz give me solution for my problem...Its very urgent for now... Thanks in advance. Regards, Dharani.

    ASP.NET html help tutorial

  • Problem with postback
    D dharanighanta

    Hi Murali, Thank you for the reply.Actually,my requirement is fill the county dropdownlist with out page postback.I am sending my code below...Just go thru it....That code copy into ur application and check it.

    CODEBEHIEND CODE:

    Using System;

    Using System.Data;

    Using System.Data. SqlClient;

    Using System.Configuratio n;

    Using System.Web.Configur ation;

    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;

    Using System.Text;

    Public partial class ClientCallBack : System.Web.UI.Page, System.Web.UI.ICallbackEventHandler

    {

    private string raiseCallArgument, stateId;

    protected void Page_Load(object sender, EventArgs e)

    {

    if (!IsPostBack)

    {

    string strConnection = WebConfigurationMan ager.ConnectionStrings["DemoConn"].ConnectionString;

    SqlConnection con = new SqlConnection(strConnection) ;

    string strSQL = "SELECT DISTINCT * FROM tblRmStateMaster";

    using (con)

    {

    con.Open();

    SqlCommand objCmd = new SqlCommand(strSQL, con);

    SqlDataReader dtReader = objCmd.ExecuteReade r();

    using (dtReader)

    {

    if (dtReader.HasRows)

    {

    ddl.DataSource = dtReader;

    ddl.DataTextField = "Statename";

    ddl.DataValueField = "Statename";

    ddl.DataBind( );

    }

    }

    }

    }

    if (Request.Browser. SupportsCallback )

    {

    string callbackRef = Page.ClientScript. GetCallbackEvent Reference(this, "document.forms[ 0].elements[ 'ddl'].value", "CallbackonClientsi de", "null");

    ddl.Attributes["onChange"] = callbackRef;

    }

    }

    public void RaiseCallbackEvent(string raiseCallArgument)

    {

    this.raiseCallArgument = raiseCallArgument;

    stateId = this.raiseCallArgument;

    }

    //This method should return a string value for the Javascript method to handle

    public string GetCallbackResult( )

    {

    StringBuilder returnString = new StringBuilder();

    using (SqlConnection cn = new SqlConnection(ConfigurationManage r.ConnectionStrings["DemoConn"].ToString() ))

    {

    cn.Close();

    cn.Open();

    SqlCommand cmd1 = new SqlCommand("select * from tblRmStateMaster where Statename='" + stateId + "' ", cn);

    SqlDataReader dr;

    dr = cmd1.ExecuteReader( );

    string str = "";

    while (dr.Read())

    {

    str = dr[

    "Stateid"].ToString() ;

    }

    dr.Close();

    cn.Close();

    int a = ddl.SelectedIndex + 1;

    string exp = raiseCallArgument;

    t

    ASP.NET csharp javascript asp-net database design

  • Problem with postback
    D dharanighanta

    Hi Paul, Just go through the below link http://www.remapper.com/callback.aspx In that i have two dropdownlists,I will select state from first dropdownlist then those counties will be appear in second dropdownlist without postaback of the page.I am getting but if i click the button for retreiving selected state and county value then county values are disappeared.

    ASP.NET csharp javascript asp-net database design

  • Problem with postback
    D dharanighanta

    Hi paul, I posted aspx source code but in that code i had two dropdownlist and one button control those controls are not displaying in the posted message.why it is not appearing?

    ASP.NET csharp javascript asp-net database design

  • Problem with postback
    D dharanighanta

    Hi Paul, Thank you for the immediate reply.I am sending code put it in pre tags... CODEBEHIEND CODE:

    Using System;

    Using System.Data;

    Using System.Data. SqlClient;

    Using System.Configuratio n;

    Using System.Web.Configur ation;

    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;

    Using System.Text;

    Public partial class ClientCallBack : System.Web.UI.Page, System.Web.UI.ICallbackEventHandler

    {

    private string raiseCallArgument, stateId;

    protected void Page_Load(object sender, EventArgs e)

    {

    if (!IsPostBack)

    {

    string strConnection = WebConfigurationMan ager.ConnectionStrings["DemoConn"].ConnectionString;

    SqlConnection con = new SqlConnection(strConnection) ;

    string strSQL = "SELECT DISTINCT * FROM tblRmStateMaster";

    using (con)

    {

    con.Open();

    SqlCommand objCmd = new SqlCommand(strSQL, con);

    SqlDataReader dtReader = objCmd.ExecuteReade r();

    using (dtReader)

    {

    if (dtReader.HasRows)

    {

    ddl.DataSource = dtReader;

    ddl.DataTextField = "Statename";

    ddl.DataValueField = "Statename";

    ddl.DataBind( );

    }

    }

    }

    }

    if (Request.Browser. SupportsCallback )

    {

    string callbackRef = Page.ClientScript. GetCallbackEvent Reference(this, "document.forms[ 0].elements[ 'ddl'].value", "CallbackonClientsi de", "null");

    ddl.Attributes["onChange"] = callbackRef;

    }

    }

    public void RaiseCallbackEvent(string raiseCallArgument)

    {

    this.raiseCallArgument = raiseCallArgument;

    stateId = this.raiseCallArgument;

    }

    //This method should return a string value for the Javascript method to handle

    public string GetCallbackResult( )

    {

    StringBuilder returnString = new StringBuilder();

    using (SqlConnection cn = new SqlConnection(ConfigurationManage r.ConnectionStrings["DemoConn"].ToString() ))

    {

    cn.Close();

    cn.Open();

    SqlCommand cmd1 = new SqlCommand("select * from tblRmStateMaster where Statename='" + stateId + "' ", cn);

    SqlDataReader dr;

    dr = cmd1.ExecuteReader( );

    string str = "";

    while (dr.Read())

    {

    str = dr[

    "Stateid"].ToString() ;

    }

    dr.Close();

    cn.Close();

    int a = ddl.SelectedIndex + 1;

    string exp = raiseCallArgument;

    try

    {

    cn.Open();

    SqlCommand cmd = new SqlCommand("select DISTINCT * from tblRmCountyMaster where Stateid=" + str

    ASP.NET csharp javascript asp-net database design

  • Problem with postback
    D dharanighanta

    Hi All, We have two dropdownlists in my web page.In second dropdownlist items will be appear based upon first dropdownlist selection item with out page postback.I have implemented using System.Web.UI.ICallbackEventHandler interface with asp.net2.0. But i structed with button click event.If i click button for save the info into database the second dropdownlist items cleared.I am sending my code here.Pls go throught it tell me solution..... CODEBEHIEND CODE: Using System; Using System.Data; Using System.Data. SqlClient; Using System.Configuratio n; Using System.Web.Configur ation; 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; Using System.Text; Public partial class ClientCallBack : System.Web.UI.Page, System.Web.UI.ICallbackEventHandler { private string raiseCallArgument, stateId; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string strConnection = WebConfigurationMan ager.ConnectionStrings["DemoConn"].ConnectionString; SqlConnection con = new SqlConnection(strConnection) ; string strSQL = "SELECT DISTINCT * FROM tblRmStateMaster"; using (con) { con.Open(); SqlCommand objCmd = new SqlCommand(strSQL, con); SqlDataReader dtReader = objCmd.ExecuteReade r(); using (dtReader) { if (dtReader.HasRows) { ddl.DataSource = dtReader; ddl.DataTextField = "Statename"; ddl.DataValueField = "Statename"; ddl.DataBind( ); } } } } if (Request.Browser. SupportsCallback ) { string callbackRef = Page.ClientScript. GetCallbackEvent Reference(this, "document.forms[ 0].elements[ 'ddl'].value", "CallbackonClientsi de", "null"); ddl.Attributes["onChange"] = callbackRef; } } public void RaiseCallbackEvent(string raiseCallArgument) { this.raiseCallArgument = raiseCallArgument; stateId = this.raiseCallArgument; } //This method should return a string value for the Javascript method to handle public string GetCallbackResult( ) { StringBuilder returnString = new StringBuilder(); using (SqlConnection cn = new SqlConnection(ConfigurationManage r.ConnectionStrings["DemoConn"].ToString() )) { cn.Close(); cn.Open(); SqlCommand cmd1 = new SqlCommand("select * from tblRmStateMaster where Statename='" + stateId + "' ", cn); SqlDataReader dr;

    ASP.NET csharp javascript asp-net database design

  • Password clearing when page is submitted to server
    D dharanighanta

    Hi all, In my registraion page,i have to get states list based on country selection,city list based on state selection.Whenver the page is post back the password field is cleared.We are using asp.net 2.0.how to implement ajax concept for dropdownlists?Please come out me from this problem?

    ASP.NET csharp asp-net sysadmin help tutorial

  • How to save an asp.net page as html from server to local system
    D dharanighanta

    Hi, I have to save an aspx page into html page.In my asp.net page,i have two images,one map and two graphs.I am getting maps ang graphs from another page into current page and displaying using iframes.My client requirement is whenever he click the 'Save as html'in that page, the entire page has to go n save in html.Plz tell me solution for this question? Regards, sanjana

    ASP.NET question csharp html asp-net sysadmin
  • Login

  • Don't have an account? Register

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