|
sorry not sure how you would do that
why are you trying to change it to html?
|
|
|
|
|
for making my website seo friendly
|
|
|
|
|
|
Hi all...
How to save an excel file as a web page using c#? please help me....
Pradeep Reddy
|
|
|
|
|
hello sir
sir i am using asp.net with c#. i want output like this==
*****
***
*
***
*****
my code is--
for (int i = 5; i < 6 && i > -1; i--)
{
for (int j = i; j > 0; j--)
{
Response.Write("*");
}
}
pls help me urgent.
gayatri
Gayatri
|
|
|
|
|
for (int i = 5; i < 6 && i > -1; i--)
{
for (int j = i; j > 0; j--)
{
Response.Write("*");
}
Response.Write("<br>");
i--;
}
for (int i = 2; i < 6 && i > -1; i++)
{
for (int j = i; j > 0; j--)
{
Response.Write("*");
}
Response.Write("<br>");
i++;
}
"No Candle loses it's light while lighting up another candle"so never stop helping others because it makes your life more meaning full...
modified on Tuesday, January 22, 2008 5:26:37 AM
|
|
|
|
|
thanku for reply
ya its working now
thanku very much
Gayatri
|
|
|
|
|
Now i have modified my above code....Plz check it out....
"No Candle loses it's light while lighting up another candle"so never stop helping others because it makes your life more meaning full...
|
|
|
|
|
Welcome...
"No Candle loses it's light while lighting up another candle"so never stop helping others because it makes your life more meaning full...
|
|
|
|
|
I want to develop asp.net application which contains menu but menu items should be generated from database. My intension is that Administrator can change menu items by working only on database, no need to change front end any how.
For example: Web page contains Menu as
1. Home
2. About Us
3. Contact Us
So if Administrator wants can change About Us menu to Our Clients menu, so administrator only need to modify in database don't touch front end any how.
Any small help also appreciated.
Thanks in advance.
Dilip Kumar Vishwakarma
|
|
|
|
|
I would have thought that you just do the following:
create a table i.e. table_menu
Insert all your menu items i.e. home, contact us etc
Then in your backend code create a select statement which selects all fields from that table and loop it until all fields are displayed.
Then whenever the user updates the field in the database it changes straight away in the website
you could even build a front end app for them to edit the database through a simple form
hope this helps
|
|
|
|
|
Hi,
I was using this code in asp.net 2003 and it was working fine..
I am using vb script.
<asp:textbox onkeypress="OnlyNumber('txtConfirmACnumber')" id="txtConfirmACnumber" oncopy="return false" runat="server">
function OnlyNumber(str)<br />
{<br />
if ( ((window.event.keyCode <48) | (window.event.keyCode >57)))<br />
{<br />
window.event.returnValue=false<br />
}<br />
}<br />
But this code does not work properly in asp.net 2.0, This showing "window" is not a member.
Can anyone tell me is onkeypress not supported in asp.net 2.0????
THANKS
|
|
|
|
|
check this out might help you
http://sgdotnet.org/blogs/chuawenching/archive/2006/12/29/ASP.NET-2.0-_1320_-Move-the-cursor-from-1-textbox-to-the-other-automatically.aspx
|
|
|
|
|
use the following codes in server side, remove onkeypress attribute in the client side code.
txtConfirmACnumber.Attributes.Add("onkeypress","OnlyNumber(this.value)")
Regards
Elaraja.S
|
|
|
|
|
Hi all...
How to extract picture from excel sheet to a jpg file...
Pradeep Reddy
|
|
|
|
|
Dear Friends I am trying to load a file by filestream but when i write then command
file=new filestream(filepath,filemode.create)
its gives me the error "Access to the path is denied". Please Help me
|
|
|
|
|
I am not sure but this can help...
can you please make sure that ASPNET user account have appropriate access rights to the file?
|
|
|
|
|
Dear try to upload in Binary format, while using filestream..
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
By default the asp.net application will work under aspnet user rights.
aspnet user don't have rights to create files in the hard drive.
if you want to write files in the server, you can go one of follwing way.
1. share the path, give the rights to every one. write the file in this shared folder.
2. give the admin rights to the asp.net (it's worst case, nobody accept).
3. User impersonation. - search asp.net impersonation for more info.
Regards
Elayaraja.S
|
|
|
|
|
Hi all
i have array
[0,1] = "abc"
[0,2] = "dfd"
[0,3] = null
[0,4] = "abc"
[0,5] = "abc"
[0,6] = null
How can i remove item have value is null ?
|
|
|
|
|
hi AnhTin,
I am dilip, you can remove element from array you need to check whether element consists of null then you need to shift up array.
<br />
public static void check(array[][])<br />
int i,j,k;<br />
for(i=0;i<1;i++)<br />
{<br />
for(j=1;j<7;j++)<br />
{<br />
j=k;<br />
if(array[i][j]==null)<br />
{<br />
while(k<7)<br />
{<br />
array[i][k]=array[i][k+1];<br />
k++;<br />
}<br />
}<br />
}<br />
}<br />
Hope this will help you.
Dilip Kumar Vishwakarma
|
|
|
|
|
hi friends,
i am getting a run time error when i am trying to access the function defined in the webservice(WFC) from the client(i.e webform).
COULD NOT FIND DEFAULT ENDPOINT ELEMENT THAT REFERENCES CONTRACT 'CITIZENSERVICE.ICITIZENSERVICE' IN THE SERVICEMODEL CLIENT CONFIGURATION SECTION. THIS MIGHT BE BECAUSE NO CONFIGURATION FILE WAS FOUND FOR YOUR APPLICATION, OR BECAUSE NO ENDPOINT ELEMENT MATCHING THIS CONTRACT COULD BE FOUND IN THE CLIENT ELEMENT.
Web service Name : CITIZENSERVICE
Interface Name : ICITIZENSERVICE
Please help me out
Thanks in Advance
Chandra Gupta
|
|
|
|
|
i m using gridview to show the user and a child gridview to show the user details in the parent gridview cell..
my parent grid has two columns and child grid opens in the first cell.
now i want to show this grid in both cells..
the way to do this is merging the two cells.
but, how can i do this...
Please help me ...
thanx in advance..
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
set the colspan in the child cell to 2
it can be done in the OnRowDataBound event.
Regards
Elayaraja.S
|
|
|
|
|
Hi I am new to Asp.net....
I am converting a htm files in to aspx files for localization issues.
I have a table with width=100% and height = 100%.
when I open the html page inside a fixed frame window. The table is not filling the whole window.
I want the last <tr> of the table to be on the bottom frame of the window. The below is the piece of my table.
At present the last <tr> of the main table is displayed above the window size. I want the empty space between the tr and the window size to be removed....
any help is highly appreciated....
<body scroll="no" onkeypress="document_onkeypress();">
<form id="faqForm" runat="server"></form>
<table id="faqTable" cellpadding=0 cellspacing="5" border=0 width="100%" style="height: 100%">
<tr>
</tr>
<tr valign="bottom" >
<td>
<table cellpadding="0" border="0" cellspacing="0" width="100%">
<tr>
<td align="left"><a class="help" href="#" onclick="openHelpWindow('FAQ_help.aspx?culture=<%= Request.QueryString["culture"] %>',400,500);"><%= Resources.Immediacy.FAQ.FAQ_Help%></a></td>
<td align="right">
<input type="button" class="button" value="<%= Resources.Immediacy.FAQ.FAQ_ButtonOK >" id="ok" name="ok" onclick="doOK()">&nbsp;&nbsp;<input class="button" type="button" value="<%= Resources.Immediacy.FAQ.FAQ_ButtonCancel %>" id="cancel" name="cancel" onclick="window.returnValue=false;window.close();">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
|
|
|
|