|
Hi rashida
Thanks for ur reply
its work fine
now i want to remove that item when i uncheck checkbox and selected index should be -1 of 2nd dropdownlist.
Pathan
|
|
|
|
|
Hi friends
I want to get value from one textbox to other textbox on oncheckchange event of check box.
i write this script
function getval()
{
if(document.getElementById('CHCK').checked==true)
document.getElementById('TB_2').value=document.getElementById('TB_1').value;
else
document.getElementById('TB_2').value="";
}
CHCK.Attributes.Add("OnCheckedChanged", "return getval();")
But I got no result.
PaTHaN
|
|
|
|
|
replace this
CHCK.Attributes.Add("OnCheckedChanged", "return getval();")
by
CHCK.Attributes.Add("onclick", "return getval();")
Regards
Shajeel
|
|
|
|
|
Dear Concerned,
I want to create a property in my user control which i am creating in Web Control Library. I am using .Net 2003.
My question is that how I can create a property that will contain a dropdown list & will have five values 1,2,3,4,5.
The Programmer will be able to select one of these values at design time in his aspx page.
Please help in the form of code.
Thanks,
Fasih
fasih_is_my_signature
|
|
|
|
|
Not sure what exactly you are looking for, but it sounds like you need to know how to populate a drop down list.
ddl.Items.Insert(0, "--Select--");
ddl.Items.Insert(1, "Value 1 or whatever");
This is how you hard code the values to be displayed, if you want to load 'em dynamically, then use a dataset or something as a datasourse for this drop down list. Look at the code below:
ddl.DataSource = ds;
ddl.DataTextField = "Columns_Name";
ddl.DataValueField = "Column_Name"; // note this won't be diaplayed
ddl.DataBind();
*NOTE : ddl = drop down list
Hope this helps.
sam
Eating, drinking and coding...you can't have it better than that!!
|
|
|
|
|
Hi all i bulding app
i get image but i want it to System.Drawing.Image
System.Drawing.Image b = System.Drawing.Image.FromStream(objstream);
b.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
|
|
|
|
|
Ok... did you have a question also?
---
b { font-weight: normal; }
|
|
|
|
|
Yep, You got a image and ...
keep Learning and you never will be out of date...
|
|
|
|
|
I get a Image by WebService
i use method
System.Drawing.Image b = System.Drawing.Image.FromStream(objstream);
b.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
but Response.OutputStream show is binray i want get to System.Web.UI.WebControls.Image
|
|
|
|
|
Hi,
I have code that fires a stored procedure, to insert a new location.
I now need to add another insert, that inserts a destination into another table, using a trigger.
I pass the following variable to my location table : @LocationCode
I want to create a trigger, that everytime an INSERT is fired on the Location table, it should add a row to my Destination table.
Here is what I have to create the trigger:
<br />
<br />
CREATE TRIGGER DestInsert ON [Location]<br />
FOR INSERT<br />
AS<br />
<br />
INSERT INTO Destination<br />
(LocationCode, Destination, AreaCode, DeletedFlag)<br />
VALUES (@LocationCode, 'New', '123C', 0) <br />
<br />
Will this create a trigger for me, that adds the same @LocationCode variable I added for the stored Procedure to the trigger?
|
|
|
|
|
use..
Inserted.Locationcode
it will fetch the location code from inserted location
enjoy
Dinesh Sharma
|
|
|
|
|
DineshSharma wrote: Inserted.Locationcode
Thanks, just one more thing.
Is Inserted a DB function, or does it gets the last LocationCode inserted?
|
|
|
|
|
It's a table that contains all the rows that were inserted when the trigger was fired.
|
|
|
|
|
Hey hi,
I want to extract a date from oracle dbase and set the calendar date acording to the date that i got from database. but i m not able to do that.pls help.
There's never a Wronge Time To Do The Right Thing !!
|
|
|
|
|
Use this ....enjoy
MSCal.SelectedDate = YourDate;
Dinesh Sharma
Team Leader (Software Development)
|
|
|
|
|
hi,
Thanks for reply...
i tried that solution already but its not working..
//////////////////
instdate = DateTime.Parse(instdate).Date.ToString("MM/dd/yyyy");
calInstDate.SelectedDate = DateTime.Parse(instdate);
//////////////////
this is the code that i m trying...but not working..
There's never a Wronge Time To Do The Right Thing !!
|
|
|
|
|
replace
calInstDate.SelectedDate = DateTime.Parse(instdate);
by
calInstDate.SelectedDate = DateTime.Parse(instdate).Date;
and also use
calInstDate.VisibleDate = DateTime.Parse(instdate);
to show selected date if required.
Regards
Shajeel
|
|
|
|
|
I need ur help in following two situation, if u any idea then let me know.
1) I want refresh partial web page of ASP.NET application. Ex. I put RSS of NSE/BSE graph in web page which can updated frequently.
2) I want Excel sheet print with their formulas not only data. Ex. I take print of marksheet but also want formula during print which is used for calculating percentage or total.
Is there any possible way then let me know, i wait for ur favourable reply.
Thanks in advance.
|
|
|
|
|
If you want to partially update a part of the web page as oppose to all of it, and frequently, then you might want to take a look at AJAX. Code Project have a number of good tutorials at http://www.codeproject.com/Ajax/
|
|
|
|
|
Here i am using the following javascript for alert a msgwindow.problem is, it is opening new page and giving the message,How to alert the same in the same page??It is happening on a button click event.
--->
if txt1.text="" then
Response.Write(" alert(' Enter username,it shd not be null '); ")
end if
kissy
|
|
|
|
|
try this one
response.write(" ....)
|
|
|
|
|
Both are giving same result.my requirement is the message shd be displayed on the same form,not like response.write()
.It directs to different page.
kissy
|
|
|
|
|
u should add attributes on the button click add following code on your html page
<br />
<script language=javascript><br />
function chktxt()<br />
{<br />
if (document.getEelementById("textbox1").value='')<br />
{<br />
alert('Enter Some Value');<br />
}<br />
}<br />
</script><br />
and add following code on your .vb page in page_load event
<br />
button1.attributes.add("onclick","return chktxt();")<br />
check and reply me quick
|
|
|
|
|
This is working perfectly.
But my doubt here is,this is working for testing textboxes,
If i want to display after Add_Button,i am displaying message "Records were added",here i am dipslaying with a label.In this case can i display by using script for simply " Records were added"
kissy
|
|
|
|
|
tell me what exactly u want!
|
|
|
|