|
|
hi
i have a problem in showing multiple images in one column on behalf of one id in datalist
can any one help me
|
|
|
|
|
Hi everybody,
I created a site using asp.net 2.0. That site has an html file which used to read and write some html codes at runtime. But I got an error message that is "Access to the path 'D:\WWWRoot\bolt.cc\www\Admin\Msg.htm' is denied." I talked with the service providers. They told me that they give full permission to that file. Also I checked the permission though the site control panel. The file has full permission to read and write. It is working correctly in the local mechine. This error occured at the time of open the file to write. Can you please tell the reason of this error?
Thanks and Regards,
Hogan
|
|
|
|
|
You can ask the provider to give ASP.NET account for full permission on that directory. If it's not possible, ask them an account name and password which is having full rights on the directory, then use impersonation before you write something to the file. You may check this[^] for getting an idea.
|
|
|
|
|
encrypt webconfig value of appsetting in asp.net
i am using this code but it Encrypt all Appsetting but i want encrypt only value of Appsetting.
CODE:-
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath)
Dim section As ConfigurationSection = config.GetSection("appSettings")
If Not section Is Nothing And Not section.SectionInformation.IsProtected Then
section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider")
config.Save()
End If
Piyush Vardhan Singh
|
|
|
|
|
Private Function ToSentenceCase(ByVal m As Match) As String
Return m.Value(0).ToString().ToUpper() & m.Value.Substring(1)
End Function
Dim text As String = Regex.ReplaceTextBox.Text, "\w+",AddressOfToSentenceCase)
this function is working fine to convet the first letter to uppercase but how this is working will any body say s the functionality
plz
|
|
|
|
|
|
i have a textbox field , there i want to insert only the numeric values.
i am using the RegularExpressionValidator / custom validator , there in the validation group i am writing [0-9] , but this is not working , after i insert the alphanumeric values, afterwards, it get postback
Please help.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
i think u use range validater and set type property integer and min. and max value
Piyush Vardhan Singh
|
|
|
|
|
hi sonia
u can use java script for this whic allows the user to enter the numerics only. in text box onkeypress u call this function
function Validate_OnKeyPress(iKeyascii)
{
if(iKeyascii >= 48 && iKeyascii <= 57 )
{
return true;
}
else
{
return false;
}
}
|
|
|
|
|
onkeypress is the funciton that i will add in the attribute of the textbox?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
hey sonia here is solution for ur problem..
u must use RegularExpressionValidator
<asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" setfocusonerror="true" controltovalidate="txtPoCode">
Display="None" ErrorMessage="Postal Code - accepts only numeric digits." ValidationGroup="iaValidator"
ValidationExpression="[0-9]*">
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Thank u Boss U r rt
Piyush Vardhan Singh
|
|
|
|
|
You can use Regular Expression validator for this. Try it!
Thanks & Regards
Niranjan
|
|
|
|
|
how can i make a first character in the word an upper case, is there any predefined function that do this?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
I hope there is no predefined function.
You may do it with nofocus or onkeypress events.
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
can you tell me where and when you want do this?
maybe when use input some word to a TextBox?
|
|
|
|
|
No. I think he can do this effect with CSS.
|
|
|
|
|
|
CSS
.news {<br />
font-weight: normal;<br />
color: #444444;<br />
font-family: georgia;<br />
}<br />
<br />
.news:first-letter{<br />
float: left;<br />
width: 42px;<br />
font-size: 62px;<br />
line-height: 51px;<br />
font-weight: normal;<br />
color:#444444;<br />
font-family: georgia, times;<br />
}
HTML
<div class="news">This is Michael Sync.</div>
Ref: http://cutephp.com/forum/lofiversion/index.php/t8957.html[^]
|
|
|
|
|
Michael Sync wrote: Use capitalize[^]
Simple and efficient. Good one Michael.
|
|
|
|
|
I have a aspx page with contents which I have put in a Frame in a side.If the User clicks the other options the content should get appended to the existing
aspx page that I have put in Frame.
How can I maintain the Old values and Appened the contents
Thanks in Advance.
|
|
|
|
|
I am not clear with ur question but I guess that u need to add some HTML tags to the page.
if so u can use innerHTML in javascript.
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
i think u should use innerHtml as follows.
innerHtml=innerHtml+NewContent
regards Eric.W
|
|
|
|
|
Hi,
can we can open .aspx page without showing its extesion.
i mean, suppose my aspx page name is info.aspx, but when i ren the
application then it open the page /info , form but .aspx should not
come,while opening page.
amit
|
|
|
|