|
Generally speaking if you have been paid to develop a software app, then its work-for-hire and the source code belongs to the person who paid for your time.
|
|
|
|
|
The name and address of a reputable software company?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Dear all,
I am using C# , asp.net2.0
Actually I have a making survey form where based of request no of question displaying NOW quesetion is saved in table as questionid and questiondesp.
I am creating theses control and assign questiondesp to level but I have to save response against questionid .
my question is is there any other mean where I can display question and store value just like dropdownlist
Please suggest
Thank you.
regards
imran khan
|
|
|
|
|
You can make the tag or the id of the label store the id. You can also put a hidden field in each row containing the id.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I have a treeview I use as a menu. The treeview works perfect. BUT now I want to make a function where I add a new node to the menu programmatically. (I don't need help to add the new node in the database) I need help for: reload the menu and select the newly added node and expand the treeview to that node. I tried a lot, but nothing works for me.
Said with other words: I need a way to expand the treeview and make a specific node selected
I hope someone here can help me with my problem
My code:
TestMenu.aspx:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:TreeView ID="MenuTree" EnableClientScript="False" runat="server"
ExpandDepth="15" ShowExpandCollapse="False"
ontreenodeexpanded="MenuTree_TreeNodeExpanded"
ontreenodepopulate="MenuTree_TreeNodePopulate"
PathSeparator="/" ontreenodecollapsed="MenuTree_TreeNodeCollapsed">
<NodeStyle CssClass="menulink" />
<SelectedNodeStyle CssClass="menulink" />
</asp:TreeView>
<br /><br /><br />
ID:
<asp:Label ID="lblMenuId" runat="server" Text="Label"></asp:Label>
<br /><br />
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</asp:Content>
TestMenu.aspx.cs:
public partial class TestMenu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
DALMenu menu = new DALMenu();
if (menu.EditGetTopMenu(MenuTree) == Status.Success)
{
}
}
catch
{ }
}
}
protected void MenuTree_TreeNodePopulate(object sender, TreeNodeEventArgs e)
{
if (e.Node.Depth == 0)
{
try
{
DALMenu submenu = new DALMenu();
submenu.EditGetSubMenu(e.Node);
}
catch
{ }
}
}
protected void MenuTree_TreeNodeExpanded(object sender, TreeNodeEventArgs e)
{
try
{
int key_id = Convert.ToInt32(e.Node.Value);
lblMenuId.Text = key_id.ToString();
if (e.Node.Depth == 0)
{
TreeView t = (TreeView)sender;
for (int i = 0; i < t.Nodes.Count; i++)
{
if (t.Nodes[i] != e.Node)
{
t.Nodes[i].CollapseAll();
}
}
}
}
catch
{
}
}
protected void MenuTree_TreeNodeCollapsed(object sender, TreeNodeEventArgs e)
{
try
{
int key_id = Convert.ToInt32(e.Node.Value);
lblMenuId.Text = key_id.ToString();
}
catch
{
}
}
private void ExpandNodes(string valuepath)
{
string[] tmp = valuepath.Split('/');
string tmpValuePath = string.Empty;
for (int i = 0; i < tmp.Length; i++)
{
if (i == 0)
tmpValuePath = tmp[i];
else
tmpValuePath += "/" + tmp[i];
TreeNodeEventArgs e = new TreeNodeEventArgs(MenuTree.FindNode(tmpValuePath));
e.Node.ChildNodes.Clear();
e.Node.PopulateOnDemand = false;
MenuTree_TreeNodePopulate(MenuTree, e);
MenuTree.FindNode(tmpValuePath).Expand();
MenuTree.FindNode(tmpValuePath).Selected = true;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
ExpandNodes("s19//24");
}
}
Kind regards,
simsen
|
|
|
|
|
|
You will have to use the onclick event of the textbox and call a javascript function that will set the text of the textbox to ""
onclick="make_blank();"
<script>
function make_blank()
{
var textbox = document.getElementById("")
if(textbox!=null)
{
textbox.value="";
}
}
</script>
modified on Monday, June 23, 2008 2:28 AM
|
|
|
|
|
onclick event of textbox .. is Sure? if yes where is it ?
|
|
|
|
|
Modified my previous post.
look it over
|
|
|
|
|
onClinetclick="make_blank();"
rajeshprajapati
|
|
|
|
|
Rajesh B Prajapati wrote: onClinetclick="make_blank();"
Don't you mean onClientClick="make_blank();"?
onclick also works as far as i know
|
|
|
|
|
Doesnt that annoy you , that you spend time answeing a post then they delete so no one else can use it in the future...
We are not a Code Charity
|
|
|
|
|
Is asp.net validators are safe to use for validations, if yes then is there is need to validate on server side.
|
|
|
|
|
Asp.net validators use javascript to validate input that your users type in. Both Ie and firefox allow the user to turn javascript off this is why it is always a good idea to validate all inputs from the user server side too.
Trust but verify
|
|
|
|
|
Is all the asp.net validators are rendered as javascript, if yes then can any hacker hack the site, if the validations are done only using validators
|
|
|
|
|
If i turn javascript off on my browser and then visit your page there will be no client side validation on my inputs. And if there is no server side validation then yes i may be able to perform SQL injection or other attacks on your website
this is why server side validation is also very important and most definitely needed
|
|
|
|
|
I recommend buying a book on web development. Any ASP.NET book will tell you you need to validate on the server. Why ? b/c a user can hack your script and turn client side validation off. Sure, it's nice to have it, but you should not trust anything you get from the client,
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
how to clear particular page history only from browser.
please can any one help. I need hardly.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi
As a web site are not to play with client's browser, therfore user's browser's history cant be deleted by code.
Rather, you can block your user, who is viewing your webpage, GOING BACK TO ANY PAGE HE HAS ALREADY TRAVERSED. Check the following code,
<script language="javascript">
history.go(1);
</script>
Thanks,
Arindam D Tewary
|
|
|
|
|
how to write code for eXcel ACCRINT function PLease Help Me If this is possible
*************************** NC
ACCRINT = par * Rate / Frquency * E Ai/NL
*************************** L1
Formula URL= http://office.microsoft.com/en-us/excel/HP052089791033.aspx[^]
where:
par The par value of the security.
rate The annual interest rate or coupon when the security was issued.
frequency The number of coupon payments per year:
1 = annual
2 = semi annual
4 = quarterly
Ai = number of accrued days for the ith quasi-coupon period within odd period.
NC = number of quasi-coupon periods that fit in odd period. If this number contains a fraction, raise it to the next whole number.
NLi = normal length in days of the ith quasi-coupon period within odd period.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
modified on Monday, June 23, 2008 1:53 AM
|
|
|
|
|
what is the basic difference between common type system and common language specification ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
I'm sure the answer has nothing to do with ASP.NET
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi
how get color picker onmouseover event and stored this picked color value in cookies. get the value from cookie and set background-color this cookies value without post using ajax.net
please help me
with regards,
bretto
|
|
|
|
|
hi friends
i have 3 aspx page and 1 masterpage
1 aspx page is top banner
2 aspx page is footer
3 aspx page is leftlinks
questions
1.how can i add these three page in master page
2 In run time top banner only display . i have button in top banner.i click that button after that another two pages display.how can i achive this.
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|