|
hi how we create popmenu by html and javascript,plz help me????????
|
|
|
|
|
You can use Ajax, thats if your using asp.
|
|
|
|
|
I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............
|
|
|
|
|
|
use javascript...
SetInterval("enableBtn()", 1000);
function enableBtn()
{
var current = new Date();
var start = "1:00 PM";
var constant= new Date("1/1/2007 " + start);
diff = current - constant;
if (diff < 0)
{
var btn = document.getElementById("btn");
btn.disabled = false;
}
}
Hope this helps.
|
|
|
|
|
You are going to expect users to keep a webpage open for 24 hours at a time? YOu don't need any AJAX or JavaScript, just enable/disable the button when the page is rendered.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: You are going to expect users to keep a webpage open for 24 hours at a time?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
KhandelwalA wrote: I want to make a button which should be enable only once in 24hrs.
How u said 24 hrs?From users point of view?
I don't think that its a good idea.As Mark said a user can't keep a page open for 24 hrs.
|
|
|
|
|
Why would you do that?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i'm working on a layered arch. website
in the BLL the BLL classes can't see the table adapters of the XSD
why ????
also i can't import the dataset table adapters
and by the way the same code works perfectly on another computer !!!!!!!!!!!!!!!
help plz
|
|
|
|
|
You cant access the XSD.. Is it excluded?
EmZan wrote: the same code works perfectly on another computer
this is weird.
Check if something is missing..
|
|
|
|
|
Hi,
I want to translate user input to Marathi language and send it to Sql query to get the result.
Can anyone know how to build such translator?
I dont want to use google API as application will may work for offline.
The help is always appreciated...
|
|
|
|
|
In that case you need to make your own translator... Building translator means you need to take account of grammar as well, which means a bit of AI required.
The most possible way is the build a database. Just use Google API to get all the words in the dictionary of Marathi and store it, and place it whenever its required by the application.
|
|
|
|
|
How do i use update control to upload file and save it on the server.....and vice versa download......
multimedia files......
|
|
|
|
|
greendragons wrote: How do i use update control to upload file and save it on the server.....and vice versa download......
Did you search google to before post the question over here?
Here is the result
File Uploading using ASP.NET[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hy
I created Gridview dynamically runtime according to Arraylist Datatable
Now in this very Gridview I want Delete And Checkbox Control to be used .
How ot write code for this
plz Help me
|
|
|
|
|
AnupOmi wrote: I created Gridview dynamically runtime according to Arraylist Datatable
Why you want to do that?
|
|
|
|
|
hy i needed this in my program
i have dynamically created the gridview but not getting any idea how to write code for it as i donot know the name and number of gridview created
All these are created dynamicaaly and i have assign ID to it dynamicaly
.Can we Add code to a button at runtime as it can be created .So help me
|
|
|
|
|
AnupOmi wrote: i have dynamically created the gridview
Why don't you bind the gridview directly to the arraylist instead of creating it dynamically?
|
|
|
|
|
Actually What i am planning to do is as not what u thinking .let me Clearify to u.
First of all i Have two Database table .
1-> It is a WatchTAble having userid and Watchname(Unique with userid)
2-> It contains Added row of field with UserID and Watchname.it can have one userid with many Watchname And related value.
now here comes the question:
I am displaying GridView with Watchname,Totalid of another table,date onbehalf of userid.
it has a button to display All Checkbox selected watchname to another page
so here i donot know how many he is selecting .
And in another page i want Gridview with delete button and checkbox respectively with gridview each created .
I can create the Gridview dynamically According to its selection (working on it) but not have any idea baout how to handle delete by row
|
|
|
|
|
AnupOmi wrote: so here i donot know how many he is selecting .
This is not a problem but you know which columns you are displaying in the next gridview.So no need to dynamically create second gridview.Create a list of objects with the selected rows in it.
just like,
gvwSecond.DataSource=listSecond;
gvwSecond.DataBind();
where listSecond is populated with the selected rows.
Add Template Column to gridview and add whatever controls you want.
|
|
|
|
|
Actually i want to add delete button in template field
which is bounded dynamically so i cannot use the Gridview row command
not getting any isdea how to do this
|
|
|
|
|
You can either use commandfield like,
<Columns>
<asp:CommandField ShowDeleteButton="True" />
</Columns>
or TemplateField like,
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lbtnDelete" runat="server">Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
For more info,
http://msdn.microsoft.com/en-us/library/bb288032.aspx[^]
|
|
|
|
|
hi i want to submit the value of dynamically created textbox dynamically.for this i have written following code but it is givin error:object refrence not set to an instance of an object.
the code is:
protected void Button2_Click(object sender, EventArgs e)
{
OleDbDataReader dr = null;
string str = "Select * From ProductSpecification";
OleDbCommand cmd = new OleDbCommand(str, conn);
conn.Open();
dr = cmd.ExecuteReader();
for (int i = 1; i < dr.VisibleFieldCount; i++)
{
while (dr.Read())
{
string s=dr["Specification"].ToString();
TextBox txtctrl=new TextBox();
txtctrl=(TextBox)Panel2.FindControl("txt" + s);
string s1 = txtctrl.Text;
string s2 = "Update ProductSpecification Set(Value='" + s1 + "')";
cmd = new OleDbCommand(s2, conn);
cmd.ExecuteNonQuery();
}
}
conn.Close();
}
|
|
|
|
|
mylogics wrote: txtctrl=(TextBox)Panel2.FindControl("txt" + s);
I think you are getting error may be because of this.Plz check if you are getting that control by using FindControl.
|
|
|
|