|
|
|
In Javascript u can Get URL of Current Location as
window.location();
assign to var winLoc;
U Can Get WinLoc as www.test.net/Add.aspx?fsrno=3
Now Find the Find THe IndexOf "=" in Above String because this is unique
and Split string as subString after position "="
THen U can Get QueryString
Hard To Say
|
|
|
|
|
Hi,
I am needing help with URL rewriting. I have not found a good article on the Internet. If any one knows of a good article please let me know. If any one can help with advice please let me know.
/2007/09/23/microsoft-passes-the-openajax-interopfest-test.aspx
This example URL was taken from a blog. This is what I am after.
Regards
|
|
|
|
|
hi i need search engine in my site..
so how can i use google search engine in my site
thxxx
Ajay Rathi
software engineer
NOIDA(UP),INDIA
|
|
|
|
|
|
|
hi friends,
i want paging with repeaters,can anyone of u help me to solve this problem..
thx
Regards
Ajay Rathi
software engineer
NOIDA(UP),INDIA
|
|
|
|
|
You need to write a control to handle this yourself, or look for one in the articles on this site.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how i can set image control left position to a given value in asp.net
|
|
|
|
|
Use stylesheets.
Set the position property to absolute, and the left to a certain amount of pixels..
<br />
style="position: absolute; left: 10px;"<br />
-- edit --
I see the property names are replaced in the example code... Anyway, the first property is position, the second is left
-- end edit --
|
|
|
|
|
Hi,
Am I sending this XML to a SP in SQL:-
<?xml version="1.0" encoding="utf-8"?><Entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Entity><ID>5a939ee4-37ef-416f-b658-04b5c759d065</ID><Type>OWNSITE</Type><Name>125 NAS2</Name><ImportCode>00125E</ImportCode></Entity></Entities>
Although it seem that SQL 2005 doesnt like encoding="utf-8"
I am creating this xml by running a Serialize method in my EntityCollection, by using the following code:-
public string Serialize()
{
return XMLUtil.SerializeClass(this, GetType());
}
Before a pass this XML in the DAL to the SP I am trying to replace encoding="utf-8" with string.empty, with not to much success.
Just wondering that's the best way around my problem, should I try & replace with empty string, or should I not have it there in the first place?
Either way, I'm not sure how to do this in code.
Anyone any ideas?
Many thanks
janet
Lady Programmers are a rare breed!
|
|
|
|
|
try to change the Ecoding property to different one
i am not sure but using xmlwriter in setting you have Encoding property try to give different one
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... "
|
|
|
|
|
But_Im_a_Lady wrote: Am I sending this XML to a SP in SQL:-
Are you storing this XML in a table ?
But_Im_a_Lady wrote: Although it seem that SQL 2005 doesnt like encoding="utf-8"
What error you got ?
|
|
|
|
|
no Im not storing this XML directly into a table.
I am passing two lots of XML into the SP, as 2 separate param's, where the data will be stored in various tables.
The error that I get is:-
Msg 9402, Level 16, State 1, Procedure ksspnapp_SetProperties, Line 0
XML parsing: line 1, character 38, unable to switch the encoding
Lady Programmers are a rare breed!
|
|
|
|
|
Ok , so you are trying to read the XML values from stored procedure. Right ? I am not much familiar with this method. How about reading this values from your page and transmitting only the values ?
|
|
|
|
|
Yes, I am reading the xml values and placing them into a temp table.
The SP has to be called this way, otherwise due to the amount of data that can be changed in the UI, it could mean upto 2000 updates - so rather than 2000 calls to the DB I am doing this only once.
If I manually remove the encoding="utf-8" when I execute the SP through SQL it works ok!
So all I need to do is somehow is to remove this from the XML before I pass it into the SP.
The problem I have is that the first part of the XML is :-
<?xml version="1.0" encoding="utf-8"?><
How do I remove the encoding="utf-8" by using Replace ?
Lady Programmers are a rare breed!
|
|
|
|
|
But_Im_a_Lady wrote: How do I remove the encoding="utf-8" by using Replace ?
string a = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
string Result = a.Replace("encoding=\"utf-8\"",string.Empty);
|
|
|
|
|
N a v a n e e t h wrote: ("encoding=\"utf-8\"",
Great, thats what I was struggling with.
Im sure there is a better way to do this, ie to have something in the serialize method to just omit this text, but this way will have to do for now.
Many thanks, again!
Janet
Lady Programmers are a rare breed!
|
|
|
|
|
But_Im_a_Lady wrote: Many thanks, again!
Welcome.
But_Im_a_Lady wrote: Im sure there is a better way to do this, ie to have something in the serialize method to just omit this text,
Yes it is possible. Set the encoding type to some other type. How you are serializing XML file ? With a TextWriter object or XMLWriter object. To set different encoding, you have to choose XMLWriter object. It provides option to specify encoding
|
|
|
|
|
hi friend's
how can i get the url of the page that request the specific of the page of my site?
thank you for your help.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
use this...
Page.Request.Url.ToString()
Koushik
|
|
|
|
|
no my friend's
this attribute just return the url of the requested page not requester page.
assume that a user request my page(www.MYSITE.com/001.aspx) from "www.WEBSITE.com/index.html"
i need a technique to get the second url[www.WEBSITE.com/index.html]
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
Check the Request Object might be there you would find. Not confirm but check
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... "
|
|
|
|
|
thank you
be sure...
it is "Request.UrlReferrer.AbsolutePath"
thank you again
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|