|
This seems to be a problem with the order of installation. Did you have any VS2005 betas installed on your machine? I remember an order for uninstalling VS2005 betas that was published by Microsoft. Try building your application on another machine and see if it works.
salutari,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
mihaila mihai wrote: 'System.Runtime.Serialization, Version=3.0.0.0,
Isn't that a framework 3.0 (WinFX) version?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hello there is a problem. I use TreeView controll as a data source giving a class that implements
IHierarchicalDataSource interface with method HierarchicalDataSourceView GetHierarchicalView(string myPath)
Under the big structure of next and next classes there is:
class MyNode : IHierarchyData
I put objects of this class into
class Enumerable : List<mynode>, IHierarchicalEnumerable
Enumerable know myPatch value and using some QueryService static class asks about the structure of the tree.
Enumerable( string _patch ) creates collection of children for node specified by _patch
There is a problem::::
The "shape" of the tree (parents, children) is as expected but i don't know where to set Text displayed by the node. IHierarchyData doesnt't contain information abuut the text - only obout patch and the children. Where to put this information. At praesent every Node has text: "MyNode" which as I think was generated automatically.
MyNode looks like this:
public class MyNode : IHierarchyData
{
// children - does it heve any children
// jako type - i give here a name of specyfied node
// patch - if we haveroot->parent->child1, patch looks like this: "/root/parent/child1"
public MyNode(string path, bool children, string type)
{
DelimiterArray = new char[1];
DelimiterArray[0] = '/';
NodeValues = path.Split(DelimiterArray);
_Path = path;
_HasChildren = children;
_Type = type;
_Text = "Ufo";
_Value = "Delphin";
}
#region IHierarchyData Members
char[] DelimiterArray; // see constructor
string[] NodeValues; // see constructor
public IHierarchicalEnumerable GetChildren()
{
return new Enumerable(_Path);
}
public IHierarchyData GetParent()
{
throw new Exception("The method or operation is not implemented.");
}
string _Text;
public string Text
{
get { return _Text; }
set { _Text = value; }
}
string _Value;
public string Value
{
get { return _Value; }
set { Value = value; }
}
bool _HasChildren;
public bool HasChildren
{
get { return _HasChildren; }
}
public object Item
{
get { return this as object; }
}
string _Path;
public string Path
{
get { return _Path; }
}
string _Type;
public string Type
{
get { return _Type; }
}
#endregion
}
Thanks, Paul Poland
-- modified at 16:15 Friday 14th July, 2006
|
|
|
|
|
Can someone tell me how to use a datalist pls?? the datalist isn't appearing when i am dragging it into the form like the datagrid. why is this??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
are you using composite datalist control or a normal .net control
Deepak
|
|
|
|
|
During runtime if there is no data in the datalist , then i am afraid u will not be able to see datalist control on the page, unless u modify the header or the footer template.
Deepak
|
|
|
|
|
hi,
I am using Postgres as database ,
I have a search.aspx page in which the user create a SQL query and submit the page.
I want to display the data in the reportViewer control in asp.net 2.0 using c# as my script
NOTE : the data will be displayed dynamically base upon the query made by the user in the search page.
Please help me out in this .
I am not much aware of the report viewer control but i have to display data dynamically
Deepak
|
|
|
|
|
Using vs2005
ok folks, i am currently using a dataset that pulls data from sql server database and wish to show the final results in a label.
Database Name: miniCMS
From Table: Page
Column: PageID that equals 1
Hope this helps you answer my question.
Please point me in the right direction or even show me how to do this.
Thanks in advanced
-- modified at 13:16 Friday 14th July, 2006
|
|
|
|
|
I did point you in the right direction in your previous post on another forum.
|
|
|
|
|
Yes Thank you - i posted here as i had realised the mistake i made regarding the category i put the post in.
Also i am very new could you please elaborate.
Thank you
|
|
|
|
|
I want to use asynchronous socket on my asp.net page 2.0. Here is the problem: When the user click on a button, I need to launch a socket to connect to another machine on another network to process data (this could take 2-3 minutes). I build my own asynchronous socket class and it work fine on desktop application, but how do I use it in asp.net page. Since the processing of data can take as least 2 minutes, I do not want to freeze the user. I search everywhere but found no solution. Any help will be appreciated.
Rookie Programmer
|
|
|
|
|
|
is there a way of using asp:Sqldatasource tag and its commands with parametres, not in aspx file but in aspx.cs file. i want to write insert, update and delete commands in a class file, how can i do it?
|
|
|
|
|
Well you could try this example for the select method I am sure it works but I didn't try it for insert, update and delete commands, but I guess it will be the same idea.
objDataSource.SelectMethod = "MethodName";
objDataSource.SelectParameters["ParameterName"] = new Parameter("ParameterName", ParameterType, ParameterValue);
objDataSource.Select();
Mohamed El Gohary
|
|
|
|
|
I tried to design a master page with real content via css and it was rendered as normal html with only a few of the elements like text inheriting from the css class. I would like to know if any one has been successful in doing a "themey" masterpage via css.
Now i'm not talking about regular styling but this^ kind of styling
A little example would be greatly appreciated.
Live in fragments no longer. Only connect.
-- modified at 8:04 Thursday 20th July, 2006
|
|
|
|
|
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
|
|
|
|