|
Your Welcome.
I've use the find to close the popup, but not in an iframe, but it's in the right direction.
|
|
|
|
|
Here, i am using the following code in the iframe aspx page
if(window.parent.document.getElementById("AlertNotesExt"))
{
var iframe = parent.document.getElementById("AlertNotesExt");
iframe.hide();
}
}
AlertNotesExt is the id of ajax modal pop up extender. But in that place, if i give any other asp.net cpntrol id like button etc., i am getting the id.
Regards
Naina
Naina
|
|
|
|
|
Hi frnz..
I have written a class library file and use the dll of this file in web application
i write some code in this dll like generating connection string as well as appSettings in web.config file
but problem is that.... i want to generate this connection string and appsettings data while adding this dll in web application instead of running the application
so plz help me....
i this some frnz not understand my question...
again i clear as below...
when i add dll in my application it added successfully
no problem about it.
when i run my application then connection string generate in web.config
bt what happen with this...
all sessions are cleared
hence i want to generate this connection string at the time of adding this dll in application
so is there any event handler or loader is available which will help to get me result
modified 30-Mar-13 0:55am.
|
|
|
|
|
Shree.grace wrote: i want to generate this connection string and appsettings data while adding this dll in web application instead of running the application
Can you be little more clear, if not elaborate in this statement?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
when i add dll in my application it added successfully
no problem about it.
when i run my application then connection string generate in web.config
bt what happen with this...
all sessions are cleared
hence i want to generate this connection string at the time of adding this dll in application
so is there any event handler or loader is available which will help to get me result
|
|
|
|
|
Right-click the bin folder of your web site in solution explorer, click "Add reference" - click the tab for browse, find your DLL, open it, done.
Alternatively, you can put the code for your class files in your App_Code directory, and it will be compiled as part of the web site. If the helper class is only for the one site, that is probably a better way to do it. If it's a shared data layer, then you're doing the right thing with a DLL as a separate project.
There is a third way to add it as well... add the project for the DLL to your web site solution - so you have two projects in the solution, the site, and the class library. Then, create a "project reference" using the above procedure to add a reference, but use the project tab instead of browsing to the DLL itself. The project output (DLL) will automatically be referenced by your site.
In your code, you may also need to add using statements that point to your namespace.
|
|
|
|
|
Hi,
How can i handle frame close event.Actually i wanted to executed server side code when frame window is closed.
I am opening this frame window from InitializeRow event of webgrid as shown below
frame1.Attributes["src"] = "../Forms_PDF/" + srcFilePath;
Whenever i close this frame window i need execute server side code.
how can i do.
modified 29-Mar-13 3:02am.
|
|
|
|
|
Frame is nothing but a window. How about body's onBeforeUnload or onUnload events for the documents that are loaded within that frame in discussion?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Message Removed
modified 1-Apr-13 2:40am.
|
|
|
|
|
how i add ajex file uploder in asp.net web form ??
|
|
|
|
|
|
Inside table td I have multiple div. Display a particular div on Jquery Click event. I am using Update panel in some div. All works fine in Mozilla and Chrome. But in IE, div width exceeds 10000px, is there any solution for this.
Bala
|
|
|
|
|
How do you expect anyone to comment based on what you have shared?
In order to display anything on a click, where from a width came into picture?
|
|
|
|
|
set the width using css
width: 980px;
updatepanels are just containers for partial page postbacks
|
|
|
|
|
hi friends,i need a help frm u guyz regarding for my project.i'm dng project in image processing domain project title is robust face name-graph matching for character identification in asp.net backend c# it's theme is to capturing image frm movie file and saved in database and comparison ll done but i didn't know comparison part if anybdy know pls send coding for this comparison part
|
|
|
|
|
We are all volunteers and only helpfull if we can see your approach, where you are stucck and, very important, what you have done so far and why the thing you have done yet does not work.
On the other hand, try to post here[^].
|
|
|
|
|
i did comparison of two images by getting two images pixel and width,height and check comparison of two images width and height ,pixel if its same means images r identical else different here i'll attach my coding part so far what i did
private button1 click()
{
this.Cursor = Cursors.WaitCursor;
Application.DoEvents();
// Load the images.
using (Bitmap bm1 = new Bitmap(txtFile1.Text))
{
using (Bitmap bm2 = new Bitmap(txtFile2.Text))
{
// Make a difference image.
int wid = Math.Min(bm1.Width, bm2.Width);
int hgt = Math.Min(bm1.Height, bm2.Height);
Bitmap bm3 = new Bitmap(wid, hgt);
// Create the difference image.
bool are_identical = true;
Color eq_color = Color.White;
Color ne_color = Color.Red;
for (int x = 0; x < wid; x++)
{
for (int y = 0; y < hgt; y++)
{
if (bm1.GetPixel(x, y).Equals(bm2.GetPixel(x, y)))
{
bm3.SetPixel(x, y, eq_color);
}
else
{
bm3.SetPixel(x, y, ne_color);
are_identical = false;
}
}
}
// Display the result.
picResult.Image = bm3;
this.Cursor = Cursors.Default;
if ((bm1.Width != bm2.Width) || (bm1.Height != bm2.Height)) are_identical = false;
if (are_identical)
{
MessageBox.Show("The images are identical");
}
else
{
MessageBox.Show("The images are different");
}
}
}
//pictureBox1.Image = txtFile1.Text.ToString();
//pictureBox2.ImageLocation = new Bitmap(openFileDialog2.FileName);
}
but tis'nt enough for me to comparing images bcoz it's too simple
for my project i need complexity for my project to compring images if u knw help me
|
|
|
|
|
rengaramu r wrote: s'nt enough for me to comparing images bcoz it's too simple
for my project i need complexity for my project to compring images if u knw help me
Comparing two images for equality only will always be simple - in fact, simpler than what you have already. Since you're only interested in equality, you should stop and return false as soon as you find one pixel different.
Now, if you're talking about image similarity, that can be very complex, in fact complex enough for graduate theses and Google R&D. Google has tried for many years to understand image similarity, and they do a pretty good job, but that is getting into a seriously complex area, and frankly, you don't seem to be ready for that.
However, you should be able to examine all the pixels, compare their distance away from each other (in terms of color values), then average those distances together, and it will give you a SIMPLE correlation value of how similar the images are. The code for that is simple...
foreach (px1, px2 in image) {
distance += SQRT( ((px1.red - px2.red)^2) + ((px1.blue - px2.blue)^2) + ((px1.green - px2.green)^2) )
numPix++;
}
correlation = distance/numPix;
Lower numbers indicate similarity. However, there are many problems with this algorithm, such as the fact that two pictures of the same thing, with a row of pixels added to one, will have a very high number, simply because the pixels don't line up. Any human looks at the two images and says "those are the same" but the computer fails at that.
Google and others now have image comparison tech that will give you a result like "those two images are both of a human face" and even go so far as "yes, there are faces in both images, and yes they are the same person" - right? That's what we call facial recognition software, but at its core that technology is image comparison and computer vision stuff.
|
|
|
|
|
thank u for ur reply yeah i got sme idea i tried to change it out
|
|
|
|
|
Good luck! There is really no middle ground - image comparison is either really simple, or ridiculously complex.
|
|
|
|
|
Well it sounds like your writing a windows program, this is the asp.net forum for web developers.
I'm not sure which forum is for windows managed code.
Anyways, if you had 2 identical images, actually the same image, then you could probably inspect each pixel in the image in the rows and columns, by color number, and see how many matches you get which should be 100%
But if you have 2 different sources for the image, and use a jpeg reducer, they may not compress the same leaving the image colors different so your match may only be 80% or none at all, even though they look the same to the human eye. The 2nd image may be offset by 1 row in the X or Y alignment creating a 0 match.
I've done work using pixels to determine the background color of an image, for automatic background color selection, and it took alot more code than what you posted to extract a good value.
You should probably Google the subject for awhile and look deeper into the subject.
|
|
|
|
|
I have programmatically generated a DataTable in ASP.NET 3.5 and now I want to use group by and do some calculations using SQL on this DataTable.
My question is: Is it possible to write a new SQL query against this DataTable and generate a new updated DataTable?
For eg:
select ID,sum(Rate) from dataTable group by ID
Sumit Kathuria
modified 28-Mar-13 14:26pm.
|
|
|
|
|
I've never seen it done.
You could push the datatable up to the SQL server in a #TEMP table, then do your SQL from there.
Not necessarily the best way to do things, but it would work.
|
|
|
|
|
You can use Linq Or Lamda Expression to form such query
DataTable dt = new DataTable();
dt.Columns.Add("ID");
dt.Columns.Add("Rate");
dt.Rows.Add("1", "10");
dt.Rows.Add("1", "20");
dt.Rows.Add("2", "30");
dt.Rows.Add("2", "40");
var result = dt.AsEnumerable().GroupBy(row => row["ID"]).Select(GroupedRows => new { ID = GroupedRows.Key, SumOfRate = GroupedRows.Sum(row => Convert.ToDecimal(row["Rate"])) }).ToList();
|
|
|
|
|
I have developed a new ASP.NET (4) website on my client's domain using a server dedicated to me (it also runs SQL Server.) The problem is, I need to knwo who's accessing the site, and I can't seem to get Windows authentication to work for my users (works fine for me and at least one other....) In my global.aspx page, I look for authenticated users, and set up security. But my users are coming through with anonymous authentication. When I disable anonymous authentication, they get an HTTP:400 rejection.
I don't know where to look. I'm no IIS (7) expert, but I've tried every suggestion I can find on the forums, and I can't figure it out. Here's what I know so far...
...Windows Integrated security is enabled on my users' browsers (IE8/32bit)
...I've disabled Anonymous access to my site (HTTP://Servername/Timesheets/) and enabled Windows Authentication.
...I've set up my Web.Config file:
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
I can't even get any responses on the forums. Can anyone walk me through the process?
Jim
|
|
|
|