16,004,647 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 Javascript questions
View Visual Basic 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 204.sharma (Top 17 by date)
204.sharma
5-Jun-17 3:45am
View
Only one time...
204.sharma
24-Jan-17 6:00am
View
Solved...
204.sharma
14-Jun-14 3:59am
View
Thanks
204.sharma
14-Jun-14 3:55am
View
not working. how can i find forward slash. i am using ':Po'. But this is also not working.
204.sharma
29-Apr-14 1:42am
View
Here is the code to get values
txtdesc = new TextBox();
txtdesc.ID = "txt_" + dt.Rows[i]["descriptor_name"].ToString();
if (txtdesc.Text != "")
{
//emptyTextbox = false;
returnValue = returnValue + " and " + dt.Rows[i]["descriptor_name"].ToString() + " = '" + txtdesc.Text + "'";
}
204.sharma
29-Apr-14 1:41am
View
Here is my code to create dynamic controls.
HtmlTable tableContent = new HtmlTable();
HtmlTableRow row = null;
HtmlTableCell cell = null;
datalayer dl = new datalayer();
DataTable dt = new DataTable();
TextBox txt_desc;
//load parameters
tableContent.ID = "parameterTable";
dt = dl.SelectDescriptors(TreeView2.SelectedNode.Value.ToString().Replace("doctype",""));
//setting table properties
tableContent.Width = "100%";
tableContent.Style.Add("margin", "0");
if (dt.Rows.Count > 0)
{
foreach (Control ctrl in Page.Controls)
{
if (Convert.ToString(ctrl.ID) == "parameterTable")
{
Page.Controls.Remove(ctrl);
}
}
for (int i = 0; i < dt.Rows.Count; i++)
{
row = new HtmlTableRow();
cell = new HtmlTableCell();
cell.InnerText = dt.Rows[i]["descriptor_name"].ToString().ToUpper();
row.Cells.Add(cell);
txt_desc = new TextBox();
txt_desc.ID = "txt_" + dt.Rows[i]["descriptor_name"].ToString();
cell = new HtmlTableCell();
cell.Controls.Add(txt_desc);
row.Cells.Add(cell);
tableContent.Rows.Add(row);
}
}
Page.Controls.Add(tableContent);
and this is the code to get controls values
<pre lang="xml">TextBox <pre lang="cs">txtdesc = new TextBox();
txtdesc.ID = "txt_" + dt.Rows[i]["descriptor_name"].ToString();
if (txtdesc.Text != "")
{
//emptyTextbox = false;
returnValue = returnValue + " and " + dt.Rows[i]["descriptor_name"].ToString() + " = '" + txtdesc.Text + "'";
}</pre></pre>
204.sharma
13-Aug-13 7:47am
View
No...this is also a security option as well as password protection.
204.sharma
13-Aug-13 7:39am
View
certificate is a .pfx file. it have a key and other details like contact name,mail id. after attaching this file and a password, our pdf ask for the password when we open pdf file.
i know how to implement this security by adobe reader.but now i want to implement it by code and by using itextsharp dll.
204.sharma
16-Feb-13 5:16am
View
yes this is PDF/A format file.and it has Image and text both.Now i want to create same pdf (in pdf/a format) with less size.
204.sharma
16-Feb-13 5:11am
View
no winzip... only pdf file size reduce.
204.sharma
16-Feb-13 5:10am
View
Deleted
no winzip... only pdf file size reduce.
204.sharma
2-Apr-12 4:49am
View
Sorry.....here it is
PictureBox pb_control = new PictureBox();
pb_control.Height = 500;
pb_control.Width = 500;
pb_control.BackColor = Color.Aqua;
pb_control.Invalidate();
panel1.Controls.Add(pb_control);
pb_control.Image = image.FromFile(@"C:\klr1.jpg");
204.sharma
2-Apr-12 3:53am
View
Here is my code.....
PictureBox pb_control = new PictureBox();
pb_control.Height = 500;
pb_control.Width = 500;
pb_control.BackColor = Color.Aqua;
pb_control.Invalidate();
panel1.Controls.Add(pb_control);
pb_control.Image = image.FromFile(@"C:\klr1.jpg");
204.sharma
24-Feb-12 23:26pm
View
I am searching but till now don't get any sufficient way.
204.sharma
9-Aug-11 6:43am
View
Thanks,
204.sharma
8-Aug-11 8:06am
View
what the namespaces i need except system.net
204.sharma
8-Aug-11 8:04am
View
yes i have taken.
Show More