13,153 Topics

Member Avatar for
Member Avatar for AngelicOne

I have a pair of questions.. I am quite new to this gridview in asp.net using C#.. I have used the following code to bind the sql database table from my gridview. [CODE]SqlDataAdapter da = new SqlDataAdapter("select customerid, customername from table",con); ds.Clear(); da.Fill(ds); gridview.datasource=ds; gridview.databind();[/CODE] And set the autogenerate columns …

Member Avatar for crishjeny
0
2K
Member Avatar for simi pillai

Server Error in '/PrecompiledWeb4' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load the assembly 'App_Web_caknetlg'. Make sure that it is …

Member Avatar for crishjeny
-1
323
Member Avatar for MichaelWClark

Hello I am building a web page and decided that this time around I would make many user web controls as to have a very modular and customizable site with ease.. Anyways it was going off without a hitch until today I designed a new control. Its a panel with …

Member Avatar for crishjeny
0
85
Member Avatar for ChPravin

Hello All, I have a Collapsible Panel Extender inside a datalist.I have a hyperlink inside the panel within the datalist. I want to have a modal popup on clicking the hyperlink inside the panel and I want the modal pop up to be populated with the data from the navigate …

Member Avatar for crishjeny
0
635
Member Avatar for himanjim

I'm really having hard time importing ASPNETDB.mdf to remote server running sqlserver 2005.. I'm using sql server express edition (along with visual web developer 2008) I use the same string [code=asp.net]<add name="aspnetusers" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />[/code] No connection can be established.... Then I changed that to [code=asp.net] <add …

Member Avatar for crishjeny
0
428
Member Avatar for Jesi523

I need some help. I have a website where people can create a class or event with times and places for the class or event. Once this instance is created they are supplied a link for people to sign up and a passcode for them to use to modify the …

Member Avatar for crishjeny
0
127
Member Avatar for MichaelWClark

I have 3 dropdown lists, catagory, name, model. Select catagory to enable name and model. select a name or a model and the coresponding name/model will autofill in the other dropdown based upon results of executeScalar. If i have the catagory "Cellular" it works fine with ALL my products. If …

Member Avatar for crishjeny
0
149
Member Avatar for Jesi523

I have two different views in my ASP.Net application. I have a list view and a calendar view. I am trying to get the link to perform differently under certain circumstances. If the the class is full the link should be disabled and read class full. If there are available …

Member Avatar for crishjeny
0
863
Member Avatar for pooja_shah

hi, I have a one que... I have a login page and where i m making dropdown for the qualification(B.E.,mca,bca,B.Tech,M.tech,others)Collections in list.. Here for others value.. I have textbox1 so any pne can enter other value that is not in the dropdown...so in that case how i can pass insert …

Member Avatar for crishjeny
0
75
Member Avatar for kayfar

can anyone tell me how to use if else statement using c# and MS Access database..this is my code.. [CODE] protected void Button2_Click(object sender, EventArgs e) { string path = Server.MapPath("App_Data\\dnis2010.mdb"); OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path); //con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\keOn_kAyFar\\Documents\\Visual Studio 2008\\WebSites\\DNIS\\App_Data\\dnis2010.mdb;Persist Security Info=False"; conn.Open(); string str …

Member Avatar for crishjeny
0
315
Member Avatar for manavsm

I am new in asp.net and so want to ask as to how do i pass the datas from the gridview to textbox through query string with only the ID of the selected row being passed as query...Means when i select a particular row all the attributes of that row …

Member Avatar for crishjeny
0
2K
Member Avatar for Jesi523

OK, here's my last problem for this project I am working on. This may seem very simple to most of you, but I cannot figure it out. I have a simple confirmation page that reads something like: You have successfully created your event, the link for people to signup for …

Member Avatar for crishjeny
0
276
Member Avatar for AngelicOne

I have made a registration form using C# and the record will be saved in sql. I want to also add a record of the registration date automatically. How to do this?

Member Avatar for crishjeny
0
232
Member Avatar for naka1888

Hi, I have a simple grid view that i want to be able to delete rows from by clicking the delete button that's automatically created. Every time I click on the delete button to delete the row i get the following error: [COLOR="Red"]Incorrect syntax near 'int'. Description: An unhandled exception …

Member Avatar for crishjeny
0
237
Member Avatar for jugosoft

I have function that returns string and that works fine but when I call that function from another procedure when it executes function I get a message: [B],,Conversion from 'result' to type 'Integer' is not valid,,[/B] ASP debugger says: [B],,Input string was not in a correct format. ,,[/B] I tried …

Member Avatar for crishjeny
0
1K
Member Avatar for abhi1625

[B]how do i display the inserted record in gridview in asp.net when i click on button..? [/B] GridView1.DataSource = a.filldata("insert into student(Roll_no,Name,Age,Education,Mobile)values("+txtrollno.Text +",'"+txtname.Text +"',"+txtage.Text +",'"+txtedu.Text +"',"+txtmb.Text+")"); GridView1.DataBind(); [B]i want it should be display right now at runtime record should be added....and displayed... and i also get and error of "," …

Member Avatar for crishjeny
0
109
Member Avatar for himvj

how to add dropdown list in gridview and how to populate data in that dropdown list Thanks in advance

Member Avatar for crishjeny
0
2K
Member Avatar for MiniAdverts

Hi Guys, I just wonder anybody here know how to strip html from the text box ? I just want to make sure that at the time user post something,they dont insert any HTML or javascript ... thanks Johnny

Member Avatar for crishjeny
0
170
Member Avatar for jellybeannn

I'm trying to insert a record from a DataGridView into a database, but I receive this error: [COLOR="red"]Parameterized Query '(@i1 int,@i2 varchar(50),@i3 varchar(50),@i4 varchar(50),@i5 var' expects parameter @i1, which was not supplied.[/COLOR] I have tested with a BreakPoint that c_id is not null, it does have a value. *Note c_id …

Member Avatar for crishjeny
0
126
Member Avatar for MichaelWClark

Hello. I have been developing on this project for the last month and this particular function is used MANY MANY times throughout the project and I have had 0 problems with it to date. I added a new panel and all of a sudden some of my core feautres started …

Member Avatar for crishjeny
0
109
Member Avatar for new SE

hi all, i'm going to make an upload picture into database.. in run successfully but now it will store as [CODE] C:\Users\itdept\Desktop\webmaster\image\Desert.jpg [/CODE] but i just want to make it like this [CODE] ~/image/Desert.jpg [/CODE] is it possible?

Member Avatar for kvprajapati
0
163
Member Avatar for erum

[CODE] <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>id</th> <th align=left>Room Categories</th> <th>single</th> <th>Double</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width="5%"> <asp:Label ID="Label3" runat="server" Text= '<%# Container.DataItem("packageid")%>' /></td> <td> <asp:CheckBox ID="chk_packages" AutoPostBack=true runat="server" Text = <%#Container.DataItem("package_name")%> /> </td> <td><%#Container.DataItem("single_rate")%><asp:CheckBox AutoPostBack=true ID="single" Enabled=false runat="server" /></td> <td><%#Container.DataItem("double_rate")%><asp:CheckBox AutoPostBack=true ID="Double" runat="server" /></td> <td><asp:Label …

0
139
Member Avatar for Finarfin34

Hi everyone! I have a query that take 5-10 minutes to run. And I use this query in ASP.NET Web Application. How can I manage to cancel query? For clarification lets say 2 buttons are on the form,one for starting and other for cancelling the query,is it possible if so …

Member Avatar for Momerath
0
95
Member Avatar for scott_rider

Thank you in advance. I have intermittent access to a .xml file in App_Data. The file is only used in a portion of the program but there are times when it throws a "...because it is being used by another process." error. I've included everything I could find that is …

0
67
Member Avatar for Audict

Hi all I want to get a file (pdf) via a parameter and stream it to the clients browser (this part works). Now my problem is, that when you click save, it suggests the name of the .aspx with a .pdf extension. How can I change this? Here's my code: …

0
55
Member Avatar for Diamonddrake

I'm new to ASP.net I am a decent C# programmer, but I usually write windows programs, not web stuff, I did my website in plain html and recently I have started working in asp.net. I've read a few tutorials, but I'm stuck on what to search for, and how to …

Member Avatar for shelen
0
178
Member Avatar for ranu jain

[CODE]Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Dim j As Integer Dim conn1 As New SqlConnection Dim cmd1 As SqlCommand Dim dp1 As New SqlDataAdapter Dim ds1 As New DataSet Dim str1 As String str1 = "Insert into Feedback( Title,UserName,EmailId,Feedback,) Values('" & ((txtTitle.Text).Trim).ToUpper() & " …

Member Avatar for crishjeny
0
161
Member Avatar for Sinha's

Hello Frends I am getting an error. The details are follows, ERROR: Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 36: if (rdr.Read()) Line 37: { [COLOR="Red"][B]Line 38: matured_month = Convert.ToInt32(rdr.GetString(0));[/B][/COLOR] Line 39: matured_year = Convert.ToInt32(rdr.GetString(1)); Line 40: conn.Close(); CODE: protected void Page_Load(object sender, …

Member Avatar for Sinha's
0
285
Member Avatar for new SE

Hi now, when i download the image, the path will be in this format [CODE]C:\Users\itdept\Desktop\webmaster\image\Penguins.jpg[/CODE] how can i make it save only the filename [CODE]Penguins.jpg[/CODE]? this is my code [CODE] if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "") { byte[] imageSize = new byte[FileUpload1.PostedFile.ContentLength]; HttpPostedFile uploadedImage = FileUpload1.PostedFile; uploadedImage.InputStream.Read(imageSize, 0, …

Member Avatar for crishjeny
0
160
Member Avatar for devloper

i m new in asp.net.. asp.net CheckBoxList control does not have the CheckBoxList.CheckedItems.Count like the one in the windows Application. i am manually converting a windows app to asp.net , i need to use the functionally of that Method .. any help please

Member Avatar for crishjeny
0
1K
Member Avatar for Diamonddrake

I am kinda new to asp.net. I used asp backing flash for most of the site work i have done, but I have shied away from flash and I am having some issues understanding asp.net membership. I am currently using the web.config file to set the credentials for forms authentication. …

Member Avatar for crishjeny
0
432
Member Avatar for jv_web

Im sure this is real easy... Please forgive my limited .Net abilities... The script below genereates the correct value I need... I just want ot place the value obtained by dblTotal into a flash param... the param below is what I imagine it would look like. [code=c] <script Language="c#" runat="server"> …

Member Avatar for crishjeny
0
136
Member Avatar for Shlesh
Member Avatar for Sinha's

Hello Frnds, I have an application developed in ASP.Net(C#) and MS SQL, its working fine and fulfilling the requirements. Now the problem is I have a [I]MS Access Database[/I] from where I have to read some data and feed it into ASP.Net form and then save it to [I]MS SQL …

Member Avatar for crishjeny
0
358
Member Avatar for ajwposh

I am new to asp.net after previously coding in classic asp. I am needed to do a loop in VB.Net but don't know how to do it. I need to loop through a data set of 3 records and then place each record in the relevant section on the image …

Member Avatar for crishjeny
0
220
Member Avatar for ligas84

image of my listview: [url]http://img26.imageshack.us/img26/4043/listview.png[/url] I want to total every row from my listview tallies total infected people and percentage ____________________________________________________________________ CityID | City | Population | Male | Female | Total | Percentage | Population, male, and female columns are user inputs total column is male+female textbox value per …

Member Avatar for crishjeny
0
665
Member Avatar for Netcode

Am using asp.net/vb. How do i make a navigation button to link another page using vb.net ans CSS.

Member Avatar for catherine sea
0
95
Member Avatar for 080346

hello everybody; i have a aspx file in which i have made a table with 1 row; now i want to get the data of the user from database who have logined; i have written correct the sql query and it retriving the data, but i dont know how to …

Member Avatar for croker10
0
171
Member Avatar for jingo1126

btw any tutorials out there on how to create database with vb.net with mssql just to let me get started, i was hoping for a simple db to practice on like id,name. ive made db with php and mysql but vb.net is a bit far from php and mysql though …

Member Avatar for Luc001
0
115
Member Avatar for k_ramprasad87

[code] Shared Sub Export(ByVal recordSet As DataTable, ByVal fileName As String, Optional ByVal ExportData As Boolean = True, Optional ByVal IncludeDummy As Boolean = False, Optional ByVal header As Boolean = True) 'Try Dim C_HTTP_HEADER_CONTENT As String = "Content-Disposition" Dim C_HTTP_ATTACHMENT As String = "attachment;filename=" Dim C_HTTP_INLINE As String = …

0
58
Member Avatar for haripriyamca05

i have bulletedlist control with two items and its display mode is linkbutton. In same page i have html table row hidden with some other controls. i want to make display of that hidden row in onclick of bulletedlist listitem. The problem is that when i click the listitem hidden …

0
58
Member Avatar for willie7

Hi, I am running ASP .net application on my local virtual server (desktop computer). In the last couple days, I got something very strange. I got Directory Listing only after starting up a web application. The same happens to the rest of my web applications. It looks like something wrong …

Member Avatar for willie7
0
112
Member Avatar for prvnkmr194

Hi all of Daniweb user............... I want to create a Online Airlince reservation system my problem is that what are the should a airlince system sould have. Still I did't start the project from where i have to start, any web which give detail of that........... Any help from any …

Member Avatar for catherine sea
0
103
Member Avatar for white feather

[CODE] <Window.Resources> ... ... <DataTemplate DataType="{x:Type my:Section}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Name}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Instructor}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Cours}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Instructor}" x:Key="InstructorDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=FirstName}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Cours}" x:Key="CourseDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock …

Member Avatar for white feather
0
176
Member Avatar for Nirvin M

I am developing a electrical application. I need to present the user with controls like resistor, capacitor etc. How can I create such controls in VB.NET? Can I use GDI or WPF for this? If possible then how?

0
88
Member Avatar for readbanana

I have a website that allows people to come an upload images. When that person uploads an image it renames it according to who is uploading it. So every time that person logs on and changes his image, it will overwrite the old image. That person will only have one …

Member Avatar for readbanana
0
178
Member Avatar for dseifried

Hey everyone, New to the forums, as this will be my first post. Im having a problem with a tableadapter/tableadapter query. My query is: [CODE]SELECT * FROM subject_assessments WHERE (sa_id = @sa_id)[/CODE] sa_id is a varchar, if that is relevant in any way. My table adapters then look like this: …

Member Avatar for jamshed ahmed
0
73
Member Avatar for denmarkstan

I built an application that generate 10,000 pins at ramdom among "a,d,t,l,1,2,5,4,6,9,7,a,l" (at a run and insert them into sql database).the format of my outputs is "adtl-5297-1275-al". Problem is that some data replicates themselves. I need an sql statement to filter my dbs after the pins are generated. Pls help …

Member Avatar for catherine sea
0
63
Member Avatar for denmarkstan
Member Avatar for Kyaw Thi Thi Sa

Dear all, Now,we are developing e-learning system written in C# asp.net.We also creating flash learning games.The problem is how can we load those flash game from our asp.net page and how can we save score into database and how should we start.I have no idea.We want like this flow. 1.LearnerAAA …

0
52

The End.