16,018,802 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12618369 (Top 30 by date)
Member 12618369
25-Aug-16 4:23am
View
Thanks but link button not working as a tag in my case I need to use a tag
Member 12618369
23-Aug-16 7:56am
View
sorry I cannot see your updated solution where is it
thanks
Member 12618369
23-Aug-16 7:43am
View
yes even with false attributes does not work
my actual issue is I do need to make place holder visible when I click on the link button
Member 12618369
23-Aug-16 7:25am
View
this the code for new empty page I have tried
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:LinkButton ID="link1" runat="server" CausesValidation="false" Text="Forgot Password?" OnClick="link1_Click">
<br />
<asp:PlaceHolder ID="typeEmail" runat="server" >
<asp:TextBox ID="textbox1" Visible="false" runat="server" AutoComplete="off">
</div>
</form>
</body>
</html>
code behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void link1_Click(object sender, EventArgs e)
{
//typeEmail.Visible = true;
//typeEmail.Visible = true;
typeEmail.Visible = !typeEmail.Visible;
textbox1.Visible = !textbox1.Visible;
}
}
I have realised that some problem with link button because I tried button it works fine
Member 12618369
23-Aug-16 7:17am
View
Thanks I tried it in new empty page but still not working
Member 12618369
23-Aug-16 6:48am
View
Thanks I tried this but it still not working
Member 12618369
17-Aug-16 13:04pm
View
the structure of tables are
Materials[id, videoName,MID(forign key),UID,ISPosted]
ModuleRelation[id, Uid(foring key),MID(forign key)]
users[Uid,user_type]
please help
Member 12618369
17-Aug-16 6:00am
View
what do mean bu input the output is values of selected columns but one column has repeated value I need to make it distinct
Member 12618369
15-Aug-16 6:35am
View
thanks
I have found on this page on stack overflow this code but I could not understand what is the pageNumber and how can I get it, even thought, I need to show the grid view with its contents which based on search by ID not the permanent contents of the page
protected void GridViewIndexChanging(object sender, GridViewPageEventArgs e)
{
myGridView.PageIndex = e.NewPageIndex;
Session["pageNumber"] = e.NewPageIndex;
//whatever your page index changing does...
}
Member 12618369
11-Aug-16 11:57am
View
It is about selecting more than one checkbox at the same time and inserting them to database
Member 12618369
11-Aug-16 11:52am
View
sorry I mean when I click on add button (insert to database selected items) not working. However, when I select one item it works fine.
Member 12618369
11-Aug-16 11:50am
View
after the last line of the code
} else
{
conn.close();
}
Member 12618369
11-Aug-16 11:49am
View
It still not working
Member 12618369
5-Aug-16 11:33am
View
thanks
the tags in the begging of the code are asp.net
Member 12618369
5-Aug-16 9:06am
View
<div style="width: 100%; height: 100%">
<asp:Literal ID="ltEmbed" runat="server" /></div>
</div>
this the code for PDF and in FileCS.ashx is the handling code for retiring the file path from database
string embed = "<object data=\"{0}{1}\" type=\"application/pdf\" width=\"100%\" height=\"160%\">";
embed += "If you are unable to view file, you can download from
here
";
embed += " or download
Adobe PDF Reader
to view the file.";
embed += "</object>";
// string k = "~/FileCS.ashx?Id="+Request.QueryString["Id"];
ltEmbed.Text = string.Format(embed, ResolveUrl("~/FileCS.ashx?Id="), id);
Member 12618369
4-Aug-16 12:13pm
View
I retrieve PDF file through its path from database and display it in literal
I need to set default image when there is no PDF file shows there is PDF file available
thank you
Member 12618369
4-Aug-16 7:31am
View
I mean when there is no file to display I need to display image instead
Member 12618369
3-Aug-16 9:59am
View
The error is alter message is displayed on blank page
Member 12618369
28-Jul-16 11:27am
View
Thanks
I got error red line under the id said id cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
I do not know what is it
please help
Member 12618369
28-Jul-16 11:17am
View
thanks
I tried to used but not working I think because MaId is int and it is passed by id with int it works from another page I need to ckeck is the id is string or int if it is string I need to convert it before I passed to MaId
I am sorry about that
please help
cmd.CommandText = "SELECT URLVideoPath FROM Material WHERE MaId=@MaId";
// int.TryParse(Request.QueryString["id"], out id);
cmd.Parameters.AddWithValue("@MaId", id);
cmd.Connection = con;
con.Open();
using (SqlDataReader sdr = cmd.ExecuteReader())
{
sdr.Read();
URL = sdr["URLVideoPath"].ToString();
Member 12618369
28-Jul-16 11:01am
View
Thanks
please clarify more where I have to put this code in view page or the page where I write direct response
please
Member 12618369
26-Jul-16 7:45am
View
what is xmlns:asp="#unknown" please clarify it
and I have referred to btnUpload in ControlID
Member 12618369
25-Jul-16 10:55am
View
I missed copy the first part properly
<divclass='marquee'>
<asp:DataListID="dlIdea"DataSourceID="SqlDataSource2"runat="server"
Width="100%"HorizontalAlign="Left"CellPadding="2">
<itemtemplate>
<divclass="desc">
<divclass="thumb">
<spanclass="badgebg-theme"><iclass="fafa-clock-o"></span>
</div>
<divclass="details">
<p>
<muted>'<%#Eval("date")%>'
<br/>
<ahref="#">'<%#Eval("Ntitle")%>':<asp:LabelID="Label8"runat="server"Text='<%#Eval("news")%>'><br/>
</p>
</div>
</div>
</div>
<asp:SqlDataSourceID="SqlDataSource2"runat="server"ConnectionString="<%$ConnectionStrings:ConnectionString%>"
SelectCommand="SELECTTOP(4)*FROM[News]ORDERBY[date]DESC">
Member 12618369
21-Jul-16 11:29am
View
thanks
the user id should be taken for the current user who are currently logged in but to take it no idea can please you provide example
I sorry If I annoying you
please help
Member 12618369
21-Jul-16 11:10am
View
Yeah Thanks very much I figured it out the last error but now when I run the program I got object reference not set to an instance of an object
at this line foreach (DataRowView drvSql in dvSql)
Member 12618369
21-Jul-16 11:00am
View
No i am using it but I got red under line
Member 12618369
21-Jul-16 10:47am
View
Thanks Richard
I got error with SqlDataSource8 red under line says that afield initializer cannot reference the non static field, method or property
Member 12618369
21-Jul-16 10:28am
View
Thanks for this but I could not find DataView in the c# library is it DataSourceView?
Member 12618369
13-Jul-16 18:32pm
View
I tried so many times this website no solve for my problem
Member 12618369
9-Jul-16 18:23pm
View
can you please share the code how did you use the jw player in asp.net I have been trying to do it but I could not please help
Thanks very much with best regards
Show More