|
Actullay I m Developing a search engine in ASP. some one tell me how I can search only image by enter keyword.
it should search only image related to that keyword which i had written in input box.
Manoj Kumar
|
|
|
|
|
Images are normally used with "tags". These tags say something about the image (what can be seen at this picture etc.). So you have to store tags with your image in a database. Then write a query that can search through these tags.
Regards
Sebastian
|
|
|
|
|
Hai all,
I want to know simply what is Ibm websphere,is it an application server or something else..Can you give suitable web sites for reference
Thanks in advance.
|
|
|
|
|
lmgtfy[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
code to enter value into textbox e.g. true,false
then cause the path attribute to change by the answer e.g.
true: ball goes left;false: ball goes right?
|
|
|
|
|
no clue as to what you talking about.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Adding a "submit button" to an existing form, to send the contents to my email. All I the codes that i have added, also add additional boxes. I want to take my form and have it sent, only adding the submit button? I use Dreamweaver to create pages by cutting and pasting. I am not a coder. PLease help?
|
|
|
|
|
email me to get an answer to ur question
my email:stanlee_gonzales@yahoo.com
|
|
|
|
|
In my website we have left panel having different links, our requirement when user clicks on any link and enter any detail on page without save/submit, and then he moves to next link on left panel an alert should be generated to user before the page load for new link happens. In that way an alert for unsaved data can be shown.
Note:- technology/languaage used should be:- VS 2005 asp.net 2.0 using C#, javascript
Thanks in Advance
|
|
|
|
|
I think you can use a html "onUnload" event and use javascript to alert or return false.
|
|
|
|
|
I just can't the following code to work in Firefox. It works in IE but I don't understand why it doesn't work in firefox. I also have another page has almost the identical code to the one below and it works fine, that's in firefox. Odd as!
<title>Untitled Document
function ChangeColour()
{
var Colour = "#00FF00";
var Row = Ingreds.rows[0];
Row.style.backgroundColor = Colour;
}
Click Here
modified on Wednesday, April 1, 2009 6:36 AM
|
|
|
|
|
Try posting again and tick the box that says:
"Ignore HTML tags in this message (good for code snippets)"
|
|
|
|
|
Hey guys
I'm trying to get some text go over another piece of text.
I've gotten it to work more or less by setting the position attribute to absolute for the text on the top. Here is the code for that
<div style="font-family: Courier New; text-align: center; background: rgb(213, 234, 255);">
<div style="position: absolute; font-size: 10pt; color: red; font-weight: bold; font-family: Comic Sans MS;">
Harvey Saayman - Lead Software Developer<br/>
Uniclox Technologies (PTY) Ltd<br/>
Office: 011-439-2042<br/>
Cell: 074-132-9393
</div>
<div style=" font-size: 12.5pt; color: rgb(0, 255, 0); font-family: Courier New;">
1010111 1101000 1100101 1110010 1100101 100000 1101001 1110100 100111 1110011 <br/>
100000 1100001 1101100 1110111 1100001 1111001 1110011 100000 1110100 1101001 <br/>
1101101 1100101 100000 1100110 1101111 1110010 100000 1100010 1110101 1110011 <br/>
1101001 1101110 1100101 1110011 1110011
</div>
</div>
With that the text does indeed display over the other text (the binary), but the main text is not centered and id like it to be...
Any ideas? Cause I'm all out
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
try these threee options
- use "text-align: center;" on the inner divs
- use a set style="width:300px; margin:auto;" on the 'contact info' div
- use a background image for the binary
|
|
|
|
|
i need image viewer which is used in website. which shows the scan documents and pictures. the functionality of that image viewer are that it can zoom, rotate, flip, edit text.
plz plz plz plz plz help i use it in my final project of university which is not available for only for desktop. so any one know about that plzzzzzzzzz share with me 
|
|
|
|
|
Hi
I am trying to store the images using asp.net browser control ie, fileupload. .Its with store the images in to the databse where i used as sqlserver as backend. It store but, after that i am trying to retrive those images through listview from backend. But here i am getting no error but no images are there in images.I need the names of the images in the listview from backend while clicking a particular image it should be enlarge in image control.Thanks in advance.Please help me.
In default.aspx.cs page:
public partial class _Default : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["DigitalSignageConnectionString2"].ConnectionString.ToString());
protected void Page_Load(object sender, EventArgs e)
{
}
protected void BthSnd_Click(object sender, EventArgs e)
{
con.open();
SqlCommand mycommand = new SqlCommand("INSERT INTO Image_DiSig([image], [text],[path],[image1]) VALUES (@image, @text,@imgpath) ", con);
string apppath = Request.PhysicalApplicationPath;
FileUpload1.SaveAs(apppath + "images\\" + FileUpload1.FileName);
string imgpath = apppath + "images\\" + FileUpload1.FileName;
FileStream fs = File.OpenRead(imgpath);
byte[] imagedata = new byte[fs.Length];
mycommand.Parameters.AddWithValue("@image", imagedata);
mycommand.Parameters.AddWithValue("@text", TextBox1.Text);
mycommand.Parameters.AddWithValue("@imgpath", apppath);
mycommand.ExecuteNonQuery();
con.Close();
}
public string FormatURL2(object strArgument) //used to get that image bytes(while tracing its picking that bytes but not converting into image)
{
return ("Default2.aspx?id=" + strArgument);
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
SqlDataAdapter da = new SqlDataAdapter("select * from Image_DiSig",con);
DataSet ds = new DataSet();
da.Fill(ds);
ListView1.DataSource = ds;
ListView1.DataBind();
}
protected void ListView1_SelectedIndexChanged(object sender, EventArgs e)
{
Image1.ImageUrl = ListView1.SelectedValue.ToString();
}
in default.aspx source page:
<asp:ListView ID="ListView1" runat="server"
onselectedindexchanged="ListView1_SelectedIndexChanged" SelectedIndex="0" >
<LayoutTemplate>
<div style="border:dotted 1px black;">
<asp:PlaceHolder ID="itemPlaceholder" runat="server" />
</div>
</LayoutTemplate>
<ItemTemplate>
<img alt="name" align="middle" height="50px" width="100px" name="Image1" src='<%# FormatURL2(DataBinder.Eval(Container.DataItem, "id")) %>' />
</ItemTemplate>
</asp:ListView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:DigitalSignageConnectionString2 %>"
SelectCommand="SELECT * FROM [Image_DiSig]"></asp:SqlDataSource>
in default2.aspx.cs:
public partial class Default2 : System.Web.UI.Page
{
SqlCommand cmdd = new SqlCommand();
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["DigitalSignageConnectionString2"].ConnectionString.ToString());
protected void Page_Load(object sender, EventArgs e)
{
string strImageID = Request.QueryString["id"];
try
{
conn.Open();
SqlDataReader dr = null;
cmdd = new SqlCommand("select image from Image_DiSig where id=" + strImageID,conn);
dr = cmdd.ExecuteReader();
while (dr.Read())
{
if (dr["image"].ToString() == "")
{
Response.Write("no image");
}
else
{
byte[] img = (byte[])(dr["image"]);
Response.BinaryWrite(img);
}
}
}
catch (Exception ee)
{
Response.Write(ee.Message);
}
finally
{
conn.Close();
}
}
}
With Regards
Ch.Gayatri Subudhi
|
|
|
|
|
|
Hi,
I have a form, and in this form, there's a button and a listbox.
The question is how to add a item to the listbox using javascript when the user clicks on the button.
This is my thinking but it doesn't work.
<script language="javascript">
var lb = document.getElementById('mylist');
lb.options.....(what will be here?) :doh:
</script>
<form>
<select name="mylist" id="mylist">
</select>
</form>
Thanks in advance
Nguyen Quang Huy
modified on Wednesday, April 1, 2009 4:16 AM
|
|
|
|
|
Try the following:
<script language="javascript">
var lb = document.getElementById('mylist');
var option = document.createElement("option");
lb.options.add(option);
option.text = "This is option one";
option.value = "1";
</script>
|
|
|
|
|
thank you very much, it works properly.
Nguyen Quang Huy
|
|
|
|
|
Hello,
I have an ASP.Net application where all my TextBox components contain the "onblur" and "onfocus" events.
The principle:
- I'd like to allow the text selection in the control (when focusing)
- I'd like to disable the text selection of my page when outside the control (on onblur)
So, I have this code on the onfocus event :
Code:
function SetBodyDragOn(o)
{
document.body.onselectstart = new Function("return true;");
document.body.ondragstart = new Function("return true;");
document.body.onselect = new Function("return true;");
if (o)
o.className = "InputEditingOn";
}
And this one on the onblur event :
Code:
function SetBodyDragOff(event, o)
{
if (typeof event.preventDefault != 'undefined') event.preventDefault();
document.body.onselectstart = new Function(" {event.returnValue=false; try { event.stopPropagation(); event.preventDefault() } catch (ex) {alert(ex.message)} return false; } ");
document.body.ondragstart = new Function(" {event.returnValue=false; try { event.stopPropagation(); event.preventDefault() } catch (ex) {alert(ex.message)} return false; } ");
document.body.onselect = new Function(" {event.returnValue=false; try { event.stopPropagation(); event.preventDefault() } catch (ex) {alert(ex.message)} return false; } ");
if (o)
o.className = "InputEditingOff";
}
With all the browsers (even Firefox), it works fine during one moment.
After a certain time of using, on Firefox, the onblur is not fired.
The cursor stays in the control.
Why this behavior?
Why it works a certain time and not after (memory problem?)
To soluce the problem, I have to reboot my Firefox.
Thanks in advance,
Yannis.
|
|
|
|
|
I have a custom application page with code-behind in WSS. The page has two dropdownlists, one with AutoPostback=true so it will filter the contents of the second. They are wrapped in an Ajax UpdatePanel.
When I select from the first dropdown I get the below Javascript error. Doing a Google search finds 5 hits (and two are from us). Has anyone come across this?
System.Runtime.CompilerServices.StrongBox`1..ctor(System.__Canon)
This is definitely a WSS issue since the code has been tested in an ASP.NET page and it works as expected.
only two letters away from being an asset
|
|
|
|
|
Maybe it's the javascript.
|
|
|
|
|
Brilliant!
only two letters away from being an asset
|
|
|
|
|
I've been trying to narrow the problem down. I'm trying to filter a list of states based on the selected country
int countryID = Convert.ToInt32(CountryList.SelectedItem.Value);
var states = context.State.Where(c => c.Country.ID == countryID).ToList();
var states = context.State.Where(c => c.Country.ID == 2).ToList();
StateList.DataSource = states;
StateList.DataBind();
No matter how I try filter the EF object, Select, Where, etc., if it uses a variable, it fails. I've even tried creating a DataTable and populating it from states, but that doesn't work either.
Very perplexing.
only two letters away from being an asset
|
|
|
|