|
Can you please give me the code to find child gridview using Rowcommand Event?
Thanks
|
|
|
|
|
|
what are the coding or events used in server control "button" ant "link button" i got a job to teach c# asp .net and i want to give examples to my student by doing coding in server control. plz help me.
|
|
|
|
|
You've got a job as a teacher, but you don't know the stuff you're teaching ?
All server controls do a post of the page form, and then ASP.NET works out the details from viewstate.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am looking for information on the steps required to request and collect user input from a pdf form using ASP.Net. I have plenty of experience with Access/VBA, but am a newbie with respect to web applications. I have a fully functional pdf with a submit button, but don't really know the gestalt of setting up the application to be prepared to access the form data. The following from the Acrobat Help wasn't much help, really:
In the Enter A URL For This Link box, [do the] following:
To collect form data on a server, type the location. For example: http://www.[domain]/[folder]/[subfolder]/
I want to display the pdf and when the user has completed the form and submitted it, I want to collect the data into variables for later use. Please point me in the right direction.
|
|
|
|
|
I don't see how a PDF can be 'fully functional'. If you get sent a PDF by a user, you'll need a PDF library to try to read the contents. Overall, a PDF seems just it's just plain the wrong thing to use in this case.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks, anyway, for the non-answer, but what I mean by "fully functional" is that the pdf in question has form fields and checkboxes that are properly named and whose properties are properly set up to return the values I want to use once submitted. It's not my choice as to whether or not to use a PDF. Clients can be particular. The pdf will reside on the host web server, but my client wants to have a submit button incorporated on it so that the user doesn't have to print it out and fax it to him after filling it in. He wants the data delivered to him in an e-mail. I agree that it would be infinitely simpler to create a user form with equivalent checkboxes and form fields on an aspx or php page, but alas, as I said - it's not my choice.
Plus - I'm always game for learning something new. I love a challenge. Need a little help, that's all.
My question remains...
|
|
|
|
|
So i Need to setup 6 websites that are pretty much the same, and is pulling information from the same database, just different domain, names etc...
I set it up where it reads the host.url and maps it against a xml that pulls up what text to serve for the particular domain your on.
I am doing this so there's only 1 set of files to update when there are changes.. Anyone see an issue if there's high traffic, setting it up this way? Any other suggestions in going about this?
Thanks
|
|
|
|
|
The obvious issue is that your servers traffic is the traffic of all 6 sites. So long as it can handle the traffic, I don't see any issues.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I'm sitting at work trying to figure out the best way to build a dynamic web registration form where the user can basically build the registration form using a Windows application by choosing the field or whatever and they get added to the db and the web page looks at the db and build the registration page.
I really have no other idea as how to do this but that. My only problem is the user has to be able to customize the field name and type from within this client app.
I'm trying to get other ideas so I will not create something ugly. Is there a cleaner, more efficient way to do this?
Any idea welcome
|
|
|
|
|
Hey Guys - would like to ask you guys for advice -
[History]
I have a table which I will grab from my sql server and place into a gridview(limited view/sample of data specific data to give users enough info to select a row). Now each row is selectable and once selected I would like to get the rest of the data which corresponds from the row selected - so users are able to view and be able to edit the related data. (This first part is completed I can select the data and get the pri key related to the selected row and pass it to page)
[Question]
What would be the best way for me to give the users the ability to view the data, edit the data, update, and delete it(I only need one set of buttons at the top of the page)? The data be retrieved is big. I don't need the ability to page threw the data as in dataview - Would like to get some feed back on ideas andor with some examples.
I appreciate any advice....
Thanks Nick
|
|
|
|
|
Add a detailsview grid to the gridview page. There are plenty of examples on MSDN
|
|
|
|
|
My title may not be very clear, but what it means is that normally, when we have a data set, the columns (along x-axis) refer to the properties of a specific record in the data set, whereas all the records of this data set are listed vertically (y-axis). The asp:DataGrid also works this way, in that you can have a data set with a variety of columns (BoundColumn, TemplateColumn, ButtonColumn, etc.) which all denote properties of your data. An advantage of this is that for each record, you can specify for example, that a certain column is a TemplateColumn with a DropDownList bound to another data set, allowing you to pick and choose from this data.
Given this background, the problem I'm having is that I want the records to be like new columns, and the fields to be a fixed set of rows (essentially inverting the x and y-axis of the standard data grid). If I use a pivot table (just a DataTable with a pivot function that allows you to switch the x/y-axes) as a data source, I can get the data displayed by the data grid just fine. What I can't do, however, is make it so that the data grid has "TemplateRow" (this construct does not exist) and bind certain rows to data via a DropDownList, assuming I want to make this data editable.
Does anyone know of a quick way to do this or do I essentially have to take apart the standard asp:DataGrid / spend a lot of time extending its functionality so that I can do the following:
<asp:DataGrid>
<asp:TemplateRow>
<asp:ItemStyle>
<asp:DropDownList DataSource="someDataSource"></asp:DropDownList>
</asp:ItemStyle>
</asp:TemplateRow>
</asp:DataGrid>
|
|
|
|
|
You need to use a repeater to have that level of control over the output. Even then, you want to use a pivot table for your data
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks, I will have a look at this control.
|
|
|
|
|
Dear All,
I am creating an web project not an web site.
It includes a module for News, the user can add images for the news.
I am able to add it in the folder in my applicaiton.
But while viewing, i am getting the path as Server.Mappath("<imagename>".
While debugging it is getting the path correctly, but it is not displaying the image.
Can any one tell me a solution to get rid of this?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Can you please put the code block for that sections?
|
|
|
|
|
Hi,
I have a problem with my divs. I have created an Accordian Ajax Control from the Ajax Control Toolkit. This control when one of the tabs is open it overlays on the footer div. I need that the footer changes position according to the size of the accordian component in this div. Im doing the positioning through CSS. Can some one help me on this please? Thanks for your time.
Regards
|
|
|
|
|
In Which browser ?
I also have some problem with the layout in IE6 and IE7. In my case I just assigned some value to the "Height" Property and It works fine. Before that It was overlapping.
These are some common problems with IE6 and Accordian.
The AutoSize "Limit" mode works exactly the same as the "Fill" mode for Internet Explorer 6 and 7 because they do not support the max-height CSS property.
If you place the Accordion inside a <table> tag and have FadeTransitions set to true in Internet Explorer 6, it will affect the spacing between Accordion Panes.
|
|
|
|
|
Yes with IE7. The thing is that the div that the accordian is in does not change size when the accordian changes size so i can't move the footer down.
ill probably do like as you say.
Thanks for your help.
|
|
|
|
|
before footer div write an empty div with style property clear:both it will solve your problem....
umerumerumer
|
|
|
|
|
I implemented the div but it didnot work. Thanks for your help anyway.
|
|
|
|
|
hi everyone...
iam working on gridview with checkboxes... iam executing my code without any Errors. i can check/uncheck the checkboxes but not able to delete the row/rows in Grid on Delete_Click().
According to me there is a problem with DeleteRow Function..
So can anyone helpme out in this regard...
thanx in advance..
Here is my aspx.cs Code:
protected void btnDelete_Click(object sender, EventArgs e)
{
// This variable contains the selected rows in the format 1,2,3
string SelectedRows = GetSelected();
// User defined function that calls the stored proc to delete the selected items
DeleteRows(SelectedRows);
}
public static void DeleteRows(string PTittle)
{
SqlConnection MyConnection = new SqlConnection("server=(local);database=BlogDatabase;UID=sa;PWD=meritinfo;");
SqlCommand MyCommand = new SqlCommand("Delete from Posts where PTittle=@PTittle ", MyConnection);
MyCommand.Parameters.Add(new SqlParameter("@PTittle", PTittle));
MyCommand.CommandType = CommandType.Text;
MyCommand.Connection.Open();
SqlDataReader dr = null;
dr = MyCommand.ExecuteReader();
//DataTable Posts = new DataTable();
//DataTable dt = new DataTable();
//dt.Load(dr);
//if (dt != null)
//{
// Posts = dt;
//}
}
|
|
|
|
|
Whether it is getting deleted fro database?
Cheers!!
Brij
|
|
|
|
|
No brij,
its not delete from database...
thanx.....
|
|
|
|