|
how to -Develop a webpart which will display all the sites and sub sites.
For each site, it should display the name of all the web parts contained in that site.
This webpart when placed in any site should behave the same.
If any webpart in the site is hidden, specify accordingly.
using asp.net and c#
|
|
|
|
|
|
Is there any restriction in the length of the string we pass as Querystring with the Url?
Thanx
|
|
|
|
|
Yes there is a limitation for that you can only send 2047 characters maximum.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello,
I have a big problem. I need to loop every file in the folder for *.gif image. I dont now there namnes. When I have find a image file I need to read in a *.txt with the same name exept for the *.txt.
Now to the problem I have a loop that find the *.gif image and now I want to read in the text in the text file with the same namn but it is a *.txt how can I do that.
If someone have any exemple it should be create. Thank.
|
|
|
|
|
i would do something like -
<br />
foreach (string s in System.IO.Directory.GetFiles(@"c:\dir", "*.gif"))<br />
{<br />
string txtPath = s.Substring(0, s.Length - 3) + "txt";<br />
System.IO.TextReader tr = new System.IO.StreamReader(txtPath);<br />
string text = tr.ReadToEnd();<br />
tr.Close();<br />
}<br />
|
|
|
|
|
|
Well this is the code I have!
<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(Server.MapPath("/test/"))
Set fc = f.Files
For Each f1 in fc
if right(lcase(f1.name),4) = ".gif" then Response.Write("
")
Next
%>
And in this code I need to read in the text file so the image is ahown and then the text. How do I do that with the code you give me?
|
|
|
|
|
are you using asp.net or asp 3? cause the code i have given you will only work in asp.net. if you wanted to do this in asp 3 you would have to have do something like:
<br />
'get the file path -<br />
Set txtFilePath = Replace(f1.name, right(lcase(f1.name),4), ".txt")<br />
<br />
'then read the file using fso<br />
dim txtStream<br />
Set txtStream = fso.OpenTextFile(txtFilePath, fsoForReading)<br />
<br />
'the write the string out<br />
Response.Write txtStream.ReadAll<br />
txtStream.Close<br />
im a bit rusty in this area but this should give you more or less an idea!
|
|
|
|
|
Hi,
I have a textarea that is used for a description. After I add it to the database and display it to the user, then it doesn't add the spaces (new line) between each paragraph, instead it adds all the text to one piece of text. How do I cater for this?? I am using C# 2.0.
How do I limited the number of characters entered into a textarea to 200? There is a property that I set, but I could still insert text way over 200.
Regards,
ma se
|
|
|
|
|
Use a multilines textbox
keep Learning and you never will be out of date...
|
|
|
|
|
Hi,
I am Ravindra,Currently doing a project in ASP.net.
My problem is:
I want to get back the focus on submit button ,when Validation summary control displays " The required fields are to be entered".
If anybody know please help.
thanks in advance............Ravindra
|
|
|
|
|
Hi,
Popup is not open in my web application,My application has Login page,Is any relation between sessions and popup
I used windows.open(...
Whats the cause?
Thanks
Srilakshmi
|
|
|
|
|
Hi,
Do you get any error messages in the status bar? If yes kindly send the error description.
Regards
sarathy
Know is Drop, Unknown is Ocean
|
|
|
|
|
Hello,Iam not getting any error in status bar
|
|
|
|
|
Also check whether popup is blocked in the browser.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Popup is not blocked in my browser
|
|
|
|
|
What code exactly are you using?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,ThankU
In Page Load
lnksendMail.Attributes.Add("Click", "openpopup()")
i called javascript function,when clicking on the asp link button
function openpopup()
{
window.open ("template.htm","mywindow","location=1,status=1,scrollbars=1,width=100,height=100");
example=window.moveTo(100,100);
return;
}
|
|
|
|
|
Man you have done a small mistake.
srilu nagalla wrote: lnksendMail.Attributes.Add("Click", "openpopup()")
It will be:
lnksendMail.Attributes.Add("onClick", "openpopup();")
This will work perfectly fine.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
I had a problem with insert command,It is working perfecly for some times and giving syntax error for the some times.In which cases this will be possible,Any specific reasons,i have placed it in try catch block .I have 50 columns to insert into database and checked all the datatypes and punctuations correctly.
|
|
|
|