C# - Making Scanned Pdf
Feb 3, 2011i need to convert bulk of pdf documents into non-editable format(scanned) some one help me to achieve this using C#.net
View 1 Repliesi need to convert bulk of pdf documents into non-editable format(scanned) some one help me to achieve this using C#.net
View 1 RepliesIs it possible to scan a text document to a computer and then programmatically search for text within that document? It doesn't seem likely since the scanned document would be an image but I'm hoping one of the gurus on here might have a solution.
View 1 RepliesI am using itextsharp dll to read pdf document. Its working fine for normal Pdf but Scanned document contentsĀ are not read.
View 1 Repliesi have a test report of our business system, that report is scanned, i want to get data or pick data from this document and then save it to sql server.
View 1 RepliesWe are going to start accepting resumes online but I need to know if the uploaded files will be virus scanned before I park them into the database. I thought this would be a server thing but the server admin and the security guy both said they didn't know. We already have a firewall and antivirus software, I just want to know how things work with native ASP.Net controls and not a product to try.
View 2 RepliesIs it required to use a RESTful service to be able to make a ajax call to a wcf service (for example: by using WebInvoke attribute on Operation contracts). Once a service is made RESTful by adding a webHttp binding on the service host, can the host have other endpoints as well? (wsHttp or netTcp). Is it required that the aspNetCompatibilityEnabled be set to true for a service that has webHttp binding (and can this setting coexist for other endpoints). I understand I can use both JQuery and ScriptManager for making WCF calls on the client. Why should I use one over the other?
View 1 RepliesI am using a multiline textbox for publishing a note but taking the content in a div through inner HTMl.
divMessageDescription.InnerHtml = dbreader["Message"].ToString();
but now for a particular group of people I want to make the read only property of this div as false.
making a file link
View 5 Repliesi want to make a comment page but i don't know where to start or how to do this. The member of my page must make a comment about videos, articles etc.
View 3 RepliesI am a pretty experienced web developer but I am completely new and foreign to asp.net. Currently my code in the Site.master looks like this.
[Code]....
And my css file looks like this:
[Code]....
In the end I would it to act like the example on this webpage: http://javascript-array.com/scripts/multi_level_drop_down_menu/?st .
I have a RSS feed and there is a string which has multiple links in it, something like this:"The Davy app launched yesterday. Check it out here http://bit.ly/bhm4FT http://fb.me/D644kDP8"Does asp.net have any function to make links automatically or will I have to write code to loop through the string and create the links?
View 2 Repliesi am creating a web app for a small buisness enterprise in which i have added a node in my menu (stocks) accessible to limited users
every time a user try to access this node , it will ask for his/her credentials. iam using asp.net login control( in built ) for this . Also i used
<authentiaction mode='forms' />
<authorization>
<deny users='?'>
</authorization>
for these pagesin my web.config file now apart from that , how can i made it more secure using asp.net membership provider.
I have an arraylist (eg: h1) contain some urls. eg: http://www.google.com,http://www.yahoo.com,http://www.xyz.com,.....
How can i put hyperlinks to each elements in that arraylist in c# ? Means by clicking on that url it should navigate to corresponding website.Can you give an example?? Also, how can i use 'Hyperlink' keyword in c# ?
VWD 2008 Express. Visual Basic.
I want to sequence focus from a textbox in one row to the textbox in the next row in a gridview when the user presses the down arrow key, just as it does when the user presses the Tab key. How can this be accomplished?
Suppose I have two webforms, the first is defined as:
Public partial class webform1 : System.Web.UI.Page
{ ... }
and the second as
public partial class
webform2: System.Web.UI.Page.
{...}
When I make a reference from webform2 to webform1, such as
If (PreviousPage is webform1) {
}
I get an error, it says that webform1 doesn't exist.
Aren't all public webforms really public? how do I do it?
I wanna know if it's possible to make dynamic charts with Reports (not crystal reports) of VS2005 in asp.net+vb.net. My boss want me to make a chart within a report and be able to click a bar and go to another report or subreport of that particular bar of the chart.
Right now I know how to make a chart with the report but it's static.
I have got 2 Drop Down Lists on my Form and 1 GridView. I want GridView to display the data according to selection from the Drop Down Lists.
For Example, One Drop Down List contains Names and other contains Dates. Both the Drop Down Lists can post back. So if i select a name from 1st Drop Down list, the Grid View should show all the results according to that Name. Similarly if i select the Date from the other Drop Down List , the Grid View should show the results according to the dates. But i cant figure out as how to bind Grid View to respond to 2 Drop Down List.
i am binding both the Drop Down Lists and the Grid View to the DataSource Objects, which is getting data from the database.
How can I make row bold in Gridview.
Protected Sub grdData_DataBound(ByVal sender As Object, ByVal e As EventArgs) Handles grdData.DataBound
grdData.Rows(0).Style.Add(HtmlTextWriterStyle.FontWeight, "Bold")
End Sub
This code makes the first row bold , but I want to make the row of every gridview new entry bold.
i need asp.net code for maing archief for newspaper website so i have a calender of the week day so i can get the nwes from any day of the week as i open the site at that day
View 2 Repliesmy landline phone is connected to my computer. Now in my asp.net website there is a textbox and a button . i filled a telephone number in the textbox and on button click i want that a call get connected to the no. in the textbox through my landline phone.
Is there any workaround for this in .net framework?
anyone have creating a menu in asp.net in c# without using the codebehind...
here's my simple menu.
<div>
<ul style="margin-left: 0%;">
<li><a href="#" target="_self">e-SERVICES</a>
<li><a href="#" target="_self">Forms</a>
<li><a href="#" target="_self">Patient Eligibility</a>
<ul><li><a href="patient_1.aspx" target="_self">Female Only - Grade 01 - 11</a></li>
<li><a href="patient_2.aspx" target="_self">Female Only - Grade 12 - 18</a></li>
<li><a href="patient_3.aspx" target="_self">Male Only - For Dependents</a></li>
</ul>
</ul>
<li><a href="contract.aspx" target="_self">Recontracting Notification</a></li>
</ul>
</li>
</ul>
</div>
my problem is on how will not appear some of my menu is the user doesn't have any access...
for ex. in patient eligibility menu - female only - grade 01 - 11 (male and female below that grade cannot seen this menu).
I've recently read one of Jeff's articles about XSS and it got me thinking about how to better protect the login cookies in my home cooked authentication system.
[code]....
so one of the questionable things I do is use the UserAgent string. Is there harm in doing this? Or browsers which will change their UserAgent string under normal operation(as in, without being updated)? My goal is basically for if an attacker gets a login cookie, for them to not be able to do anything with it. At the moment, the only info I store in the cookie plain text is the username.
I am getting started with DotNetNuke and when I try to use jQuery the same way I use it in any standard ASP.NET page it does not work. For example I am trying to use uploadify which uses jQuery and flash. I can't even get the cancel button to show in the control.
By now I understand there must be a workaround and it is different than simple asp.net
Here is the ascx code:
[code]....
I am just wondering that, is there anyway to make an Ajax request using jquery ("$.ajax") and making partial rendering without using the .NET Ajax framework (without script manager).
I have tried this before, but it's executing the page_load every time and not reaching to the pagemethod.
[code]....
I wish to implement a fairly simple CSV checker in my C#/ASP.NET application - my project automatically generates CSV's from GridView's for users, but I want to be able to quickly run through each line and see if they have the same amount of commas, and throw an exception if any differences occur. So far I have this, which does work but there are some issues I'll describe soon:
int? CommaCount = null;
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
String Str = null;
//This loops through all the headerrow cells and writes them to the stringbuilder
for (int k = 0; k <= (grd.Columns.Count - 1); k++)
{
sw.Write(grd.HeaderRow.Cells[k].Text + ",");
}
sw.WriteLine(",");
//This loops through all the main rows and writes them to the stringbuilder
for (int i = 0; i <= grd.Rows.Count - 1; i++)
{
StringBuilder RowString = new StringBuilder();
for (int j = 0; j <= grd.Columns.Count - 1; j++)
{
//We'll need to strip meaningless junk such as <br /> and
Str = grd.Rows[i].Cells[j].Text.ToString().Replace("<br />", "");
if (Str == " ")
{
Str = "";
}
Str = """ + Str + """ + ",";
RowString.Append(Str);
sw.Write(Str);
}
sw.WriteLine();
//The below code block ensures that each row contains the same number of commas, which is crucial
int RowCommaCount = CheckChar(RowString.ToString(), ',');
if (CommaCount == null)
{
CommaCount = RowCommaCount;
}
else
{
if (CommaCount!= RowCommaCount)
{
throw new Exception("CSV generated is corrupt - line " + i + " has " + RowCommaCount + " commas when it should have " + CommaCount);
}
}
}
sw.Close();
And my CheckChar method:
protected static int CheckChar(string Input, char CharToCheck)
{
int Counter = 0;
foreach (char StringChar in Input)
{
if (StringChar == CharToCheck)
{
Counter++;
}
}
return Counter;
}
Now my problem is, if a cell in the grid contains a comma, my check char method will still count these as delimiters so will return an error. As you can see in the code, I wrap all the values in " characters to 'escape' them. How simple would it be to ignore commas in values in my method? I assume I'll need to rewrite the method quite a lot.