|
Yes it is possible. Use the StyleSheetTheme property in teh master page or set it in the web.config file.
|
|
|
|
|
when you go to this page
http://www1.sprintpcs.com/explore/coverage/CoverageOverview.jsp?ATR_ExtraOne=Personal_Wireless_Plans_Coverage
and enter a zipcode and when u click the 'View coverage' image button, then you get the next page which shows whether you have coverage to the zipcode you entered. But i'm having problem when i do it through Csharp.Net. The problem is the zipcode value is not getting submitted through the image button.
this is the final page where it displays whether it has coverage or not.
http://www1.sprintpcs.com/explore/coverage/CoverageOverview.jsp?bmForm=SprintZipCodeToCSAComponentPlansFocus&bmFormID=1152889587027&bmUID=1152889587027&bmIsForm=true&bmPrevTemplate=explore%2Fcoverage%2FCoverageOverview.jsp&bmText=csaZip&csaZip=20171&bmImage=ShowPlans.x&bmImage=ShowPlans.y&bmImage=ReturnCSA.x&bmImage=ReturnCSA.y&bmHidden=FOLDER%3C%3Efolder_id&FOLDER%3C%3Efolder_id=1436777&bmHidden=CURRENT_USER%3C%3EATR_SCID&CURRENT_USER%3C%3EATR_SCID=ECOMM&bmHidden=CURRENT_USER%3C%3EATR_PCode&CURRENT_USER%3C%3EATR_PCode=None&bmHidden=CURRENT_USER%3C%3EATR_cartState&CURRENT_USER%3C%3EATR_cartState=group&bmFields=bmForm%2CbmFormID%2CbmUID%2CbmIsForm%2CbmPrevTemplate%2CbmText%2CbmImage%2CbmHidden&bmHash=84312c83205bfccaa4a01a0f0edbd2d4495bbd27&ReturnCSA.x=36&ReturnCSA.y=7
any help would be appreciated
|
|
|
|
|
How are you submitting it? Are you handling the click event redirecting to the page?
|
|
|
|
|
In the Page_Load i'm calling the PostFormData() by passing URL as a parameter. Code here is
lblTest.Text = PostFormData("","http://www1.sprintpcs.com/explore/coverage/CoverageOverview.jsp?bmForm=SprintZipCodeToCSAComponentPlansFocus&bmFormID=1152824111731&bmUID=1152824111731&bmIsForm=true&bmPrevTemplate=explore%2Fcoverage%2FCoverageOverview.jsp&bmText=csaZip&csaZip=20171&bmImage=ShowPlans.x&bmImage=ShowPlans.y&bmImage=ReturnCSA.x&bmImage=ReturnCSA.y&bmHidden=FOLDER%3C%3Efolder_id&FOLDER%3C%3Efolder_id=1436777&bmHidden=CURRENT_USER%3C%3EATR_SCID&CURRENT_USER%3C%3EATR_SCID=ECOMM&bmHidden=CURRENT_USER%3C%3EATR_PCode&CURRENT_USER%3C%3EATR_PCode=None&bmHidden=CURRENT_USER%3C%3EATR_cartState&CURRENT_USER%3C%3EATR_cartState=group&bmFields=bmForm%2CbmFormID%2CbmUID%2CbmIsForm%2CbmPrevTemplate%2CbmText%2CbmImage%2CbmHidden&bmHash=0b24f83f9aeb3e1e8e99ca2ae0d7a53e4b5637ed&ReturnCSA.x=33&ReturnCSA.y=9");
and code for PostFormData is here
private string PostFormData(string strFormData,string strPostURL)
{
try
{
bytData = Encoding.ASCII.GetBytes(strFormData);
myWebReq = (HttpWebRequest)WebRequest.Create
(strPostURL);
myWebReq.Method = "POST";
myWebReq.KeepAlive = false;
myWebReq.ContentType = "application/x-www-form-
urlencoded";
myWebReq.ContentLength = bytData.Length;
reqStream = myWebReq.GetRequestStream();
reqStream.Write(bytData, 0, bytData.Length);
reqStream.Close();
HttpWebResponse myWebRspns = (HttpWebResponse)
myWebReq.GetResponse();
srResult = new StreamReader(myWebRspns.GetResponseStream
(), System.Text.Encoding.ASCII);
strResponse = srResult.ReadToEnd();
srResult.Close();
return strResponse;
}
I don't know where i'm going wrong. Pls help
|
|
|
|
|
I am storing date in a textbox as well as pre popualte.
But it sometimes give InvalidCastException while converting to my required format when I port it into production server(Server has different Date Time format)
So I fixed the culture to some fixed culture which uses dd/mm/yyyy format(du-AT)
Now all fine it does not give any exception in either of the place, but I still wonder is that the right way!!!
|
|
|
|
|
You can specify the culture in the call when you parse the date. You can also use ParseExact to parse a specific format.
---
b { font-weight: normal; }
|
|
|
|
|
You could also use a date chooser control instead of a regular text box.
One option is: Excentrics World[^]
But there are many others.
daniero
|
|
|
|
|
I am placing the table into the edititemtemplate of DataGrid Control.I want to find the table in the codebehind file programically.
i am placing in edititemtemplate as
<edititemtemplate>
<table id = "dynamic">
</table>
</edititemtemplate>
I am finding the table in the ItemDataBound function in this manner
dim c as control=e.item.findcontrol("dynamic")
But c comes out to be nothing
Please help
|
|
|
|
|
i think you need to make your table attribute runat=server in order to get it in code file
Nav.
|
|
|
|
|
It is still not working. Thanks
|
|
|
|
|
It will work Boss.
Make sure your aspx page is in the format
<Columns>
<asp:TemplateColumn HeaderText="Edit">
<ItemTemplate>
<table runat="server" id="tbl">
<tr>
<td>ok</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
---------------------------------------
and you have properly binding data to Datagrid
DataTable dt=new DataTable();
dt.Columns.Add(new DataColumn("One"));
DataRow drow=dt.NewRow();
drow[0]="okman";
dt.Rows.Add(drow);
DataGrid1.DataSource =dt;
DataGrid1.DataBind();
-------------In item databound event write below
if(e.Item.FindControl("tbl")!=null)
{
Response.Write("Found");
}
It will write "Found"
|
|
|
|
|
I believe that you'll need to add the attribute runat = "server" to your table:
...<br />
<br />
<edititemtemplate><br />
<table id = "dynamic" runat = "server"><br />
<br />
...
That should allow you to use FindControl to retrieve it. Hope that helps.
--Jesse
|
|
|
|
|
It is still not working Thanks
|
|
|
|
|
Man try this thing
dim c as control=e.item(index).findcontrol("dynamic")
You should mention the index of the datagrid row.
Do good and have good.
|
|
|
|
|
it is producing error sorry
|
|
|
|
|
What is the maximum duration of Cookie
thanx in advance
|
|
|
|
|
What's the max amount of time in seconds/minutes/hours you can have? Xactly, infinite. Technically, the client would eventually do a system shutdown or reboot, so you can even set the cookie to last for 10hrs -> nidheeCookie.Expires.Add.Minutes(600);
Figure it out buddy!
Live in fragments no longer. Only connect.
|
|
|
|
|
Yep, infinite:
here is one year:
Dim aCookie As New HttpCookie("myCookie")
aCookie.Expires = DateTime.Now.AddDays(365)
You can always keep extending the time by setting the cookie again each time they hit your site.
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
Hi,
Can anybody help me in suggesting, how can i play only a part of the song using a Window Media Player object on the web page(say from start of the song to 20 seconds of the song).
Thanks,
Sai.
|
|
|
|
|
Record 20 Seconds +- of the song using JetAudio.
Live in fragments no longer. Only connect.
|
|
|
|
|
|
Hey i have got an asp file with following code:
<%@LANGUAGE="JavaScript"%>
<%
var roomID = Request("RoomID");
%>
<title>Messages place
<%=formatAll(roomID)%>
Can someone please try to change this page code into asp.net
|
|
|
|
|
Change the file extenstion from asp to aspx
lehya wrote: Can someone please try to change this page code into asp.net
How about you volunteer to do this?
|
|
|
|
|
We'd be happy to help you through the transition from ASP to ASP.NET. If you have specific questions surrounding ASP.NET or a specific project, please post them. That being said, I don't believe you'll find much support with a post like this. It is considered very bad form to ask someone else to do your work for you without showing that you're making an effort to learn. Given the sheer volume of resources for a beginner trying to learn ASP.NET, there really is no excuse for not giving it a try. After all, none of us will be around to maintain the code for you after the translation is done.
To help get you started, here[^] is a Google search on learning ASP.NET, with plenty of hits to look through.
Besides all of that, due to the missing functions (formatAll, getMessageRefreshTime) and the missing include file (chatprocessing.asp), even if someone did translate this page for you, the benefit would be sketchy at best. There is no real functionality in the code sample that you posted. The missing parts do all of the work.
--Jesse
|
|
|
|
|
Hey Jesse...
Thanks for whatever u told me...I have been trying to learn the differences between ASP and ASP.NET , but your google search didnt really was of use to me..Theoretically it continued well for session state differences etc..but not into the depth of the code...
Anyways, chatprocessing.aspx and the rest was all fine Jesse and the rest i have done is going on well with other pages..But i had a small doubt which would make everyone get into chaos..So i just posted the coding and asked to change it into .aspx file...
The thing is when we are changing this type of file we are just changing a few tags only..but the statements like.... <%=formatAll(roomID)%>.....i had a doubt with them and so i asked the help...anyway thanks buddy..I found this site to be useful and so i just made it out a point to know it from a few professionals too about how can we do it...I hope u can solve some of our beginner level problems too...
|
|
|
|