12,085 Topics

Member Avatar for
Member Avatar for laura301019

I keep receiving this error and I'm unsure how to fix it. The code I have is protected void AddUserToDatabase(String username, String Password, String Email) { OleDbConnection conn; OleDbCommand cmd; using (conn = new OleDbConnection(ConfigurationManager.ConnectionStrings["ProjectDatabaseConnectionString"].ConnectionString)) { using (cmd = conn.CreateCommand()) { cmd.CommandText = "INSERT INTO Users(username, password, emailAddress) VALUES(@username, @password, …

Member Avatar for aneri28
0
398
Member Avatar for RinzLove

Hi all, I'm new to SiteFinity Thunder and wanna know how to use it in my current asp.net c# mvc project. I wanna use custom layout for my homepage using Sitefinity Thunder. Currently I've made registration/logiege

0
59
Member Avatar for venkates.99

1)On receipt of the signed MSA back from the customer, the original should be sent to the legal representative and a controlled copy should be sent to the TM/Account Manager by ___________. B D M DM 2)Runtime Profiling is used by which category of users? Developers and System Administrators Configuration …

Member Avatar for deceptikon
-1
476
Member Avatar for laura301019

Hi I am new to using Microsoft Access as a database for Visual Studio (previously I used SQL Server) so I am unsure how to go about the usual tasks such as accessing the database. At the minute I am trying to write code to check if a username already …

Member Avatar for kvprajapati
0
148
Member Avatar for venkates.99

Hi, Im trying to download zip files from Artifactory, I have used webclient, it is working fine from my system which is well connected to internet. but when try from some lab network(intranet), its not wokring fine. some times it gets stopped in the middle. So what is the best …

Member Avatar for Ketsuekiame
0
298
Member Avatar for laura301019

Hi, I have a gridview that takes information from a MS Access database. The gridview is populated with information that is inserted into the database via a form. I would like to give the user the option to edit the row's if there is a mistake or something needs to …

Member Avatar for newbie26
0
155
Member Avatar for Ranjitrathod15

Hi...i want use alert message in code behind....but i dont to fire this message on button click ...i want that this alert message display base on some if condition....can any one help me with example??

Member Avatar for newbie26
0
178
Member Avatar for Yogesh_5
Member Avatar for Yogesh_5
0
215
Member Avatar for Anson.tay3

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; namespace Practical1 { public partial class Exercise1 : System.Web.UI.Page { string cs = Global.CS; protected void Page_Load(object sender, EventArgs e) { } protected void btnSubmit_Click(object sender, EventArgs e) { if (Page.IsValid) { string user = txtUser.Text; …

Member Avatar for Ranjitrathod15
0
604
Member Avatar for mherz

Hi! Iam new with this, and trying to explore and understand the ASP.NET C#. I got a little bit problem regarding control statement specifically using the if statement. What I really wanted is to have two options in navigating windows page. For example, if the other column name "Remarks" is …

Member Avatar for JorgeM
0
280
Member Avatar for lm111

I am having problems displaying a map. Data in ListView is showing on the page but the map is missing. I would appreciate some help. Here is what I have so far: The following pieces of code are in MyDirectory.Master page: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> function init_map(map_canvas_id, lat, lng, zoomLevel, markers) …

Member Avatar for lm111
0
329
Member Avatar for aldm

Hi to all, I have a problem with ASP.NET in Visual Studio. I made a page that is organised as a table (one part for links, one for content...). How can I select button that is nested in table (in table cell) in Visual Studio in a design view.? Always …

Member Avatar for JorgeM
0
260
Member Avatar for kavitha N

Hi All, I have a aspx page with few controls. When i am using reset button to reset the form its working fine before saving, its notworking after save the form. Can you help me on this. i used OnClientClick="document.location.href=document.location.href;" for the Reset Button. Thanks in advance.

Member Avatar for JorgeM
0
155
Member Avatar for sarikahit

Hi Everyone I am developing a website. In that i used Gridview with a lot number of column with header text manually using boundfield.I put the Horizontal and Vertical scrollbar using css code. But I would like constant header when i scroll vertically but the header will be scroll horizontally …

Member Avatar for KolkataAloy
0
365
Member Avatar for yaser.jaradeh

Hello Guys i'm trying to stream a webcam feed using C# i searched on the web and didn't find a standard RTP library for dotNet so my question is: is C# the way to go or i should use Silvelight or Flash ... PS. i want the stream to be …

Member Avatar for Ketsuekiame
0
123
Member Avatar for gahhon

public class PrintHelper { public PrintHelper() { } public static void PrintWebControl(Control ctrl, string Header, string Date) { Label lblHeader = new Label(); lblHeader.Text = "MSJ Bank Financial - " + Header + " (" + Date + ")<br/><hr/><br/>"; PrintWebControl(ctrl, lblHeader, string.Empty); } //Print Method public static void PrintWebControl(Control ctrl, …

Member Avatar for gahhon
0
133
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
280
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
121
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
291
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
132
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
289
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
98
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
197
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
65
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
250
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
129
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
330

The End.