12,085 Topics

Member Avatar for
Member Avatar for asardeen

I want to display username in the top of all page. Below is my code . protected void Page_Load(object sender, EventArgs e) { } protected void btnLogin_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString); con.Open(); SqlCommand cmd = new SqlCommand("select * from Userman where Username =@username and Password=@password", …

Member Avatar for ExpertMind
0
182
Member Avatar for Chem_1
Member Avatar for ExpertMind
0
143
Member Avatar for fedaa91

hello , i have this problem i cant figure if it from the gloable resources or in the event itself, so i am using 2 languages in my website's pages, one language which is not the defualt is working very well ,but the english language mode it isnt , so …

Member Avatar for fedaa91
0
235
Member Avatar for ShadyTyrant

I know this is kind of a noob question but I have been given a project where I am not allowed to use scaffolding. I didnt auto generate this code but the form is being auto generated by this code. <div class="row"> @Html.LabelFor(model => model.FirstName, "First Name") @Html.TextBoxFor(model => model.FirstName) …

Member Avatar for PoorRogue
0
116
Member Avatar for vuyiswamb

Good Day All i have an asp.net 4.5 application. i have hosted it on IIS 7.5 in Windows Server 2008. My application has different folders within it and some are for JS and some are for CSS and etc.. and they are inside a directory named "Shared" in my problem …

Member Avatar for JorgeM
0
954
Member Avatar for PsychicTide

Hello fellow daniwebians, I'm attempting to wrap up an asp.net/c# eCommerce website recently created (recently discussed in many of my posts). I'm now trying to transfer the finished product from my local development environment to a remote host. I can publish the files fine, I can reset the connection-strings as …

Member Avatar for PsychicTide
0
653
Member Avatar for Sizwe_1
Member Avatar for JorgeM
0
215
Member Avatar for Maideen

Hi I encounter the above error message while executing import excel data into sql data table. It worked fine in Mssql 2005 x86 and MS Office 2007 x86. But currently we upgraded the system to MSSql 2012 x64 and MS Office 2010 x86. I downloaded the accessdatabaseEngine.exe for MSoffice 2010 …

Member Avatar for Hamza Saleem
0
204
Member Avatar for Maideen

Hi I have an issue when generate class file, error "Input string was not in a correct format" Pls advice me Thank you Maideen It is my class.vb file Public Function loaddata(inID As Integer, inname As String, inaddress As String, intel As String, infax As String, inemail As String, inregno …

Member Avatar for ashishggits
0
650
Member Avatar for Jack_9

Is ASP.NET a good language to know for web development, if you don't use and .NET laguages. I understand that you can use c# with it to develop web apps, but I can already do everything I need and more in a webapp with python and sometimes ruby.

Member Avatar for geniusvishal
0
333
Member Avatar for wazz

i'm using the event below to change a default error message. so far i'm only using DuplicateUserName. my concern is the rest of the cases. i commented them all out so the errors would bubble up properly, then i uncommented them. i'm not sure what to do with them. leave …

Member Avatar for pritaeas
0
238
Member Avatar for sujay anand

I have insert gridview datas into database using checkbox checked. My prob is when datas present in database checkbox should be checked. DataTable dt = new DataTable(); dt.Columns.AddRange(new DataColumn[2] { new DataColumn("adminname"), new DataColumn("projectname") }); for (int i = 0; i <= GridView1.Rows.Count - 1; i++) { GridViewRow row = …

Member Avatar for EddyC27
0
127
Member Avatar for saineshwar

I have a checkbox column, which has a OnCheckedChanged event. To avoid postbacks I have placed the checkbox control in UpdatePanel but still it is postbacking When i execute run the page, i see the postback is still happening. I dont know whats wrong with my code. <asp:TemplateField> <ItemTemplate> <asp:Literal …

Member Avatar for EddyC27
0
799
Member Avatar for sarvesh_1

Hi all, I need to change label text dynamically for two operations on webpage in asp.net. First,when file uploading is completed label should show 'upload completed'. After that it will perform validation process and later will show the message 'validation complete'. I have two methods that will be called one …

Member Avatar for EddyC27
0
424
Member Avatar for asardeen

I want to export the excel data and show it in gridview. And I want to update the existing table i sql using Gridview data Below is my code for exporting from Excel protected void btnUpload_Click(object sender, EventArgs e) { //Coneection String by default empty string ConStr = ""; //Extantion …

Member Avatar for EddyC27
0
146
Member Avatar for Sizwe_1

i keep get this error i dont what to do anymore Year, Month, and Day parameters describe an un-representable DateTime.

Member Avatar for pritaeas
0
69
Member Avatar for morfious90

What salary Should I expect in New Delhi as Fresher ASP.NET web developer .net developer,in small company. I'm BCA and GNIIT(2 years software engineering diploma)?

Member Avatar for janeleonard
0
404
Member Avatar for Sumith Asanka

Dear All Statement 1 doesn't get its new value it retrives the existing value only i want it to get new value i am entering on RowUpdating event TextBox mytext = ((TextBox)DgridComminv.Rows[DgridComminv.EditIndex].Cells[7].Controls[0]); string a = mytext.Text;

Member Avatar for AleMonteiro
0
149
Member Avatar for Blueie

Hello I have compiled a simple 'new user' form and now wish to upload it using FileZilla and view it on my site. As other files occupied the root of the server, I was informed that one way to overcome that issue was for my hosting service to create a …

Member Avatar for Blueie
0
139
Member Avatar for Sizwe_1
Member Avatar for hericles
0
98
Member Avatar for adrian.mcguinness

I have a connection in a DAL to SQL server. Using this connection I am trying to read the query. I have tried using ExecuteReader() and ExecutreNonQuery() with no luck. Here is my code: private void button1_Click(object sender, EventArgs e) { try{ var cn = new Connection_Handler(); string input = …

Member Avatar for adrian.mcguinness
0
276
Member Avatar for asardeen

Below is my registration page and it is allowing duplicate values in the DB. Could you please help me where am going wrong private void ExecuteInsert(string UserName, string Password) { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString); string sql = "INSERT INTO UserMan (UserName, Password) VALUES " + " (@UserName,@Password)"; try { …

Member Avatar for pritaeas
0
132
Member Avatar for Wael1988

I have problems in using CustomValidation control, I want to check if year entered in date of birth text field is less than graduation year selected from a drop down list by 20 years. I think using ClientValidationFunction is much better when i tried to use it: <script type="text/javascript"> function …

Member Avatar for h4ng4r18
0
349
Member Avatar for bsummers

This is my first time using dynamic sql. My goal is to populate a datagrid with a stored procedure that uses a incoming parameter that equals a column name in the table. I have 2 problems. 1. I can get each sql statment to execute independently with the correct results. …

Member Avatar for h4ng4r18
0
134
Member Avatar for sujay anand

I m using GridView Controls to view the datas. For eg: I m getting column as username and displaying. Now i want to add Checkbox in gridview and want to store username and checkbox values in another table?

Member Avatar for h4ng4r18
0
112
Member Avatar for cameos

How can i read data from a text file or an excel file, I want the user to have both choices depending on what file he/she has.

Member Avatar for h4ng4r18
0
69
Member Avatar for rafaelbelliard

This simple but extremely useful trick explains how to hande a radiobutton within an ASP.NET gridview, without having to fiddle around with the sometimes cumbersome beast that javascript is. To avoid postbacks, we'll be using ASP.NET AJAX's updatepanel. Basically, the logic is grabbing the sender (ie, the radiobutton checked), disabling …

Member Avatar for h4ng4r18
1
588
Member Avatar for PsychicTide

Hey guys, having a bit of trouble with a customized eCommerce. The part I want to focus on is the adding of an item to the shopping cart (and the details that go along with each item). Everything works as is with the things I need commented... initial call to …

Member Avatar for PsychicTide
0
395
Member Avatar for get2tk

Problem with the contact form page. Displays below Once you click the send button . A socket operation was attempted to an unreachable host 74.125.193.108:587 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and …

Member Avatar for pritaeas
0
291
Member Avatar for erum

i already use VS 2008 and CR 2008 .but i need to use CR 2008 with VS 2012 ..but its giving me error even i added concerned reference like cysrtaldeciosion etc etc can any one suggest me sample tutorail ..for me its hard to find simple beginers level

Member Avatar for hericles
0
83

The End.