|
sorry its also searching like multiple keywords not exact phrase.
regards
venkat
|
|
|
|
|
|
taltal81 wrote: without Javascript.....
Use VBScript[^]
Regards - J O H N -
|
|
|
|
|
i need to retrieve all the controls placed in the content place holder in content page ,so that i can get all the textboxes from them to clear their text when i click reset button
Suni
|
|
|
|
|
You can Navigate through the ContentPlaceHolder Control's and Check the control is of Type TextBox. You can write something like this...
For Each child As Control In c.Controls
If TypeOf child Is TextBox Then
CType(child , TextBox).Text = ""
End If
Next
Regards - J O H N -
|
|
|
|
|
JohnPrabhu ji!
i have tried your code but it's not working.
i got it solved this way..
.i put an empty panel
.using findcontrol()collected each wanted control and performed desired task on that control.
thank you for helping me.
Best Wishes.
SunithaNallana
|
|
|
|
|
I guess .NET Framework is Globalized and It works the same in all the .NET installed PC's all over the world. For some Unknown reason the same code works fine in my System.
Regards - J O H N -
|
|
|
|
|
Hi,
i have an input type="file" that attachment a file from my computer.
when i press on "send" button i want that this file will upload
i using with "mail.Attachments" element.
please help me ....
|
|
|
|
|
|
I guess he want to Upload the file to the Server before sending it as an attachment along with the mail.
Regards - J O H N -
|
|
|
|
|
Hello,
I want to get the value of checked node of Treeview with Check box.
Can someone throw some idea how to het the values of checked node of
Treeview in ASP.Net
Thanks
|
|
|
|
|
hi
protected void btnSubmit_Click(object sender, EventArgs e)
{
ArrayList CategoryArray = new ArrayList();
foreach (TreeNode tn in treeCategory.Nodes)
{
if (tn.Checked == true)
{
CategoryArray.Add(tn.Value);
}
CategoryArray = GetCategoryIDList(CategoryArray, tn);
}
}
public ArrayList GetCategoryIDList(ArrayList array,TreeNode tn)
{
foreach (TreeNode tchild in tn.ChildNodes)
{
if (tchild.Checked == true)
{
array.Add(tchild.Value);
}
GetCategoryIDList(array, tchild);
}
return array;
}
you get total node selected in CategoryArray
if you have any problem then tell me
Jintal Patel
|
|
|
|
|
Thanks for reply.
But i want to get the value as soon as user checked on node. if user checked second node firset checked node become unchecked and get the value of currently checked node.
|
|
|
|
|
hi
protected void trvCategories_SelectedNodeChanged(object sender, EventArgs e)
{
foreach (TreeNode nc in trvCategories.Nodes)
{
if (nc.Checked)
{
if (ViewState["tree"] != null)
{
if (ViewState["tree"].ToString() != trvCategories.SelectedNode.Text)
nc.Checked = false;
else
ViewState["tree"] = trvCategories.SelectedNode.Text;
}
else
{
ViewState["tree"] = trvCategories.SelectedNode.Text;
}
}
}
}
this will work for one level of tree .if in your tree have multiple level then make change in logic of getting child node.it will work..you want that also then tell me
Jintal Patel
|
|
|
|
|
|
hi
you get the solution or not
Jintal Patel
|
|
|
|
|
How can i store entire path of a file which has uploaded through asp.net uploadfile control?.
i want to store in sql database entire path of a uploaded file.
plz help me
yogesh
|
|
|
|
|
Do you know where you saved the file in server ?
|
|
|
|
|
FileUpload1.PostedFile.Name gives the entire path of the file in client machine...but this works only in IE in firefox or any other browser u will get only the file name ...
But why do u want to store entire path of the file when located in client's machine? When a file is uploaded u will save it at server and hence store the serverpath of the filename
Koushik
|
|
|
|
|
Why? That path only makes sense on the client computer, the server can't use it for anything.
Some browsers doesn't return the comple path, and some antivirus/firewall software removes the complete path, so there is no guarantee that you will even get the complete path to the server.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hello,
i want to allow users to copy an entire row from excel, and then with one "ctrl+v", this row will be pasted to a gridview in my web app. is this possible?
Thanks in Advance.
|
|
|
|
|
You could provide a textbox which you can paste the row into which can then be processed and added to the gridview, the input of the textbox could easily be split at vbTab.
|
|
|
|
|
Thanks for eary reply.
But i want to copy the row from Excel of 3 columns and i want to paste on gridview it exactly shows the row of 3 columns.
|
|
|
|
|
Hi,
I have following requirements. User can copy/Paste contents from excel sheet to ASP.NET gridview control. I have a custom grid view control. How can i do this.
Can someone throw some idea how can i implement this with some design/code etc.
Thanks in advance
|
|
|
|
|
Hello Everybody
Table name dbo.Category in SQL SERVER 2005 and DropDownList name ddlCategory on my asp.net page.
ddlCategory.DataTextField = "CATEGORY NAME" (which is coming from SQL SERVER 2005)
how can i get ddlCategory selected item identity? (without write function, like function getCategoryID( categoryname as string) as integer)
waiting for your reply
Sarfarj Ahmed
|
|
|
|