|
How to create dynamic menu in asp.net 1.1
Is there any menu free tool available?
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
There are a few approaches you can take:
One is using Javascript (I haven't tried it)
Another is creating a table and an indenting structure to represent a heirarchy. IDing those rows, you can toggle visibility on and off from code behind.
Last approach is.. try looking up Tree View.
Hope this helps.
Happy Coding.
|
|
|
|
|
Hello,
How can I encrypt web config section which is outside web.config file?
E.g.
<connectionStrings configSource="ConfigFiles\connectionStrings.config"/>
If I use
aspnet_regiis -pef "connectionStrings" "FilePath" -prov "MyProvider",
It does encrypt if the section is there inside web.config, but if the section is outside web.config, how can we encrypt that. Is there some way we can achieve this?
Thanks and regards,
- ashish
|
|
|
|
|
Hi Ashish,
Use CipherData Class for encrypting it.
With Regards
Satips
|
|
|
|
|
Hi,
I have a dropdown list which has data bound to it from a User Table. The DropDownList currently displays the Surname of the user.
I would like it to display the Forename AND the Surname. Any ideas?
Thanks.
|
|
|
|
|
You can get the desired full name from the database itself by combining the two..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Solved it in the following way;
Using this query : "SELECT inUserID, Surname + ', ' + Forename AS ForenameANDSurname FROM tblUser"
Set the following :
Me.ddlDropDownList.DataTextField = "ForenameANDSurname"
and Finally set the DataTextField attribute in the DropDownList WebControl to "ForenameANDSurname" as well.
Did the trick.
Thanks for the reply anyway I think I did what you meant.
If anyone needs more indepth info, try :
http://authors.aspalliance.com/aldotnet/examples/doublecolumnddl.aspx[^]
OR: search "DropDownList multiple columns" in google or something.
|
|
|
|
|
here i have a problem that ,i want to set some (x,y) value for each pixels for an image.when i am giving the input (x,y) values ,the program should find the exact (x,y) values in the image and set some small mark there.for this-
1)how to set values for each pixels?
2)what is the code for finding exact position in the image ,when i am inputting the cordinate values?
3)how to differentiate pixel colors in asp.net?
for all this i am using asp.net with c#.
share your knowledge in this..
"we may not win immediately..
but we will win defenetly..."
|
|
|
|
|
i want to get the contains of XML file into Html tag.the summary is tht i develop a template site whn user filled his/her detail into asp.net web page and submit them thn a web page is ready for the user according to his/her detail as well as store into sql server 2005. thn i think we store his detail into database and create a xml file according to his detail.after tht i want to get these detail into html page bcoz we give tht web page copy to the user.
Deepak
|
|
|
|
|
you can use xml control to do this. the xml control has two properties
document src file--->you have to give the xml file here
transporm source file ---- give xslt file here
do you know this or want furthur help?
Nizha
|
|
|
|
|
I have to display database values into textboxes,if db values are null,it should display a blank spaces in respective txtboxes,how to compare
Txtpays.Text = ds.Tables("employee").Rows(r)("Pay_Scale")
if pay_scale is null,how to check before display
,give me correct solution
-- modified at 3:58 Wednesday 27th September, 2006
|
|
|
|
|
You can check that using DBNull.Value
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have that idea,but it gives boolean value,i need to display if null,a blank space ,otherwise watever value in hat column.
so for each column display am i need to check and display????
How to check and display as per my requirement
|
|
|
|
|
you can put that in a if statement and if it is true then set a blank space otherwise assign the specific value.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
You can filter this in the query itsef, as:
select isnull(fieldname,'') from tablename
Let me know whether it satisfies you
-- modified at 5:28 Wednesday 27th September, 2006
Know is Drop, Unknown is Ocean
|
|
|
|
|
In a web service we have a web method
[webmethod]<br />
public Myresponse SendTransaction(MyRequest req)
Here MyRequest and MyResponse classes are inherited from MyMessage class.
When we view the asmx file
http://localhost/DemoServiceExtended/DemoService.asmx?op=SendTransaction
The sample SOAP request and response xml does not list the public Fields in base class(MyMessage ).
How to make the base class fields available in listed XML.
|
|
|
|
|
can any one have any idea how to embed a flash file(.swf file)into asp.net page
i am using vs.net 2003
thanks in advance
i m pradip kishore from india,working in vb.net & asp.net
|
|
|
|
|
|
HI
Guys can any one let me know is there any tool available for monitoring state service and asp.net worker process , plzzzzzzz let me know ASP,thankx in advance.
|
|
|
|
|
|
Hi all! pls guide me to a spell checker. Found some on the net but there are issues like one is using query string to pass the text to check its spelling, other is using vbscript which is not supported by all browsers, and another one is using Ms word.Pls provide me a link which solves all these issues.
Many Thanks!!
|
|
|
|
|
|
Hi All,
When I Export DataGrid to Excel ,the DataGrid contains pound symbol(£).But After exporting the data to excel an unwanted character  comes prefixing the pound symbol.
can anyone please help me in eleminating the unwanted symbol.
I am attaching the code which i used for exporting.
Thank You
Reagrds,
Diffin
Ihe first step is to insert a <div > that embeds the entire Nested GridView:
<div id="divNestedGrid" runat="server">
<asp:GridView id=.. >
...
<asp:GridView .... />
---
</asp:GridView>
</asp:GridView>
</div>
Next step is add a hidden variable in the same aspx form.
<input type="hidden" id="hdnInnerHtml" value="" runat="server" />
Now add a javascript function that in the aspx that fills the hidden variable with the inner html of the div.
function getInnerHtml()
{
var element = document.getElementById("divpreview");
var store = document.getElementById("hdnInnerHtml");
//add the css styles you have used inside the nested GridView
var css = "<style type=\"text/css\" id=\"style1\">.textbold {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #000000;font-weight: bold;text-decoration: none;}.row1 {background-color: #FFFFFF; font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #000000;height: 18px;padding-left: 5px;}.;
store.value = css + element.innerHTML;
}
Now in the Code Behind, first add the javascript function to be triggered on the click on the Export button.
btnExport.Attributes.Add("OnClick", "getInnerHtml();");
Finally, write the following code in the Export Button click event, to Export to Excel:
string html = hdnInnerHtml.Value;
Response.Cache.SetExpires(DateTime.Now.AddSeconds(1));
Response.Clear();
Response.AppendHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState = false;
Response.Write("\r\n");
Response.Write(html);
Response.End();
|
|
|
|
|
You may need to set the ContentEncoding property of the Response object with Encoding.Default or Encoding.UTF7 .
|
|
|
|
|
Hi,
Thank you so much for solving my problem.
I was at the back of this problem for so long and badly needed a solution.
Thank you again.
Regards,
Diffin
|
|
|
|