|
I removed the QueryString but to no avail.
~Candi
|
|
|
|
|
I created this:
protected void GridView_SelectedIndexChanged(object sender, EventArgs e)
{
txtIDField.Text += "TEST";
}
I double clicked the SelectedIndexChanged in the gridview properties. It made that and that is just a test..
But for some reason when you click the select button (auto-generated by the grid view) it does not seem to fire that event?
What I am wanting is when the user clicks SELECT it stores the ID column (PRimary Key) into a textbox or variable. This way
I have a delete command (a link button) that they click and it deletes the current row selected.
I do not want to use the DELETE generated by the grid view.
|
|
|
|
|
Ok I have it in a UPDATE Panel and that is what it stopping it from working..
But when I add a record I have it pull up another page to add records. How do I get the gridview to update when the record is added from another page if I cannot use the UpdatePanel?
|
|
|
|
|
Hi All, I have a problem. I builded a web service and one of the web methods is returning a response with the data like ID, Name and Status. Everything works good when I am testing it with the web service, and I am getting the response in a xml response document. Now I want the response what I get from the web service to put in a GridView and to use in my web project. I don't know how should I get the response from the web service and to put in a gridview. Any suggestions?? Thx ahead
|
|
|
|
|
laziale wrote: I builded a web service
laziale wrote: Everything works good when I am testing it with the web service
You are testing a web service with a web service?
laziale wrote: I don't know how should I get the response from the web service
If you don't know how to get the response from the web service how are you testing it?
led mike
|
|
|
|
|
laziale wrote:
Everything works good when I am testing it with the web service
You are testing a web service with a web service? [Confused]
Answer: Ok, I explained little bit confusing, I wanted to say, that, when I am running the web service from the original location, like when you are debugging or running from the original code, before referencing to some project.
answer for the 2nd question:
I want to know how to get the response from the web client, that is the problem what is bothering me.
|
|
|
|
|
laziale wrote: I wanted to say, that, when I am running the web service from the original location, like when you are debugging or running from the original code, before referencing to some project.
The original location? Don't you think using terminology like, projects, solutions, web servers, windows forms application, and things like that would be more clear than saying "original location"? If you are not going to take the time to think about and formulate your posts, why should anyone here give you their time by trying to help you?
laziale wrote: I want to know how to get the response from the web client, that is the problem what is bothering me.
Every example I have ever seen about building a web service has included how to call it from a client application. Are you reading or working from the documentation or articles or books or something about Web Services? If not, you should be.
Also there are many articles with example code about loading a GridView from XML. Try using Google, it should be no problem finding them.
led mike
|
|
|
|
|
Hi all,
I have created a gridview with batch update like the one discussed here[^]. Now I want to cascade two drop downs in it. Actually, I have a projects drop down list and a task drop down list that needs to be filtered when the user selects a project. Any ideas.
Thanks,
Syed Mehroz Alam
modified on Friday, May 30, 2008 1:42 PM
|
|
|
|
|
Hello All
i want to display an image in address bar of browser as in this (Code Project) site. How can i.
Thanks
|
|
|
|
|
Do you mean the small Bob icon to the left of the address? That is a a 16x16 icon file called favicon.ico. Once created drop it into the root of your website, add this code to the header of your page and, voila, it should appear.
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
|
|
|
|
where in dot net is this icon created. i mean does it need any special software to create the same?
|
|
|
|
|
|
Hi,
I am using Code Smith Tools to build my solution. This is not a Code Smith Tools question. My pages sometimes take like 25 seconds to load, or it just bombs. This is run locally.
I want to know what tools are good to check what is taking so long to load? I mean it can be with the generated code, or SQL Server.
Any suggestions to tools that I can use to check this?
Brendan
modified on Friday, May 30, 2008 7:09 AM
|
|
|
|
|
Are all the page taking a while to load?
Are the pages that are taken a while connected to a database?
We are not a Code Charity
|
|
|
|
|
Yes they are all connected to the database. I have a feeling it is my SQL Server, but I can not be for sure yet. I can not see why it is the Code Smith Tools generated solution because it is a good solution. Some times it loads like in half a second, other times it took 25 seconds. Then sometimes it bombs out then I get the message of something like Server Application Unavailable and please contact your administrator.
I also make use of a lot of foreign keys and have indexes on all of my foreign keys. Can this slow down an application as well. My one table, Person, has a lot of foreign keys linking to it, probably about 20, and they all use indexes. But I have not used the Person data yet, just the categories.
modified on Friday, May 30, 2008 7:25 AM
|
|
|
|
|
OK lets break this down
First create one page and put in a connection string to the database with a simple query just selecting one column from a table.
Then work from here
It sounds like the connection is slow but that maybe due to you querying a table which is linked to several others
Did you say you were running it locally?
Where does your sql server sit, is that local express server?
We are not a Code Charity
|
|
|
|
|
Hi,
I run SQL Server 2005 I think Professional edition. It is locally, on my development PC, the same PC that I use to do my C# coding.
I will try your advice over the weekend. I even feel like wiping my whole PC and just install SQL Server and Visual Studio. Then I can know for sure if something is wrong or not. My PC has so much installed stuff which also makes me think it slows down bigger applications like SQL Server.
Thanks
Brendan
|
|
|
|
|
Hello,
I want to create a custom control, more specifically a custom table row control. The control shall have the following structure:
<Custom:TableRow Access="admin">
whatever child controls in here
</Custom:TableRow>
Depending on the Access property I want to show or hide the table row.
The problem is as follows: Visual Studio (.NET 2.0) doesn't allow me to nest child controls between the opening and closing tag of the custom control (in design view). How can I resolve this issue? And furthermore, how can I render the child controls when implementing the Render method void Render(HtmlTextWriter writer)?
Thanks for your support!
Cheers,
Chris
|
|
|
|
|
I don't think you are going in right direction
Can you explain more so that you might get right solution for your problem.
What are you trying to do ?
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... "
|
|
|
|
|
Ok, more details. I want to establish a mechanism to hide and show various parts of a website based on user roles. As the information is organized within a table, it would be nice to hide and show specific table rows. Such a row may contain various child controls such as Labels, Textboxes, Dropdownlists. Instead of hiding each of these controls separately, I'd like to hide (or show) the parent table row. For the mechanism to work, I need to assign the controls with a tag, call it an access level tag. If the control has the tag accessLevel="2" it will be shown to administrators only. Hence, I need to construct user controls that feature this specific access level tag. Not a problem for textboxes or labels, but couldn't solve it for controls that have further child controls such as a custom table row.
Any ideas how to resolve the issue?
Thanks,
Chris
|
|
|
|
|
Why do you want to use user/custom control for it ?
In the Page Itself you can create a method that will handle this functionality. I suppose that you have to make this functionality at server side.
So your function will check user role like this
if(UserRole=="Admin")
{
this.ShowHide(true);
}
private void ShowHide(bool isAdmin)
{
( List of All control to Show)=isAdmin;
( List of All control to Hide)=!isAdmin;
}
Note if there are many controls give id to row and hide this row
Is that you want ?
I think you are thinking/doing some complex logic here
|
|
|
|
|
The thing is, I want to do it application wide and trigger the mechanism from the base class of all Pages. Is that still possible? Now I would have to create the method void ShowHide(bool isAdmin) for each page separately. I'd like to do it in a generic fashion
Further comments on that?
Thanks,
Chris
|
|
|
|
|
Still possible just create this function in base class and pass the page reference of the page like
ShowHide(this);
And do the things in the base page
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... "
|
|
|
|
|
hai friends
in a page,i enabled sessionstate as true
and time out is 20 min
after 20 min , session will be expired and if user performs any operation
then he will be redirected to "sessionexpired message" page
now how can i know(find) the session is expired for the user account....
plz help me
thanks in advance
vijay
|
|
|
|
|
Check this out:
http://aspalliance.com/520_Detecting_ASPNET_Session_Timeouts.2
We are not a Code Charity
|
|
|
|