|
Hello,
I am working in ASP.NET 1.1
I am loading an image in a page on a button click.
Each time I click on the button the image is gettign loaded but until i refresh the page the image is not getting loaded into the page. How can i solve this problem.
|
|
|
|
|
Don't repost the same question.
With Regards
Satips
|
|
|
|
|
Hello Satips,
It was not purposly posted twice. DUe to browser problem it got posted twice. Take it easy
|
|
|
|
|
|
Sounds like you have the order of your code in page load and the button click wrong. Page load events will get called before the button click event.
|
|
|
|
|
I have a parameter on the Url, like,
http://localhost/mysite/groups.aspx?Group=Boys & Girls
When I attempt to decode the parameter Group from the groups.aspx code behind file as follows;
Dim Grp As String
Grp = Request.QueryString("Group").ToString,
the variable Grp ends up with only half the parameter value.
i.e. Grp = "Boys "
What can I do to get the whole parameter value
i.e. Grp = "Boys & Girls"?
I already tried putting two && as an escape sequence and it failed to work
|
|
|
|
|
The & character is used as separator between values in the query string, so you need to encode the character when it should be inside a value.
Actually you have to encode the entire value. An url may not contain spaces.
Use the Server.UrlEncode method to encode the value. The result should be: "Boys%20%26%20Girls".
---
b { font-weight: normal; }
|
|
|
|
|
Thanks.
Again I say Thanks.
|
|
|
|
|
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
|
|
|
|