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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
V

Vishnu Narayan Mishra

@Vishnu Narayan Mishra
About
Posts
46
Topics
30
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ModalPopupExtender confirmation not working in <asp:CommandFiel in grid view
    V Vishnu Narayan Mishra

    Hi to all forum members. I am stuck in implementing ModalPopupExtender in <asp:CommandField in grid view. Although below code is working fine in <asp:template field in grid view. <asp:TemplateField HeaderText="Delete" HeaderStyle-CssClass="tableheading" HeaderStyle-Width="70px"> <ItemTemplate> <center> <asp:ImageButton ID="imgDelete" runat="server" OnClientClick="showConfirm(this); return false;" ImageUrl="~/Images/delete.png" OnClick="imgBtnDelete_Click" /></center> </ItemTemplate> </asp:TemplateField> following is my code which I am trying to implement in <asp:CommandFiel in grid view. .aspx code Grid view code <asp:CommandField HeaderText="Edit/Delete" ItemStyle-HorizontalAlign="Center" CausesValidation="false" ShowCancelButton="true" ShowEditButton="True" ShowDeleteButton="true" /> modal popup code <ajaxToolkit:ModalPopupExtender ID="md1" runat="server" BackgroundCssClass="modalBackground" BehaviorID="mdlPopup" CancelControlID="btnNo" OkControlID="btnOk" OnCancelScript="cancelClick();" OnOkScript="okClick();" PopupControlID="Confiramtiondiv" TargetControlID="Confiramtiondiv"> </ajaxToolkit:ModalPopupExtender> <div id="Confiramtiondiv" runat="server" align="center" style="display: none"> <table id="Table3" cellpadding="1" cellspacing="1" border="0" bordercolor="blue" runat="server" align="center"> <tr> <td colspan="4" align="center"> <asp:Label ID="lblConfirmmsg" runat="server" Text="Are you sure you want to delete this Trip ?" CssClass="lblConfirmmsg"></asp:Label> </td> </tr> <tr> <td width="20%"> </td> <td width="30%"> <asp:Button ID="btnOk" runat="server" Text="Yes" CausesValidation="false" Width="50px" />

    ASP.NET css sysadmin help question

  • Problem triangular calling c#-&gt;javascript-&gt;c# on single click of search button [modified]
    V Vishnu Narayan Mishra

    Hi To all forum members, I have a search button which search records in the form, then I have to call a java script which return some values, on the base of these values I have I Have to populate Grid View. Actually when I clicked on search button I) It hits to database and takes records and II) These records are passed to java script III) Then java script returns a value location. On the base of java script values and code behind search criteria values i Have to populate grid view. I am using asp.net and c# technology. How can achieve all three steps by single click of search button. Even i am unable to populate grid on form refresh from that java script code. All three steps I have to perform in Single click on Search button. :^) I achieved this but I have to click search button twice. :((

    Vishnu Narayan Mishra Software Engineer

    modified on Thursday, January 21, 2010 1:53 AM

    ASP.NET csharp java javascript css asp-net

  • Problem in Finding Hours Duration Between two Dates
    V Vishnu Narayan Mishra

    Hi Actually Duration is coming right in this query and the issue is Net Duration is not coming right.

    Vishnu Narayan Mishra Software Engineer

    Database database help com question

  • Problem in Finding Hours Duration Between two Dates
    V Vishnu Narayan Mishra

    Hi to All Forum members I am stuck in finding duration and Net duration in the following procedure I also adding image Url for better under standing of my requirement. Please go to this Url .. http://picasaweb.google.com/lh/photo/203UnHt9l8EnouLOtIKxBg?authkey=Gv1sRgCM6puf-sutfJ2QE&feat=directlink[^] Following is my T-Sql Query... Select F.Id as [FleetID], Convert(varchar(30), F.AssignedOn, 113) as [Date], D.DepotName as [Depot], DT.DutyID as [Duty Number], IsNull(Convert(varchar(30), F.ActualOutSheddingTime, 113),'Not Assigned') as [Actual OutShedding Time], IsNull(Convert(varchar(30), F.ActualInsheddingTime, 113) ,'Not Assigned') as [Actual Inshedding Time], IsNull(CONVERT(varchar(5), DATEADD(ms, DATEDIFF(ms, F.ActualOutSheddingTime, F.ActualInsheddingTime), 0), 114) ,'00:00')as [Duration], IsNull(DT.RestHours, 00) as [ShiftChangeoverTime], IsNull(CONVERT(varchar(5), DATEADD(ms, DATEDIFF(ms, CONVERT(varchar(5), DATEADD(ms, DATEDIFF(ms, F.ActualOutSheddingTime, F.ActualInsheddingTime), 0), 114), Convert(Datetime, '00:'+ IsNull(Convert(varchar(30), DT.RestHours, 114), 30))), 0), 114),'00:00') as [Net Duration] From Fleet F Left Outer Join Duties DT on F.DutyID = DT.ID Inner Join Depot D on DT.DepotId = D.ID Inner Join Vehicles V on V.ID = F.VehicleID Welcome for your valuable suggestions. Vishnu

    Vishnu Narayan Mishra Software Engineer

    Database database help com question

  • Tree View with multiple checBoxes in each node
    V Vishnu Narayan Mishra

    Hi I already told that I did implemented this. But I have to add two more check boxes. Please visit the Url (Image) given in my post before giving me the answer. This will clear you the picture what I exactly want?

    Vishnu Narayan Mishra Software Engineer

    modified on Monday, January 4, 2010 7:57 AM

    ASP.NET csharp question asp-net com data-structures

  • Tree View with multiple checBoxes in each node
    V Vishnu Narayan Mishra

    Hello to All Forum members. I want to use a Tree view with multiple check boxes in Asp.net with c#. I used "ShowCheckBoxes" properties of tree view to display node, these node are actually modules name of the project. But I have to add two more checkboxes in each node to giving Edit and Delete Permissions of the modules. Please visit the Url for more clear of the picture. http://picasaweb.google.com/lh/photo/yfojhqq0dTeYi9oxRKcRAw?authkey=Gv1sRgCLnG4-v31czmLw&feat=directlink[^] How can I achieve this ? Please any one tell me the complete solution. Thanks in Advance.

    Vishnu Narayan Mishra Software Engineer

    ASP.NET csharp question asp-net com data-structures

  • How to Add click once feature for windows Class Library application?
    V Vishnu Narayan Mishra

    Hi to all forums members, How to Add click once feature for windows Class Library application? I have a window class library application, Is it to possible to publish the class library application through click once feature of dot net.. I have not found any options for the class library application to add auto update feature.. Or any other option any one know, pls guide me .... :((

    Vishnu Narayan Mishra Software Engineer

    Windows Forms tutorial question announcement

  • How to fires F11 key automatically [modified]
    V Vishnu Narayan Mishra

    hi Laddie Thanks to reply me, The function you told me it tells which event pressed by user but Actually I have to fires the event of key F11(Which maxmises the current window).Suppose when the user press a button then F11 key of keyboard runs automatically and maximises the cureent window, so that I can capture current window.

    Vishnu Narayan Mishra Software Engineer

    modified on Wednesday, March 19, 2008 6:31 AM

    Web Development question tutorial

  • How to fires F11 key automatically [modified]
    V Vishnu Narayan Mishra

    Hi To all forums members, I want to know that Is there is any to fires any key press event? e.g. I have to fires F11 key on a button click :^) . How can i do this? After firing the F11 key current window get automatically resize to Full screen.. I have to used it where I have to capture only the current window body not the whole screen which also includes browser menus. Thanks

    Vishnu Narayan Mishra Software Engineer

    modified on Wednesday, March 19, 2008 6:12 AM

    Web Development question tutorial

  • How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script..
    V Vishnu Narayan Mishra

    Thanks sir for guidance, I have resolved my problem following is code.. in CS file i added this line .. lstShowHistory.Attributes.Add("onchange", "ShowText();"); and by javascript I set the value of textbox, but it works only on by selecting item from mouse. How can I select value from the listbox by arrow key of keyboard?? Have you any idea... function ShowText() { var txtMessage = document.getElementById('lstShowHistory').options[document.getElementById('lstShowHistory').selectedIndex].text;//GetComboText(document.getElementById('lstShowHistory')); document.getElementById('txtUrlLink').value = txtMessage; document.getElementById('helptypediv').style.visibility='hidden';return false; }

    Vishnu Narayan Mishra Software Engineer

    Web Development csharp java asp-net tools question

  • How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script..
    V Vishnu Narayan Mishra

    How can I set TextBox value from asp.net Listbox, because I popuplate asp.net Listbox through java script.. I tried it by calling the java script function onChange(and onSelectedIndexChange) event of list box, but event is not calling java script function from here.. following is my code--

    onChange="setTextBoxValue(this.value);">

    function setTextBoxValue(e) { //var strListBoxName = document.getElementById('lstShowHistory'); document.getElementById('txtUrlLink').value = e ; //strListBoxName.options[strListBoxName.selectedIndex].text ; //;options[document.getElementById('lstShowHistory').selectedIndex].text; } the list box is popuplate on mouse over event on the text box... txtUrlLink.Attributes.Add("onfocus", "ShowList();"); function ShowList() { getCookie(); document.getElementById('helptypediv').style.visibility='visible';return false; } function getCookie() { if(document.cookie) { var strListBox = document.getElementById('lstShowHistory'); var ls1= document.cookie.split("="); if (ls1.length >1) { var ls2 = ls1[1].split("|"); var count = ls2.length; var strLink = ""; var optionItem; //Clear the previous options from the list for(var lstCount = strListBox.options.length-1; lstCount>-1; lstCount--) { strListBox.options[lstCount] = null; } if(count >= 2 ) { for(var x = count-1; x>=0; x--) { var ls3=ls2[x];//[x].split("|"); strLink+= ls3; optionItem = new Option(ls3, ls3, false, false); strListBox.options[strListBox.length] = optionItem; } } } } }

    Vishnu Narayan Mishra Software Engineer

    Web Development csharp java asp-net tools question

  • The problem during writing into an existing cookie, after re running my web application..............
    V Vishnu Narayan Mishra

    Hi could'nt understand your solution, my questions is so simple, can u try to straight answer my question..

    Vishnu Narayan Mishra Software Engineer

    Web Development help question

  • The problem during writing into an existing cookie, after re running my web application.......
    V Vishnu Narayan Mishra

    The problem during writing into an existing cookie, after re running my web application hi to all forums members can any one tell me what is error in mine code, It create every time a new cookie, but i have to write into existing cookie. When i close my web application and re running my web application and, adding values into cookies it creates new cookies... why I m unable to understand.... following is my code... protected void btnAddCokkie_Click(object sender, EventArgs e) { CreateAndAddCookiesValue(); } private void CreateAndAddCookiesValue() { //Response.Cookies.Remove("ShowHistoryCookie"); if (Request.Browser.Cookies == true) { // Check the cookie Mycookie exist or not if (Request.Cookies["ShowHistoryCookie"] == null) { // If does Mycookie does not exist then create the cookie HttpCookie aShowHistoryCookie = new HttpCookie("ShowHistoryCookie"); Response.Cookies.Add(aShowHistoryCookie); // set expires to the datetime maxvalue Response.Cookies["ShowHistoryCookie"].Expires = DateTime.Now.AddMonths(1); //Response.Cookies["ShowHistoryCookie"].Expires = DateTime.MaxValue; //DateTime.Now.AddMonths(1) Response.Cookies["ShowHistoryCookie"]["URL"] += txtUrlLink.Text; } //Append UrlLink into existing cookie else { string strCookie = Request.Cookies["ShowHistoryCookie"]["URL"].ToString(); string strCook = strCookie; strCookie += "|" + txtUrlLink.Text; char[] splitter = { '|' }; string[] arInfo = new string[10]; arInfo = strCook.Split(splitter); int count = arInfo.Length; int intResult=-1; bool flag = false; //count to Restrict cookie to Store 10 UrlLink if (count <10) { //check to ensure that no duplicacy in UrlLink of cookies foreach (string str in arInfo) { intResult = str.CompareTo(txtUrlLink.Text); if (intResult == 0) { flag = true; break; } } i

    ASP.NET help question

  • The problem during writing into an existing cookie, after re running my web application..............
    V Vishnu Narayan Mishra

    The problem during writing into an existing cookie, after re running my web application hi to all forums members can any one tell me what is error in mine code, It create every time a new cookie, but i have to write into existing cookie. When i close my web application and re running my web application and, adding values into cookies it creates new cookies... why I m unable to understand.... following is my code... protected void btnAddCokkie_Click(object sender, EventArgs e) { CreateAndAddCookiesValue(); } private void CreateAndAddCookiesValue() { //Response.Cookies.Remove("ShowHistoryCookie"); if (Request.Browser.Cookies == true) { // Check the cookie Mycookie exist or not if (Request.Cookies["ShowHistoryCookie"] == null) { // If does Mycookie does not exist then create the cookie HttpCookie aShowHistoryCookie = new HttpCookie("ShowHistoryCookie"); Response.Cookies.Add(aShowHistoryCookie); // set expires to the datetime maxvalue Response.Cookies["ShowHistoryCookie"].Expires = DateTime.Now.AddMonths(1); //Response.Cookies["ShowHistoryCookie"].Expires = DateTime.MaxValue; //DateTime.Now.AddMonths(1) Response.Cookies["ShowHistoryCookie"]["URL"] += txtUrlLink.Text; } //Append UrlLink into existing cookie else { string strCookie = Request.Cookies["ShowHistoryCookie"]["URL"].ToString(); string strCook = strCookie; strCookie += "|" + txtUrlLink.Text; char[] splitter = { '|' }; string[] arInfo = new string[10]; arInfo = strCook.Split(splitter); int count = arInfo.Length; int intResult=-1; bool flag = false; //count to Restrict cookie to Store 10 UrlLink if (count <10) { //check to ensure that no duplicacy in UrlLink of cookies foreach (string str in arInfo) { intResult = str.CompareTo(txtUrlLink.Text); if (intResult == 0) { flag = true; break; } } i

    Web Development help question

  • How to show list of url like google seach page in my application
    V Vishnu Narayan Mishra

    Hello sir Thanks to reply me, my problem is slightly different... I have to store informations in a cookie. The information come from a text box, when the user input any thing in text box, then value of a text box saved in a cookies. Suppose user input any Url Name like yahoomail.com, then information will store in a cookie also check the condition in cookie that the recent ten Url's are only stored in cookies, means that if Url exceeds the limit of ten, then oldest will delete from the cookkie and new one will added into the cookie.. All the values stored in the cookies I have to display below in the text box in a list(just like website of goggle, when the user start typing in goggle search page the a list shows the all the typed text by the user.. Which controls is better to display the cookies values in list..? I am tried it by Asp.Net list box control but looks are not good I want to show like a list show goggle search page. I am stuck to store multiples values into cookies because it overwrites the previous value into the cookie. Following is my code of cs file protected void btnAddCokkie_Click(object sender, EventArgs e) { CreateAndAddCookiesValue(); } private void CreateAndAddCookiesValue() { //Response.Cookies.Remove("ShowHistoryCookie"); if (Request.Browser.Cookies == true) { // Check the cookie Mycookie exist or not if (Request.Cookies["ShowHistoryCookie"] == null) { // If does Mycookie does not exist then // create the cookie HttpCookie ShowHistoryCookie = new HttpCookie("ShowHistoryCookie"); Response.Cookies.Add(ShowHistoryCookie); //Setting cookies values //The below ten line return value //ShowHistoryCookie=Url1=http://www.yahoo.com&Url2=&Url3=&Url4=&Url5=&Url6=&Url7=&Url8=&Url9=&Url10= Response.Cookies["ShowHistoryCookie"]["Url1"] = ""; Response.Cookies["ShowHistoryCookie"]["Url2"] = ""; Response.Cookies["ShowHistoryCookie"]["Url3"] = ""; Response.Cookies["ShowHistoryCookie"]["Url4"] = ""; Response.Cookies["ShowHistoryCookie"]["Url5"] = ""; Response.Cookies["ShowHistoryCookie"]["Url6"] = ""; Response.Cookies["ShowHistoryCookie"]["Url7"] = ""; Response.Cookies["ShowHistoryCookie"]["Url8"] = ""; Response.Cookies["Show

    Web Development help csharp asp-net com tutorial

  • can we set value of a text box from selection of items from the listbox by javascript
    V Vishnu Narayan Mishra

    Hi all, How can I set value of a text box from selection of items from the asp listbox or we can use any html control by javascript, since selectedIndex not working for the list box.. following is the code... ]]> State Management function ShowList() { document.getElementById('helptypediv').style.visibility='visible';return false; } function HideList() { document.getElementById('helptypediv').style.visibility='hidden';return false; } function ShowText() { var txtMessage = document.getElementById('lstShowHistory').options[selectedIndex].text; //Not Woking selectedIndex here document.getElementById('txtUrlLink').value = txtMessage; document.getElementById('helptypediv').style.visibility='hidden';return false; }

    <

    Url Name 1 Url Name 2 Url Name 3 <%-- Url Name 1 Url Name 2 Url Name 3 --%>

    ASP.NET javascript html question

  • How to store information input by user in a Textbox through cookies/javascript/Ajax in and displayed it in a Listbox when onfocus() event of Textbox?
    V Vishnu Narayan Mishra

    How to store information input by user in a Textbox through cookies/javascript/Ajax in and displayed it in a Listbox when onfocus() event of Textbox? Hi all, I am phrasing my problem in new way.... becoz there is a confusion in this article... basically I have to save last ten URL address / or you can say any last ten text input by the user in a text box..in cookies, and when user want to type again, last ten URL address / or any input supplied by the user is displayed in listbox type of control.. on textbox foucs event

    Vishnu Narayan Mishra Software Engineer

    ASP.NET javascript help tutorial question

  • How to maintain history of last ten visited page in textbox
    V Vishnu Narayan Mishra

    How to maintain history of last ten visited page in textbox? Hi all, can any one try to solve the problem How to maintain history of last ten visited page or any text the user input in a textbox.. I have to show last ten visited pages history on a textbox, when user try ot enter any new input that textbox. How it is to be done.. It displays visited pages like a listbox on mouseover on that text box.. Is there is any way to done this by java script or ajax can any one help me .....

    Vishnu Narayan Mishra Software Engineer

    ASP.NET help java tools tutorial question

  • The main Issue on Browse folder in Web application
    V Vishnu Narayan Mishra

    What are those permission security issues..?? How can I Trace out problem.??

    Vishnu Narayan Mishra Software Engineer

    ASP.NET help sysadmin

  • The main Issue on Browse folder in Web application
    V Vishnu Narayan Mishra

    Hello everyone I want to phrase my problem in a new way that the following code works well on the same system on debugging mode of the project but If I want to copy the url of the project and paste into new browser window without debugging mode, then the problem arises that Its shows progressing the browse folder dialog box does not appears any how. So If any one have the solution of my problem please reply me soon.... I written earlier on this topic shown below... --------------- I am facing a problem of browse folder. Its working fine on loacalhost but when I upload my project into my client's server, the browse folder dialog box does not appears any how. It giving no error but browser progress bar shows progressing.... Is the reason behind this is I have used Shell32.dll for browse folder.. Or there is another way of implementing browse folder functionality on my project.. Thanks following is mine code ------------------------------------------------------- Using shell32; protected void AddFolder_Click(object sender, EventArgs e) { string strPath = ""; string strCaption = "Browse a directory for uploading Album."; //DialogResult dlgResult; string dlgResult = ""; Shell32.ShellClass shl = new Shell32.ShellClass(); Shell32.Folder2 fld = (Shell32.Folder2)shl.BrowseForFolder(0, strCaption, 0, System.Reflection.Missing.Value); if (fld == null) { dlgResult = "Cancel";//DialogResult.Cancel; } else { strPath = fld.Self.Path; lstboxFile.Items.Add(strPath); //strPath = "albums\\MSN Home Page"; lstboxFile.Items.Add(strPath); BaydonConstants.hif1.Add(strPath); dlgResult = "Ok";//DialogResult.OK; } } ------------------------------------------------------- Vishnu Narayan Mishra Software Engineer

    modified on Monday, December 17, 2007 7:16:26 AM

    ASP.NET help 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