AideedSS
AideedSS
CC#
Created by AideedSS on 9/14/2024 in #help
How to make upload file in ASP.NET Core?
any tutorial on how to make upload file in ASP.NET Core...via html, javascript, c# (backend code)..
11 replies
CC#
Created by AideedSS on 8/27/2024 in #help
Error 500.9 when I expand httpRuntime size
I have a error problem, and how do I solve it..I got error I tried to allowing website to upload more than 10mb..so I put
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" /
<!-- Increase the max request length if you expect larger files -->
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
</system.web>
</configuration
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" /
<!-- Increase the max request length if you expect larger files -->
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
</system.web>
</configuration
When I run it, it response error 500.19 The following is its response...how do I solve this? ___
The requested page cannot be accessed because the related configuration data for the page is invalid.
The requested page cannot be accessed because the related configuration data for the page is invalid.
Config error
Config section 'system.web/httpRuntime' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions
Config section 'system.web/httpRuntime' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions
Config Source:
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
4 replies
CC#
Created by AideedSS on 9/19/2023 in #help
❔ aspButton need to click twice to trigger the action
my aspButton, whenever I press the button, it doest postback, but the statement code in event doesnt trigger, after the second click, then it trigger the event...this is the code

int totalpage = (int)(ticket_rowItem / 8);
pagediv.InnerHtml = "";
for (int i = 0; i < totalpage; i++)
{
if (ticket_rowItem > 0 && totalpage > 1)
{

LinkButton lbl = new LinkButton();
lbl.Text = "" + (i + 1);
if ((i + 1) == ticket_selectedPage)
{
//pagediv.InnerHtml += "<a href='?page=" + (i + 1) + "' class='btn btn-secondary'>" + (i + 1) + "</a>";
lbl.CssClass = "btn btn-secondary";
}
else
{
//pagediv.InnerHtml += "<a href='?page=" + (i + 1) + "' class='btn btn-light'>" + (i + 1) + "</a>";
lbl.CssClass = "btn btn-light";
}

int m = i;

lbl.Click += (k, l) =>
{
//ticket_selectedPage = (m + 1);
rd.AlertToast(this, "Hello");
};

pagediv.Controls.Add(lbl);
}
}

int totalpage = (int)(ticket_rowItem / 8);
pagediv.InnerHtml = "";
for (int i = 0; i < totalpage; i++)
{
if (ticket_rowItem > 0 && totalpage > 1)
{

LinkButton lbl = new LinkButton();
lbl.Text = "" + (i + 1);
if ((i + 1) == ticket_selectedPage)
{
//pagediv.InnerHtml += "<a href='?page=" + (i + 1) + "' class='btn btn-secondary'>" + (i + 1) + "</a>";
lbl.CssClass = "btn btn-secondary";
}
else
{
//pagediv.InnerHtml += "<a href='?page=" + (i + 1) + "' class='btn btn-light'>" + (i + 1) + "</a>";
lbl.CssClass = "btn btn-light";
}

int m = i;

lbl.Click += (k, l) =>
{
//ticket_selectedPage = (m + 1);
rd.AlertToast(this, "Hello");
};

pagediv.Controls.Add(lbl);
}
}
12 replies
CC#
Created by AideedSS on 8/22/2023 in #help
❔ What is the best OCR engine for .NET?
I was searching for the best OCR engine that could convert image to text or pdfsearchable..So, what is the most recommended OCR engine for .NET?
2 replies
CC#
Created by AideedSS on 7/20/2023 in #help
❔ Everything is error
6 replies
CC#
Created by AideedSS on 4/5/2023 in #help
❔ Is it possible to build a session in WinForm C#?
By using session, I want to pass the data from Launcher to another launcher. I have been thinking of write file, then other launcher just read it..but that's doesnt seems a secure in term of security? Is there a way to save variable into cache memory or session to be read in another launcher?
8 replies
CC#
Created by AideedSS on 4/3/2023 in #help
❔ ✅ How to get ImageLocation from Controls?
lets say
PictureBox pb = new PictureBox();
pb.ImageLocation = "....";

panel1.Controls.Add(pb);
PictureBox pb = new PictureBox();
pb.ImageLocation = "....";

panel1.Controls.Add(pb);
and then, I want to retrieve ImageLocation..But with panel1.Controls.. soo
var imageLocate = panel1.Controls[0].ImageLocation;
var imageLocate = panel1.Controls[0].ImageLocation;
ImageLocation definition arent available..How to make code able to identify that panel1.Controls[0] is a PictureBox, so I could retrieve ImageLocation?
4 replies
CC#
Created by AideedSS on 3/15/2023 in #help
❔ ✅ Why is this true?
50 replies
CC#
Created by AideedSS on 3/10/2023 in #help
✅ [SOLVED]Remove label overlaying pie chart
27 replies
CC#
Created by AideedSS on 3/5/2023 in #help
❔ Capturing Only Diagram based in any document
3 replies
CC#
Created by AideedSS on 3/3/2023 in #help
❔ Is there a way to get Textchunk Width?
something like TextChunk.GetWidth() which to get a character width..not the TextChunk.CharSpaceWidth
10 replies
CC#
Created by AideedSS on 2/24/2023 in #help
❔ How to build a function that return TextFragmentCollection based on PDF file url?
I already have a searchable pdf, but I want to convert it into pdf with digital text...I already got the code, but, unfortunately there is no method GetTextFragment.. I have been looking for it in itext7, Aspose and iTextSharp, None of them have this..Therefore, I was wondering if there is a way to get TextFragmentCollection where source file as parameter
3 replies
CC#
Created by AideedSS on 2/24/2023 in #help
❔ How to rebuild searchable PDF to PDF with digital text
I have already got searchable PDF, but that wasnt in text digital, it just an image but detected text..How can I change every word in searchable PDF into PDF but every word are retype into text(not a text from image) and every text written are at the same position??
2 replies
CC#
Created by AideedSS on 2/23/2023 in #help
✅ Is there any OCR Nuget which is far better than Tesseract?
I am working on OCR project. I use Tesseract, as far as I have use them, even an image that is clearly written digitally in paint, it is still somehow hard to capture, most of the time..Is there any better OCR nuget?
4 replies
CC#
Created by AideedSS on 2/22/2023 in #help
❔ How to apply filter high pass mask to bitmap in c#?
Please drop me the code..I want to apply high pass mask into bitmap so I could convert blurry text in image into much clear text which is readable..
6 replies