13,153 Topics
![]() | |
Please help me why do I get this error. Thank you! | |
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { DataContext db = new DataContext(); using (var SI = new DataContext()) { var search = (from l in SI.**** orderby l.*** descending where l.**** == l.**** select l).First(); Session["ID"] = search.***; Response.Redirect("http://localhost:63558/****.aspx"); } } So here I have it so when I hit … | |
I've never worked with the Select, Delete, Update functions in a GridView before. I only want to use the Delete function, which I currently only have setup. I have the following information being show in my gridview: degree, institution, graduation date, dissertation, id(hidden). | |
hey .. i have a gridview and i set allowpaging=true. in the first column, i have a check box for choosing items..when i click on the second page of the gridview, and click a button for update, it doesn't recognize the changes i made in the previous record on the … | |
I've successfully gotten authentication to work on my web application using LDAP. So nothing is technically wrong with my login. What I'm having trouble with is once I have verified that a user is in active directory, I need to check a database to see if they have an account … | |
 public static void Print(string ElementID, string SecondElementID) { Page page = HttpContext.Current.CurrentHandler as Page; StringBuilder sb = new StringBuilder(); sb.Append("<script type = 'text/javascript'>"); sb.Append("var divID_1 = document.getElementById('" + ElementID + "');"); sb.Append("var divID_2 = document.getElementById('" + SecondElementID + "');"); sb.Append("divID_1.border = 0;"); sb.Append("divID_2.border = 0;"); sb.Append("var prtwin = … | |
I'm developing an application in which i want the software to be executed at any place. So i want the database to be placed in one computer. This is the scenario. All the computers will be networked. Can i do this in c#.net ? Please tell me the procedures. Thank … | |
Hi Team, Could any one help on setting the date formats We have the web application developed in c#. how to make sure that aplication should use the server regional settings like date formats etc.. irrespective of the client regional settings. Examole: if the server regional settings - date format … | |
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateTime(); } } protected void Timer1_Tick(object sender, EventArgs e) { UpdateTime(); } public void UpdateTime() { try { int hour = 00, min = 00, sec = Int32.Parse(Session["tleft"].ToString()); // min = Int32.Parse(Session["tleft"].ToString()) / TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec); … | |
Hello All, i want to embed a vimeo video on my site. how can i do it? any code or reference links will be appreciated.. thanks, kk | |
For several years we've been offering a low cost web-based site builder and CMS for small businesses so they can manage their websites online with no programming knowledge. We've been using a custom built classic ASP back end for a long time and it's in serious need of an upgrade … | |
protected void Page_Load(object sender, EventArgs e) { if (CookieWrapper.Username != null && CookieWrapper.Role == "Member") { hlUsername.Text = CookieWrapper.Username; showProfilePicture(); } else Response.Redirect("~/ErrorPages/401.aspx"); } In this master page Page_Load event i will check whether the cookies values, if false will redirect to the error page. So another words, my child … | |
hi everbody, i search how i can make the same login page as https://www.tumblr.com/ if some have any idea think's for your helping :) | |
hello i am using asp.net Label2.Text = "https://maps.google.mu/maps?ie=UTF-8&q=Super+U&fb=1&gl=mu&hq=super+u&hnear=0x217dab7739bd6edb:0xb470aaccbadadf71,Grand+Baie&cid=0,0,9595546268857988711&ei=v52LUsfpGofKrAfq84CAAg&ved=0CKwBEPwSMA8" End While Response.Redirect("http://localhost:9333/ozeki?action=sendMessage&login=admin&password=abc123&recepient=" + num + "&messageData=" + "Address :=" + "%20" + Label1.Text + Label2.Text) i have to send message to ozeki virtual phone everything is working fine but there is one problem. when label2 display the message on ozeki virtual … | |
for example: current url : localhost/website becoming : localhost/website/product without refreshing. Thanks in advance | |
Briefly describe the major components of the .NET Framework and describe what each component does. | |
Hi I have a partial view, where my partial view will be called from Menu. When i call it, do server send only the partial view, or send all view (header, menus, footer)? | |
Plz Help me I'm creating a form-View in asp.net 2010 and successfully upload all my data on the Form View but my problem arise when i edit the data in the form, it does not update the data. Following is my code. <%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" … | |
Hey all, this is kind of a 3 part question/request. I have a contact form where I want online users to fill in their name, email and message and press submit to send that information to the site admin. I want to do 3 things with this. 1) I want … | |
 I am trying to create a form something like this, but inside the box container i will let the end-users to do the survery. How to do this? Thanks for in advanced. | |
Any guidelines that able to print customize a page with custom header and data passing? I found a solution, but that is print the repeater/gridview without customize the page.. What i need is print a page with customization.  The Red Cross indicates to remove while in print preview. … | |
ValidationExpression="^.*(?=.{7,})(?=.[a-zA-Z])(?=.*[\d])(?=.*[\W]).*$" This is the expression for the password, 1. At Least 7 2. Alphanumeric required 3. Special Characters But can i check the textbox must not be empty other than using RequireFieldValidator.. Due to i going to apply Ajax ValidatorCallOutExtender, is hardly to display both validator.. | |
Hi there, this is the code of my contactcontroller.cs : using ContactMvc.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace ContactMvc.Controllers { public class ContactController : Controller { // // GET: /Contact/ [HttpGet] public ActionResult Index() { return View(new ContactMessage()); } [HttpPost] [ValidateAntiForgeryToken] public ActionResult Index(ContactMessage post) … | |
Hi DW I've created a website in Visual Studio under the VB.NET and I tried to publish the website to my wamp server on my computer but when I try to access my website via webbrowser it shows something like index of/ then list all my web files it does … | |
i am in bs(It) and now i am intersted in making my final project in asp.net any one can help me which would be best? | |
Hi there, what the best way to add a layout, simply to manage, to my web site asp.net? Are masterpages the best solution? Can i get some example of simple editable layout? Thanks for you help | |
Error occured: Procedure .. has too many argument specified I have an issue that when i Update the record there is error "Error occured: Procedure .. has too many argument specified". It is my Store procedure SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Procedure [dbo].[web_usp_empData_Update] @id bigint, @Code … | |
hi, I have created a form (in ASP.NET and C#) which have 5 dropdown 1.3rd dropdown fill on the basis of 1st n 2nd dropdown value 2.5th dropdown fill on the basis of 4th dropdown value I applied onselectedindexchanged event on 2nd and 4th dropdown and both are autopostback true.All … | |
Hi everyone, I'm a newbie in VB.net I would like to ask if there is a code or equivalent code or script like $_SESSION variable of PHP in VB.Net Thanks; |
The End.