|
I'm not sure what you meant...this is all done from a ASP .net page and that's why the questions was published in this section. Please educate me if there's a separate location pertaiing to questions regarding such data structures and their use.
Now my question is that I'm not familiar with Dictionary data structure, so I'm not sure how is stuff functioning in the code that I'm looking at right now written by someone else with no cmments or documentation...
I googled it quite a bit, but no one appear to be using Dictionary in a way that either its key or the value element are another DIctionary object.
Can anyone please share their experience if they've used it or are familiar with it.
Thanks
Tina
|
|
|
|
|
Tina P wrote: this is all done from a ASP .net page and that's why the questions was published in this section
But it's not related to ASP.NET, it's just vanilla C#, it could be in any C# project.
Tina P wrote: Please educate me if there's a separate location pertaiing to questions regarding such data structures and their use
C# forum for general C# questions
Tina P wrote: Now my question is that I'm not familiar with Dictionary data structure, so I'm not sure how is stuff functioning in the code that I'm looking at right now written by someone else with no cmments or documentation...
OK, well, that's another question.
You have a dictionary, and when you look up a key, the value you get back is another dictionary. So, you could use this, for example, to create a grid, look up x first, then y. Of course, you'd usually use a 2D array for that, but the point is, to get to the data you want, you obvously need to look up two values, not one.
It's just a dictionary, twice. You provide two keys to get to the end value.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I will please like someone to give me some help on how to creat an asp.net, Visual Basic forum.
|
|
|
|
|
|
Its not so tough?Anybody can do it for you but you have to pay for it.
|
|
|
|
|
Hi
when i press on F5
I am getting the below one
unable to connect to visual studio's localhost web server.
i tried by reinstall the webdev.webserver from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727..
but
it is saying 'The application failed to intialize properly (0*c0000007b).
Click ok to terminate the application.
Help me out..
|
|
|
|
|
Go to services and Restart SQLServer service. if that does not work, Try system restore. if system restore fails jst patiently reinstall visual studio.
|
|
|
|
|
Abdulhafeezo wrote: Go to services and Restart SQLServer service. if that does not work, Try system restore. if system restore fails jst patiently reinstall visual studio.
Why ?
|
|
|
|
|
|
Unable to Connect to the ASP.Net WebServer or Visual Studio on Localhost
This Link will fix your problem…..
http://softwares-u-need.blogspot.com/2009/10/downloadpage.html
YOUR PROBLEM WILL BE FIXED... I BET
The above link Is MY BLOG
Just do what it says….Please mail me if any questions…
PLZ POST YOUR COMMENT IN THAT BLOG, EVEN IF U HAVE TO ASK ANY THING...
Vibin
|
|
|
|
|
Unable to Connect to the ASP.Net WebServer or Visual Studio on Localhost
This Link will fix your problem…..
http://softwares-u-need.blogspot.com/2009/10/downloadpage.html
YOUR PROBLEM WILL BE FIXED... I BET
The above link Is MY BLOG
Just do what it says….Please mail me if any questions…
PLZ POST YOUR COMMENT IN THAT BLOG, EVEN IF U HAVE TO ASK ANY THING...
Vibin
|
|
|
|
|
Unable to Connect to the ASP.Net WebServer or Visual Studio on Localhost
This Link will fix your problem…..
http://softwares-u-need.blogspot.com/2009/10/downloadpage.html
YOUR PROBLEM WILL BE FIXED... I BET
The above link Is MY BLOG
Just do what it says….Please mail me if any questions…
PLZ POST YOUR COMMENT IN THAT BLOG, EVEN IF U HAVE TO ASK ANY THING...
Vibin
|
|
|
|
|
hi all ... good evening..
how to pass confirm box value to code behind.
Page.RegisterStartupScript("Error", "<script>var agree=confirm('Are you sure you want to delete?')</script>");
if (agree)
{
string service = grid.DataKeys[e.RowIndex].Value.ToString();
StringCollection col = BlogService.LoadPingServices();
col.Remove(service);
BlogService.SavePingServices(col);
BindGrid();
}
else
{
}
This my code. I cant get the value of the confirm box to code behind.Help me..
|
|
|
|
|
This is not how it works.
If you want to pass the value from client side to server, you need to do a post pack or use a webservice do the desired action.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Assign the confirmbox value in some hidden variable and postback the page.and accordingly the confirmbox value update the Grid.
Its better you postback the page when the user only press ok on the confirmbox.if not you need to delete so dont need postback
|
|
|
|
|
Hi
I have a page where i am creating table row and table cell dynamically and adding a control to in it.
It is as below
HtmlTableRow tr = new HtmlTableRow();
HtmlTableCell td = new HtmlTableCell();
tr.ID = "tr" + i.ToString();
tblPerSetngs.Controls.Add(tr);
CheckBox chk = new CheckBox();
chk.ID = "chk" + i.ToString();
chk.Text = dtTechSkills.Rows[i]["SkillName"].ToString();
td.Controls.Add(chk);
tr.Controls.Add(td);
table.Controls.Add(tr);
the control is adding wel and fine. but now i want to set the css style to the table row.
Thanks in advance
Naina
|
|
|
|
|
nainakarri wrote: the control is adding wel and fine. but now i want to set the css style to the table row.
tr.Attributes.Add("class", "classname");
|
|
|
|
|
Amandeep, You have asked me one question on Remote IIS Debugging, Here is your complete Answer.
|
|
|
|
|
Hi All
How I can get the selected node of a treeview.
After That I want to get Value property and Text Property of
Selected node.
The javascript function that I have developed is not working
In this fuction I am trying to get Treeview (TVSectionContentsList). Then its selected node and after that its value and text property.
Please Help me in this matter.
function insertValue() {
FTB_API['<%=FreeTextBox1.ClientID%>'].Focus();
var tv = document.getElementById('<%=
TVSectionContentsList.ClientID%>');
var treeNode = GetSelectedNodeEntity();
var treeNode = tv.getTreeNode(tv.selectedNodeIndex);
var val = treeNode.value;
var txt = treeNode.text;
FTB_API['<%=FreeTextBox1.ClientID%>'].InsertHtml('<span id=' + val + '>' + txt + '</span>');
window.event.returnValue = false;
FTB_API['<%=FreeTextBox1.ClientID%>'].Focus();
}
|
|
|
|
|
Hi to all,
I want to display description like maximum 20 characters in grid column.....i have already used
boundfield of grid to display the field Description.....
i have tried to do it by Itemstyle but its not working....
can any one tell me the soluntion for that........
|
|
|
|
|
Can you show me Binding code?
|
|
|
|
|
ya sure.........this is the code....
<asp:GridView ID="gvMenuCategory" runat="server" AutoGenerateColumns="False" AllowPaging="true"
AllowSorting="true" PageSize="3" CssClass="datatable"
OnPageIndexChanging="gvMenuCategory_PageIndexChanging"
onrowdatabound="gvMenuCategory_RowDataBound">
<HeaderStyle HorizontalAlign="Left" CssClass="head" />
<Columns>
<asp:BoundField HeaderText="Name" DataField="Name" ItemStyle-Width="30%" />
<asp:BoundField HeaderText="Description" ItemStyle-Width="60%" ItemStyle-Wrap="true"
DataField="Description" />
<asp:HyperLinkField Text="Edit" DataNavigateUrlFormatString="/Menu/MenuCategory.aspx?Restaurant&MenuCategoryID={0}"
DataNavigateUrlFields="MenuCategoryID" HeaderText="Edit"></asp:HyperLinkField>
</Columns>
<HeaderStyle BackColor="#6B696B" ForeColor="White" />
</asp:GridView>
hope u will get idea by this..............
|
|
|
|
|
use the itemtemplate instead of BoundField
like this one
<Columns>
<asp:BoundField HeaderText="Name" DataField="Name" ItemStyle-Width="30%" />
<asp:TemplateField >
<ItemTemplate>
<asp:Label id="lblDescription" Text='<%# Eval("Description") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField Text="Edit" DataNavigateUrlFormatString="/Menu/MenuCategory.aspx?Restaurant&MenuCategoryID={0}"
DataNavigateUrlFields="MenuCategoryID" HeaderText="Edit"></asp:HyperLinkField>
</Columns>
Then use the RowDataBound event of your gridview
and code the following
protected void gvMenuCategory_RowDataBound(object sender, GridViewRowEventArgs e)
{
string fulldesc="";
if(e.Row.RowType==DataControlRowType.DataRow)
{
DataRowView dr= (DataRowView)e.Row.DataItem;
fulldesc=dr["Description"].ToString();
Label lbldesc = (Label)e.Row.FindControl("lblDescription");
lbldesc.Text = fulldesc.Substring(0, 19);
}
}
Hope this work for you
|
|
|
|
|
thanx for this code.............but before also i have already used that DataRowView but it gives error like
"Unable to cast object of type 'repository of my project' to type 'System.Data.DataRowView'."
though i tried your code but it gives still the same error.........
if u have another solution then please tell me...........i m trying to solve it from 2 days......
thanx
|
|
|
|
|
Send me your HTML, Code behind and also send complete exception that the page is throwing.
|
|
|
|