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
V

VijayVishwakarma

@VijayVishwakarma
About
Posts
96
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP.NET configuration - setting up custom membership
    V VijayVishwakarma

    Connectionstring is missing Trusted User=True or say user id and password to login to sql server. Give a try by adding this.

    Vijay V. Yash Softech

    ASP.NET database csharp asp-net security workspace

  • Help with urlrewriting.net
    V VijayVishwakarma

    Hi, I am working with asp.net multilingual project. I am using the following code to change the culture. a button to call the even //change the language as user selected protected void RequestLanguageChange_Click(object sender, EventArgs e) { if (Session["isError"] == null) { LinkButton senderLink = sender as LinkButton; //store requested language as new culture in the session Session["LanguagePreference"] = senderLink.CommandArgument; //reload last requested page with new culture Server.Transfer(Request.Path); } } then in my base page class I am initializing the culture as requested by first. protected override void InitializeCulture() { //retrieve culture information from session //string culture = Convert.ToString(Session[Global.SESSION_KEY_CULTURE]); string culture = Convert.ToString(Session["LanguagePreference"]); //check whether a culture is stored in the session if (culture.Length > 0) Culture = culture; //set culture to current thread Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(culture); Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture); Session["LanguagePreference"] = culture; //call base class base.InitializeCulture(); } Now I am trying to use urlrewrite here for which I have added reference and defined the regex too. The problem is when I change the language when on a urlrewritten page, when doing Server.Transfer(Request.Path); it takes the url of the path but I need the original url for changing the language. Any suggestions how I can get the original path(url) for that. Thanks

    Vijay V. Yash Softech

    ASP.NET help csharp asp-net sysadmin regex

  • WPF browser application on MAC browsers
    V VijayVishwakarma

    Hi, Just started with my first WPF web browser application. Can any one tell me if WPF browser applications will run on MAC browsers ? I am looking to create a website in WPF, just wanted to make sure the cross os browsers compatibility... A newbie with WPF... Regards

    Vijay V. Yash Softech

    WPF csharp wpf question

  • static public functions : asp.net c#
    V VijayVishwakarma

    Thanks a lot....

    Vijay V. Yash Softech

    ASP.NET csharp asp-net database

  • static public functions : asp.net c#
    V VijayVishwakarma

    Thanks ViNic for your reply....... Can u focus on the following code is this one is correct? BinaryTree.cs file inside appcode public class BinaryTree { public static ArrayList dlist = new ArrayList(); public static void FetchDownlineID(long uid) { BinaryTree bt = new BinaryTree(); bt = BinaryTree.fetchIdInfo(uid);//fetches user info if (bt.Aid > 0) { dlist.Add(bt.Aid); BinaryTree.FetchDownlineID(bt.Aid); } if (bt.Bid > 0) { dlist.Add(bt.Bid); BinaryTree.FetchDownlineID(bt.Bid); } if (bt.Cid > 0) { dlist.Add(bt.Cid); BinaryTree.FetchDownlineID(bt.Cid); } } } now this function is called on pageload as user's open page & result is bind to gridview... as follows---------- public partial class User_DownlineLists : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { bindGridView(); } protected void bindGridView() { if (Session["User"] != null) { long id = UserDetails.FetchUserId(Session["User"].ToString()); BinaryTree.dlist.Clear(); BinaryTree.FetchDownlineID(id); Sort();//this function sort list datewise GridView1.DataSource = BinaryTree.dlist; GridView1.DataBind(); } else { Response.Redirect("~/Home.aspx"); } } }

    Vijay V. Yash Softech

    ASP.NET csharp asp-net database

  • static public functions : asp.net c#
    V VijayVishwakarma

    I wanted to know the disadvantages of this approach when say there are some 1000 call at a time for this function.

    Vijay V. Yash Softech

    ASP.NET csharp asp-net database

  • GridView_RowCreated event handler is not working on GridView_PageIndexChanging
    V VijayVishwakarma

    can you tell me if your gridview is in content placeholder? If yes, Check the page source to find the id of the gridview. If u are using content placeholder, then the id of the gridview will change to ctl_01_gridview or something. So the javascript is not able to find the gridview. Check this first.

    Vijay V. Yash Softech

    ASP.NET java javascript tools help

  • static public functions : asp.net c#
    V VijayVishwakarma

    Hi, I have a class file: dbtest and a have create a static public function that returns values from database. Since its an static public function so i can access it as dbsale.function(). Now I wanted to know the disadvantages of this approach when say there are some 1000 call at a time for this function. I have searched a lot and found examples of using static public functions but no where I found it to be used for calling a database operation. Thanks in advance. Regards

    Vijay V. Yash Softech

    ASP.NET csharp asp-net database

  • How to remove assciation of .Net 2008 Web page application from VSS
    V VijayVishwakarma

    Hi, Deleting all the VSS files removes the bindings. Alternatively you can login to VSS and then change the bindings, it will then remove the bindings. Regards

    Vijay V. Yash Softech

    ASP.NET

  • ASP.NET sqldependency
    V VijayVishwakarma

    Hi, Can anyone give me url of asp.net sqldependency example? Tried google but not found any good article. Regards

    Vijay V. Yash Softech

    ASP.NET

  • Gridview with paging find all records
    V VijayVishwakarma

    Thanks

    Vijay V. Yash Softech

    ASP.NET tutorial

  • Gridview with paging find all records
    V VijayVishwakarma

    Thanks for the link. I do care for that, but it is the requirement. Its the admin of the site where site admin wants to see all the values. I am worried about the performance since I m expecting more than 100,000 users on the site at a time, need to write a perfect caching code and work out with performances. This count will go above 100,000 in 3-4 days. Regards

    Vijay V. Yash Softech

    ASP.NET tutorial

  • Gridview with paging find all records
    V VijayVishwakarma

    Hi, I am using a gridview(paging enabled with some 80,000 records, page size 1000 records) with selectallpages & deselectallpages. Selectallpages and deselect is working fine with me, after selecting all the pages record using a checkbox, I need to find the values in the rows having checkbox checked. But I m able to find only records on the selected page, not able to retrieve values from other pages. Selectallpages is working, I can see that by going through pages. I tried looping through gridview rows but its gives values only of current page. Any suggestion how to retrieve all the values(80k records). Regards

    Vijay V. Yash Softech

    ASP.NET tutorial

  • hotmail address book import.
    V VijayVishwakarma

    Hi, I m trying to retrieve address book of hotmail using the api. I m getting error 404. Can any one help me out with this? here is my class file public class LiveExtract : IMailContactExtract { #region IMailContactExtract Members public bool Extract( NetworkCredential credential, out MailContactList list ) { list = new MailContactList(); bool result = false; try { TicketAcquirer ticketAcquirer = new TicketAcquirer(); string ticket = ticketAcquirer.GetTicket( credential ); if ( string.IsNullOrEmpty( ticket ) ) { return false; } UriBuilder urib = new UriBuilder(); urib.Scheme = "HTTPS"; urib.Path = string.Format( "/{0}/LiveContacts", credential.UserName ); urib.Host = "cumulus.services.live.com"; //urib.Host = "hotmail.com"; //urib.Host = "login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1235053953&rver=5.5.4177.0&wp=MBI&wreply=http://mail.live.com/default.aspx&lc=1033&id=64855&mkt=en-US"; urib.Port = 443; HttpWebRequest request = ( HttpWebRequest ) WebRequest.Create( urib.Uri ); string authHeader = string.Format( "WLID1.0 t=\"{0}\"", ticket ); request.Headers.Add( "Authorization", authHeader ); WebResponse response = request.GetResponse(); if ( response.ContentLength != 0 ) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load( response.GetResponseStream() ); XmlNodeList contacts = xmlDocument.SelectNodes( "/LiveContacts/Contacts/Contact" ); foreach ( XmlNode node in contacts ) { //XmlNode firstName = node.SelectSingleNode( "Profiles/Personal/FirstName" ); //XmlNode lastName = node.SelectSingleNode( "Profiles/Personal/LastName" ); //XmlNode firstMail = node.SelectSingleNode( "Emails/Email/Address" ); //MailContact mailContact = new MailContact(); //mailContact.Name = string.Format( "{0} {1}", firstName.InnerText, lastName.InnerText ); //mailContact.Email = firstMail.InnerText; //list.Add( mailCo

    ASP.NET help com security json question

  • change culture problem
    V VijayVishwakarma

    Hi, I am working with an multilingual site. The main language of site is english and the second language is chinese. I am keeping the culture in session.A user changes the culture using the link buttons provided. Now my problem is that when after changing the culture if user presses the browsers back button, the culture changed to old culture. First the culture was in english, changed to chinese and press back button the culture changes to english again but it is supposed to be in chinese. Any suggestion how to maintain culture ? I m not using profiles. Regards

    Vijay V. Yash Softech

    ASP.NET help tutorial question

  • UPLOAD IMAGE
    V VijayVishwakarma

    check this codes http://www.codeproject.com/KB/aspnet/generate_thumbnail.aspx[^] http://www.csharp-station.com/Articles/Thumbnails.aspx[^]

    Vijay V. Yash Softech

    ASP.NET

  • Tree view control
    V VijayVishwakarma

    try this for your solutions I hope it works for u. protected void Node_Populate(object sender, System.Web.UI.WebControls.TreeNodeEventArgs e) { if (e.Node.ChildNodes.Count == 0) { switch (e.Node.Depth) { case 0: function(e.Node); //here u can get the node value break; } } }

    Vijay V. Yash Softech

    ASP.NET html sysadmin data-structures xml question

  • asp.net html emails problem.
    V VijayVishwakarma

    Any suggestions???

    Vijay V. Yash Softech

    ASP.NET help csharp html asp-net sysadmin

  • asp.net html emails problem.
    V VijayVishwakarma

    Hi, I m trying to send html emails to subscribed users. The emails images are on my server, path is set,email format is set to html emails, I can check html preview by debugging the emails seems to be perfect but in Inbox of gmail,hotmail or any other mailing service the images are not being displayed even after selecting show all images. Dont know where I m going wrong. Can any one please help me out? Its badly needed. Thanks in advance.

    Vijay V. Yash Softech

    ASP.NET help csharp html asp-net sysadmin

  • Multilingual website with same inventory.
    V VijayVishwakarma

    Thanks for the reply. I tried to work out with multiple languages using global and local resources it worked for me but I m really confused with handling the database. Can you please guide me to any reference? I really need it badly.

    Vijay V. Yash Softech

    ASP.NET tutorial help question announcement
  • Login

  • Don't have an account? Register

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