|
hi,
I'm using ajax in my application. And in a same page i'm showing differnt-2 categories in same datalist. Each time only datalist updated.
Now i want to change meta tag(title,keyword and description) programmatically with the change of category.
how i can do that. Please help me.
waiting for reply...
thanx..
krishna veer singh
|
|
|
|
|
Can you explain a bit more what you mean by
krishnaveer wrote: change meta tag(title,keyword and description) programmatically
Do you want to change the title of the page perhaps?
|
|
|
|
|
hi,
Actually in a page name category.aspx, there is a menu on left side where different categories are listed. in click of menu items i'm papulating categorycontents in the datalist control. I have taken datalist control inside the ajax updatepanel. So that every time on click of memu item i can update that updatepanel.
these things are running well. But since page is refereshing, the meta tag related to different categories listed in menu item is not changing.
The description of the meta tag is comming from the database.
How i can do this.
thanx..
krishna veer singh
|
|
|
|
|
hmm well just run an update query which updates the meta tag and then re select it from the database everytime the update is performed
|
|
|
|
|
|
|
Since the Virtual Directory is subject to destruction in case of Windows installation, I always backup my ASP.NET code to another non-virtual directory.
After installing my OS, I restore my code to the virtual directory by "Copy and Paste".
It gives the following runtime error
" It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
To solve the problem, I had to create a new project in the virtual directory, then import all my old files.
This solution works well.
But my project size increases day after day, and sometimes I get confused while importing my files.
So, is there any way to use the "Copy and Paste" method without errors?
Mohammed Gouda
foreach(Minute m in MyLife)
myExperience++;
|
|
|
|
|
You wont need to
Mohammed Gouda wrote: restore my code to the virtual directory by "Copy and Paste".
that often will you, only if you install something
why would you being do it often?
|
|
|
|
|
|
You say you want to do the following:
"is there any way to use the "Copy and Paste" method without errors?"
But why do you need to do this?
|
|
|
|
|
|
Why are you always making a backup of the directory!!??
Why do you need to keep doing the above method??
What happens if you dont?
Im failing to understand why you need to keep
Mohammed Gouda wrote: restore a backup of my code to the Virtual Directory
|
|
|
|
|
|
Yeah but you found a solution to it didnt you? Thats what you said in your first post
Why try and find another solution when the likely hood of it happening again is slim?
Or did you mistype your first post, and you actually mean you havent found a solution?
|
|
|
|
|
what is the format of path in this code:
System.IO.StreamWriter sw = new System.IO.StreamWriter("?????")
can anybody give me a example?
|
|
|
|
|
What you are trying to do ?
IT takes Stream as an argument There 6 to 7 different constructors
Let me know what are you trying with it ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
i want to do this:
string old = "HTML code";
if (!System.IO.File.Exists("d:\\a.htm"))
{
System.IO.FileStream f = System.IO.File.Create("d:\\a.htm");
f.Close();
using (System.IO.StreamWriter sw = new System.IO.StreamWriter("d:\\a.htm"))
{
sw.Write(old);
}
}
}
and i want open a.html form with this cde:
"<A HREF=" + "javascript:window.open('a.htm')"
but not open a.htm , it open other page.
can i say my mean?? do u understand my mean?/
|
|
|
|
|
Here you are creating a Html file at server side ok
Now you want to open that html file at client side
That not possible dude. i think you have been trying in wrong direction
you will have to create a html file using javascript only at client side
then you can open that file using javascript
Is that fine or i interpreted wrongly
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
System.IO.StreamWriter sw = new System.IO.StreamWriter(@"PATH OF THE FILE")
e.g System.IO.StreamWriter sw = new System.IO.StreamWriter(@"C:\test.txt")
|
|
|
|
|
thanks thats right. and now
how can i open C:\test.txt with this code : javascript:window.open('c:\test.txt') ???? is it right???
|
|
|
|
|
public static Control AdvancedFindControl(this Control container, string controlId)<br />
{<br />
Queue<control> controlQueue = new Queue<control>(new[] { container });<br />
Control currentControl;<br />
<br />
while (controlQueue.Count > 0)<br />
{<br />
currentControl = controlQueue.Dequeue();<br />
<br />
foreach (Control child in currentControl.Controls) { controlQueue.Enqueue(child); }<br />
<br />
if (currentControl.ID == controlId)<br />
<br />
return currentControl;<br />
}<br />
<br />
return null;<br />
} <br />
</control></control>
thanks in adv
|
|
|
|
|
try this website, there are plenty more out there
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
|
|
|
|
|
sorry but the foll line doesn`t seems to convert
Dim controlQueue As Queue = New Queue(New(){container()})
|
|
|
|
|
Public Shared Function AdvancedFindControl(ByVal Control As Me, ByVal controlId As String) As Control
Dim controlQueue As Queue = New Queue(New()
{
container
}
)
Dim currentControl As Control
While controlQueue.Count > 0
currentControl = controlQueue.Dequeue()
Dim child As Control
For Each child In currentControl.Controls
controlQueue.Enqueue(child)
Next
If currentControl.ID = controlId Then
Return currentControl
End If
End While
Return Nothing
End Function
|
|
|
|
|
This is not valid C# code - you're missing a type name after 'new':
...new Queue(new[] { container });
I would expect something like:
...new Queue(new Foo[] { container });
David Anton
http://www.tangiblesoftwaresolutions.com
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB, C#, or Java to C++/CLI
Java to VB & C# Converter: convert Java to VB or C#
|
|
|
|