13,153 Topics

Member Avatar for
Member Avatar for barriegrant1

Hey, im trying to dynamically add an image to a gridview for each row if it meets a condition. DataTable dtSub = new DataTable(); dtSub.Columns.Add("ID", Type.GetType("System.String")); dtSub.Columns.Add("FirstName", Type.GetType("System.String")); dtSub.Columns.Add("LastName", Type.GetType("System.String")); dtSub.Columns.Add("Tutor", Type.GetType("System.String")); dtSub.Columns.Add("test", typeof(System.Web.UI.WebControls.Image)); //not sure if this is correct?? DataSet ds = new DataSet(); ds.Tables.Add(dtSub); Session["myds"] = ds; foreach …

Member Avatar for kvprajapati
0
132
Member Avatar for vidyade

I have three text StartTextbox and EndTextBox ,Textbox3 .Please careful textbox3(No of month). Now I want difference of start date and end date is Checked by No of Months . Here function in customvalidation protected void ValidateDuration(object sender, ServerValidateEventArgs e) { DateTime start = DateTime.Parse(StartTextBox.Text); DateTime end = DateTime.Parse(EndTextBox.Text); int …

Member Avatar for kvprajapati
0
63
Member Avatar for Maha Sh.

Hi, I want to ask whats the best way to make a login page in my website? I added a Master page which contains a login. in my website the users registered by the Admin and I have three types of users. plz advise

Member Avatar for JorgeM
0
88
Member Avatar for Origamiswan

I am hoping this is in the right spot. We have an issue that I have not been able to track down for some time, hoping someone can give me an idea or point me in the right direction. To summarize: Occasionally, a computer in our network will cause our …

Member Avatar for ZeroZen
0
1K
Member Avatar for bilal_fazlani

#What do u think is wrong in this code???# ##no textbox is being affected :(## For Each ctrl As Control In Panel1.Controls If ctrl Is GetType(TextBox) Then CType(ctrl, TextBox).Text = "" End If Next

Member Avatar for ZeroZen
0
141
Member Avatar for vidyade

Please give advice on itt . also want if date invalid it should same page plus .use whatever break do not excute more code inside button click event if date is not valid protected void btn_ok_Click(object sender, EventArgs e) { //DateTime dt = new DateTime(); //dt = Convert.ToDateTime(tb_age.Text);//"2011-12-30" //TimeSpan ts …

Member Avatar for ZeroZen
0
161
Member Avatar for stereoworld

Ello, Firstly let me preface this with the fact that I'm absolutely hopeless at ASP.net. I know the basics, but that's it. Right, I'm trying to fix a property site coded in ASP.net. On the property landing page, there is a small gallery of thumbnail images below a larger one …

Member Avatar for ZeroZen
0
249
Member Avatar for Verygoodguy

All I want is to click the raddiobutton1 and have my application set Image1 borderstyle solid and bordercolour to red. Can anyone show me by code using RaddioButton1 and Image1 IDs of asp.net controls?

Member Avatar for ZeroZen
0
124
Member Avatar for ZeroZen

Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to …

0
129
Member Avatar for kelvnese

Hello everybody! I'm doing my project about ASP.NET but i don't know how to Insert Data into Database. Example: [B]First name: xxxxxxx Last name: xxxxxxx[/B] [B]Button(<<<)[/B] i want to know how the code working when i click the Button the data first name and last name will go to Database. …

Member Avatar for Mumbai Indians
-1
220
Member Avatar for ssreevidya.m

hai , I need to get the monthnames between 2 dates such as 01-04-2012 & 30-03-2013 . Can you help me to get it. Thanks in advance, sreevidya

Member Avatar for hotelworld
0
76
Member Avatar for FrodoBaggins

Hi people I have coded a data-based website in asp.net, and want to run it on a lighttpd webserver using debian as the host os I am wondering how to set up mono and allow my Databases to be read and written to I have read through this: http://www.mono-project.com/FastCGI_Lighttpd and …

Member Avatar for diafol
0
214
Member Avatar for Iamateur

The user will click the book name in the combo box. **Note: The combo box is separate from gridview i.e. it is not a part of gridview.** Then the gridview for Issuing books i.e. with the columns bid,bname,aname,data of issue,date of return shoudl be** displayed.** The row that will be …

Member Avatar for adam_k
0
115
Member Avatar for Begginnerdev

Hello my fellow DaniWebbers, I have a discussion topic for everyone. Winforms VS. WPF ITT: Your opinion on the two Your reason for coming to that discision Your approval/disapproval of Microsoft abandoning WinForms How this impacts your vb.net skills

Member Avatar for Begginnerdev
0
173
Member Avatar for Jesi523

I am trying to write an MVC application. I am rather new to MVC and I am taking the project over from someone else whom started writing it. This is what I am trying to do. I have some html documents that are located within my application. When a user …

0
98
Member Avatar for ubercat

Hi, all. I need a little advice on a school web project. I'm using VS2010/VB/ASP Some background: I have a listbox(LBX) and a dropdown list(DDL). Each are bound to their own AccessDataSource objects, which in turn are bound to different tables in a database. Each is successfully populated from their …

Member Avatar for ubercat
0
2K
Member Avatar for deceivingrakesh

Guys i have a listview connected to a data source , and there theres is another listview and a button embedded in this parent listview , lets say that the datasource gets the ID of something from the data base , but ID is not displayed in the parent listview …

0
59
Member Avatar for mani508

hey my project is discussion forum. i want formatting bar for writing topics description or question describe . how can i get formatting bar in asp.net

0
63
Member Avatar for mitchfizz05

Hello. I wanted to make a website, but with a private section. The private section has to be accessed with a password. If I used a simple if statement to do so, will it be safe on the server side? Example: Protected Sub AccessPrivate_Click(ByVal sender As Object, ByVal e As …

Member Avatar for JorgeM
0
110
Member Avatar for aishapot

Can anyone help me on how to create a video embed box? Like on Youtube, when you click on the share button there, there's the embed box.

0
106
Member Avatar for queryme

Hi I am Trying to install visaulstudio2010 and sqlserver2008 in my lenovo laptop. I am having windows7 home premium on my machine. I have installed first sqlserver. installation done successfull but installed **Partially** means sqlserver management studio not installed. 1) Please let me know what should i install first. sqlserver2008 …

Member Avatar for faizan11
0
84
Member Avatar for Marseline

hi, i want to design a website where only students from a certain university can access by logging in how do i make this using dreamweaver and MY SQL as the database. for example if daniweb was only meant for people from USA and someone from africa tries to sign …

Member Avatar for pritaeas
0
119
Member Avatar for swathiponna

Hi, when i set Image1.ImageUrl = "C:\\Sunset.jpg"; not working means it is not displaying the image on the webpage. My requirement is not to display image on the webpage from where project folder exists. My requirement is to display image from "C:\\" but it is not working.... Please give me …

Member Avatar for LaxLoafer
0
73
Member Avatar for jateshs1007

I am beginner, so please help me with these problem i am suffering I). I have a coding in ASP.net i want to display list of information from my database (MS Sql 2008 R2) to a table. My database contain: Name Email Address Phone I want this to be displayed …

Member Avatar for Skeldave
0
134
Member Avatar for Skeldave

Hi, I am getting the following error and I cannot understand why. SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. Before i try and insert the data into the database I print it out and this is what i get: **09/04/2012 00:00:00** The code below is …

0
92
Member Avatar for jateshs1007

I have a making a grid view from code behind but the error occurs My code is: string str = ConfigurationManager.ConnectionStrings["SQLConn"].ConnectionString; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetData(); } } public void GetData() { SqlDataSource ds = new SqlDataSource(); ds.ConnectionString = str; ds.SelectCommand = "SELECT * …

Member Avatar for jateshs1007
0
735
Member Avatar for tiredstruggler

My .cs file is not recognizing the objects on my asp page. I m working on Visual Studio 2010, when i reference any object like TextBox1.Text it shoes error, TextBox1 is on the page and its visibility is also true, still it's conflicting :( :'(

Member Avatar for Philippe.Lahaie
0
63
Member Avatar for katheeja
Member Avatar for jijo cleetus
0
80
Member Avatar for nickg21

Hey everyone, Basically everything im trying to do is summed up in the subject line. I have a "DatePicker" control on my site, that when a date is selected, is displayed in the textbox as "April 12, 2012" or whatever the subsequent date may be. However, when I save this …

Member Avatar for jijo cleetus
0
117
Member Avatar for shivani.corp

I have created one form named newest_receipe.aspx in which i have various receipes name with respective date and time in a data list and receipe names are displayed using hyperlink. <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" onselectedindexchanged="DataList1_SelectedIndexChanged"> <ItemTemplate> <asp:HyperLink ID="HyperLink20" runat="server" Font-Underline="True" ForeColor="#0000CC" onload="HyperLink20_Load"> <%# Eval("recipe_name") %> </asp:HyperLink> <asp:Label ID="datetimeLabel" runat="server" Text='<%# …

0
53

The End.