Your question is not clear. How is user adding values? Only way to have multiple values in a variable is string concatenation. If you want to keep adding on, just do something like myvar = myvar + ',' + newvalue;
1. user1. page1.aspx send request to page2.aspx with method "GET" --> page2.aspx?search=hello
2. user1 again. input next value then redirect to page page2.aspx with same method --> page2.aspx?search=world
What I want to see result in page2.aspx is show all value that user inputted. saerch=hello,world
Have you tried using a temporary cookies to store each search term submitted to page2? The methods Asp.net uses to store state (viewstate, hidden fields, etc) are generally designed to work with POST requests so I don't think there is any client-side feature that will work.
i was worked with validation controls, i was used Required field validator and compare validator for confirm password field .i was used display dynamic for compare validator and dispaly static for required field validator..
i got error message dynamically... actually , my doubt was,
can we specify the property display dynamic in any one of the validation ah?
no need to specify display dynamic to all validator control?
i want to add video/audio on my asp.net site dynamically taking link from my access database,
please help m out , i tried <object><embed> <video> tags but not working, or may be i was doing something wrong, plz help m
I recently found a popup calendar control here: http://www.ezineasp.net/post/ASP-Net-PopUp-Calendar-Control.aspx[^] that works great! But the trouble I am running into is that, if I try to apply some validation; e.g. date rangevalidator, to it, nothing happens. I figured out that after the value was being set in the text field that the 'OnTextChanged' event is never being fired, probably because focus is not be given to the textbox. To get the validation to work I had to actually click into the field and press enter, this triggered the desired validation to take place. What I want to happen is for this automatically trigger the validation of course. I set the following fieds CausesValidation="true" AutoPostBack="true" but have had no success. Does anyone have any clues as to what I should do?
You don't seem to understand how asp.net controls works in general, I don't recommend using every control in the ASP.Net object library because most of them are useless.
I use the Jquery Calandar instead, and use 2 of them for a date range.
Member 9952350 wrote:
I figured out that after the value was being set in the text field that the 'OnTextChanged' event is never being fired
I've never used it in a textbox control, but there seems to be support for it. The need to postback a page to check the value of a textbox is stupid. You only want to post a page back once.
The rule of thumb is to validate before submission. You can do it all at once, or on every blur event in the DOM.
I think the asp.net validators are a joke, and are provided for some demonic reason that I can't figure out. They are unreliable, and I got many phone call complaints about them. So I dumped them and went straight to the DOM for validation. I'm upset because I wasted years using them for no practical purpose or reason, only having to rewrite them all over again.
Thank you for the insight and yes you sound very angry lol. But I appreciate the perspective, as to, feel like alot the ASP controls not very useful. Anytime you get ready to do any little that is not excatly standard functionality, you basically seem to have to rewrite the entire control/tool to get the job done.
Easier said than done. You really should just drop one down on your webform and play around with it first, and work on the CSS you need to style it, then load it up with your data, and write code for expand and collapse.
The treeview is pretty complicated, and doesn't really work very well across all browsers, so it requires some browser detection and some tweaking for each node and child nodes.
So for IE, the text on the nodes read clear, but on firefox, the text is very fine, but perhaps it depends on your monitor or video card.
As for right clicks, I tried that and decided thar the work required to enable right clicks outweighed the use of them. Then you have to determine which node or child node was selected, and what the object type is to take action to.
You really need to write your own code, or google for sample code instead of asking us to google for you.
I use it to show files in a folder by file type, and place the appropriate icon next to the file type. So I do a folder read, and create nodes in code without binding.
I have an a.aspx page and inside that page, i have ajax modal pop up extender.
This will open an iframe which has b.aspx page. When i click on a button in b.aspx page , i should be able to hide the modal pop up extender in a.aspx page.
var iframe = parent.document.getElementById("AlertNotesExt");
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.
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.
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
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;
// 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);
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;
MessageBox.Show("The images are identical");
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
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...
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.
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.
Last Visit: 31-Dec-99 18:00 Last Update: 1-Aug-15 22:25