13,153 Topics

Member Avatar for
Member Avatar for jaejoong
Member Avatar for Kratoswoo

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 …

Member Avatar for KushMishra
0
282
Member Avatar for MaddTechwf

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).

Member Avatar for MaddTechwf
0
186
Member Avatar for newbie26

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 …

Member Avatar for newbie26
0
125
Member Avatar for MaddTechwf

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 …

Member Avatar for MaddTechwf
0
294
Member Avatar for gahhon

![170635e49469dbb4197a0bcddafc866d](/attachments/large/3/170635e49469dbb4197a0bcddafc866d.jpg "170635e49469dbb4197a0bcddafc866d") 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 = …

Member Avatar for gahhon
0
134
Member Avatar for sandesh.ps.9

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 …

Member Avatar for deceptikon
0
302
Member Avatar for ugi.nagesh

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 …

0
100
Member Avatar for jatinmca

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); …

Member Avatar for Sathish_3
0
1K
Member Avatar for krunal1986

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

Member Avatar for krunal1986
0
204
Member Avatar for mysitemanager

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 …

0
68
Member Avatar for gahhon

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 …

Member Avatar for gahhon
0
1K
Member Avatar for nolife

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 :)

Member Avatar for pitic
0
253
Member Avatar for varunneetye

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 …

Member Avatar for varunneetye
0
131
Member Avatar for old_apache

for example: current url : localhost/website becoming : localhost/website/product without refreshing. Thanks in advance

Member Avatar for harsh9
0
335
Member Avatar for michael_angelo

Briefly describe the major components of the .NET Framework and describe what each component does.

Member Avatar for Uchiha Itachi
0
338
Member Avatar for old_apache

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)?

Member Avatar for pitic
0
168
Member Avatar for Yousha

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" …

Member Avatar for ryan.ally2
0
403
Member Avatar for leroy green

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 …

Member Avatar for leroy green
0
295
Member Avatar for gahhon

![454d3e17a16836952cb76f6c54023cc7](/attachments/large/3/454d3e17a16836952cb76f6c54023cc7.jpg "454d3e17a16836952cb76f6c54023cc7") 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.

Member Avatar for gahhon
0
146
Member Avatar for gahhon

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. ![36e1d0310329124ba8fce2070ac095ff](/attachments/large/3/36e1d0310329124ba8fce2070ac095ff.jpg "36e1d0310329124ba8fce2070ac095ff") The Red Cross indicates to remove while in print preview. …

Member Avatar for gahhon
0
203
Member Avatar for gahhon

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..

Member Avatar for gahhon
0
100
Member Avatar for grafic.web

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) …

0
159
Member Avatar for Mr.M

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 …

Member Avatar for pritaeas
0
4K
Member Avatar for rizwana.batool.3

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?

Member Avatar for harsh9
0
160
Member Avatar for grafic.web

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

Member Avatar for harsh9
0
376
Member Avatar for Maideen

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 …

Member Avatar for harsh9
0
280
Member Avatar for Kanshika

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 …

Member Avatar for harsh9
0
158
Member Avatar for Valentine220
Member Avatar for decade

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;

Member Avatar for JorgeM
0
175

The End.