|
I think your IIS is not configured correctly...
Take a look if the site you added to IIS actually runs or not. Also add permission to asp.net to the folder you publish.
If still have problems, install aspnet again.
To install go to Command prompt of Visual studio.
type
aspnet_regiis /i
I hope this will cure the problem.
|
|
|
|
|
go to your command prompt of VS.net and run this command
aspnet_regiis -i
|
|
|
|
|
hi,
i want to convert a date selected from calender control into english words.
e.g 11/01/1948 to-- eleven january nineteen fourty eigth.
can anybody help!
|
|
|
|
|
guess you've to write your own algo for that 
|
|
|
|
|
you have to use a method which returns the word for each number. For an example refer the following code.
public string getWordForNumber(int number)
{
string word = null;
switch (number)
{
case 1 :
word = "One";
break;
case 2:
word = "Two";
break;
..
..
..
default:
break;
}
return word;
}
For 30/31 days of month, you dont need 30/31 case on your switch. use another method which returns 10 to the power 1 numbers, For an example, for 21 --> for number 2 it should return Twenty, using the above method you can get next number, for number 1 - One, All together --> Twenty One
|
|
|
|
|
Helo
How could i change a SQL database 's table name in Virtual Web Developer? when i click the properties , its not editable ...
Thanks
|
|
|
|
|
Can you explain your problem little bit more
|
|
|
|
|
|
Respected,
Can We Visible And unvisible Asp.net Panel By Using JavaScript.
Thanks.
|
|
|
|
|
Yes, you can. Just get the document id and make it's property visible true or false.
|
|
|
|
|
Use
panel.ClientId to get the client id which is rendered to the browser. Pass it to hidepanel and showpanel javascript function when needed.
To hide panel use
function hidePanel(objId)
{
document.getElementById(objId).style.display = "none";
}
function showPanel(objId)
{
document.getElementById(objId).style.display = "block";
}
Hope you can make it yourself now easily.
|
|
|
|
|
hey guys
i would like to restrict the user from inserting more then 70 letters in the
ajax html editor contect
can someone help me ?
modified on Thursday, November 5, 2009 7:06 AM
|
|
|
|
|
which editor you are talking about ?
If it is just a textbox you can check like this
txtbox keypress="javascript:return checkNosofLetters(this, event);"<br />
function checkNosofLetters(evt)
{
var e = evt || window.event;
if(e.srcElement)
return e.srcElement.value.length < 100;
}
|
|
|
|
|
Hello friends
I display the pdf file using ashx handler in aspx page
now i want to display the particular page in that handler
suppose my pdf document contains 8 pages and i display the page number near to it. onclicking the page number, i want to open that particular page what user click
ie suppose user click page number 3 means i want to open page no 3 among that 8
i am using ashx handler for display the pdf document.
|
|
|
|
|
Did you mention
Response.ContentType = "application/pdf";
Response.AddHeader("content-length", yourbufferlength);
Response.BinaryWrite(...)
|
|
|
|
|
Yes sir
i use this method to display the pdf
now i need to move to particular page when user select the page number.
ie there are 8 pages in that pdf document i provide the link to the page number nearby. where user click page number 3 the document should display the page number 3 content
|
|
|
|
|
In that case you need to put some commands I guess to the PDF plugin of browser.
I dont know if it is possible or not. But I do think you need to somehow read the pdf in server and create pdf with only the page number that the user wanted to see, loading the PDF in IFrame .
But in that case there would be postback for every page calls to the server.
|
|
|
|
|
i retreive the data from the database in binary format and render in ashx handle.
so i dont know how to generate that particular page
if it is possible its solves my problem
|
|
|
|
|
hi
there will be both public and private keys in a strong name
how private key in a .snk file can be easily compromised.
Can u please explain me the exact approach for this?
|
|
|
|
|
How to Add Handlers for dynamically created web controls in ASP.net ?
I have tried below code but..event is not getting fired..Can anyone help it out..?
<pre>For iCounterVar As Integer = 0 To sAnswers.Length - 1
Dim t As New TextBox
tblCell = New TableCell
tblRow = New TableRow
t.Text = sAnswers(iCounterVar).ToString
AddHandler t.TextChanged, AddressOf MyTextChangedEvent
tblCell.Controls.Add(t)
tblRow.Controls.Add(tblCell)
tblQuestion.Controls.Add(tblRow)
Next
Protected Sub MyTextChangedEvent(ByVal sender As Object, ByVal e As System.EventArgs)
lblMessage = New Label
lblMessage.Text = "Cuaght TextChanged :" & DirectCast(sender, TextBox).Text & " In " ' & DirectCast(sender, TextBox).Parent.ID.ToString)
PlaceHolder1.Controls.Add(lblMessage)
End Sub</pre>
|
|
|
|
|
Are you assigning handler to Dynamic Control On Page Load Event (ie- On Every Postback) ??/
|
|
|
|
|
No i am not assigning any handler in page load,
in page load i am just calling the method to create these controls, evrything is in the method itself and that code i have alredy pasted.
Thanks for your quick reply on this.
|
|
|
|
|
If you are calling a method in Page_Load it automatically means you are in Page_Load.
|
|
|
|
|
Read this :
http://www.youcanlearnseries.com/programming%20tips/csharp/SetEvents.aspx
As far as I suggest, add eventhandler in Pre_Init than Page_Load
|
|
|
|
|