|
welcome! let me know if any other issue.
Thank you.
|
|
|
|
|
can't see automatic generated code (Cs file) for Dataset object .
any help
|
|
|
|
|
To see the autogenerated code
Select the project and click the "Show all files" option at the top of the solution explorer, then expand the dataset in the solution explorer
Any changes you make to that code will be overwritten if you chnge something in the dataset
Instead you should use a partial class
Alexei Rodriguez
|
|
|
|
|
Hola Rodriguez .
I don't find any Show all files icon in the Solution Explorer tab ,
I only have ( from left to right)
-properties
-refresh
-nest related files
-view class diagram
-copy website
-asp .net configuration
I even tried what i found in a forum about this problem :
Tools/import and export settings / reset all settings
Still doesn't work ..any suggestions ?
|
|
|
|
|
I made a simple gridview in asp.net using the code written below. Now I want to make it editable so that at run time user can enter some data. Also,I dont want to put a thing like "edit button" ,i.e a user can simply edit a cell as he does in an excel spreadsheet. Can anybody tell me which event make the gridview editable ( I am not using any database) ?
If possible, please give some code to help me understand.
protected void Page_Load(object sender, EventArgs e)
{
dt = new DataTable();
Char[] alpha = { '#', 'A', 'B', 'C', 'D', 'E'};
for (int i = 0; i < alpha.Length; i++)
{
dt.Columns.Add(alpha[i].ToString());
}
for (int i = 0; i < 1000; i++)
{
DataRow dr = dt.NewRow();
dr[0] = i + 1;
dt.Rows.Add(dr);
}
GridView1.BorderColor = System.Drawing.Color.FromArgb(0, 0, 0);
GridView1.DataSource = dt;
GridView1.DataBind();
}
modified on Saturday, June 6, 2009 3:56 PM
|
|
|
|
|
Create one gridview with all template field and set textbox for that template field when it displays the data it will display in textbox so that you can edit those field without click edit button.
Then you can access those textbox value when you click on a button.
Look at the following code to do so...
<asp:GridView ID="GridView1" runat="server" Style="z-index: 106; left: 93px; position: absolute;
top: 283px" Width="575px" EditIndex="1" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:TextBox ID="txt1" runat="server" MaxLength="3" Style="position: static" CssClass ="gv" text = '<%# Eval("slNo") %>'
AutoPostBack ="false" TabIndex ="0" Width="25px" Height ="15px" Visible ="true" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:TextBox ID="txt2" runat="server" MaxLength="3" Style="position: static" CssClass ="gv" text = '<%# Eval("Name") %>'
AutoPostBack ="false" TabIndex ="0" Width="250px" Height ="15px" Visible ="true" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:TextBox ID="txt3" runat="server" MaxLength="3" Style="position: static" CssClass ="gv" text = '<%# Eval("Address") %>'
AutoPostBack ="false" TabIndex ="0" Width="150px" Height ="15px" Visible ="true" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Then Place the following code in the button click event
for (int i = 0; i <GridView1.Rows.Count; i++)
{
GridViewRow gvr = GridView1.Rows[i];
string str1 = ((TextBox)gvr.FindControl("txt1")).Text;
string str2 = ((TextBox)gvr.FindControl("txt2")).Text;
string str3 = ((TextBox)gvr.FindControl("txt3")).Text;
}
after this you can use that string value to store into database or do further process.
|
|
|
|
|
|
|
Reposting your question each day will not help you get any reponses.
Rather that just throw out the code with vague message that it doesn't work, you should describe what the problem is. Not everyone has the time or desire to copy your code compiled it and debug it for you.
only two letters away from being an asset
|
|
|
|
|
Hi...
In my website uploaded some images and it will be successfully uploaded into the site.
But images cannot display in IE6 it will shows a white box with left hand side having a Red 'X' in this image spaces. But i will run in firefox it will display images...anybody give solution to this problem...
Thanks in Advance...
|
|
|
|
|
If you are using javascript then there are some property which IE doesn't support.You have to check for thos property.
|
|
|
|
|
Hi..
I will retrieve image path from database to show the images iam didnt use any java script to display iamges... give any ideas
Thanks
|
|
|
|
|
can you send me the link where the images are displayed.
It will assist me to check the problem
|
|
|
|
|
www.subhamalai.com then goto quicksearch search the male it will displays
|
|
|
|
|
hi,
i was unable to generate any search results from the site. But i read your code, try removing brackets from the image path you specified.
|
|
|
|
|
What you are using to retrieve Images from database.Can you paste some code here.
|
|
|
|
|
<asp:DataList ID="DListSearch" runat="server" ShowFooter="true"
Width="100%" GridLines="Horizontal" ShowHeader="False" OnItemCommand="DListSearch_ItemCommand" Font-Names="Times New Roman" OnSelectedIndexChanged="DListSearch_SelectedIndexChanged" Height="100%">
<ItemTemplate>
<asp:Panel ID="Panel2" runat="server" BorderColor="#6699cc" BorderWidth="1px"
Width="100%" Height="100%">
<table style="height: 217px; color: activecaption;" width="100%">
<tr>
<td colspan="1" rowspan="1" style="text-align: left; border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; border-left: #6699cc 1px solid; border-bottom: #6699cc 1px solid; background-color: #6699cc; width: 290px; height: 20px;">
<asp:LinkButton ID="lnkbtnUserName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"username") %>' OnClick="lnkbtnUserName_Click" ForeColor="White" ></asp:LinkButton>
<strong><span style="color: #ffffff">ID :</span></strong>
<asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="#FFFFFF" Text='<%# DataBinder.Eval(Container.DataItem,"memberid") %>'></asp:Label></td>
<td colspan="3" rowspan="1" style="text-align: right; border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; font-weight: bold; border-left: #6699cc 1px solid; color: white; border-bottom: #6699cc 1px solid; background-color: #6699cc; height: 20px;">
<asp:Label ID="lblPartAge" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"age") %>' Font-Bold="True"></asp:Label>
years old</td>
</tr>
<tr>
<td rowspan="7" style="width: 290px; text-align: center">
<a href="javascript:Openpopup('Image_Detail.aspx?PId=<%# ("~/Images/")+DataBinder.Eval(Container.DataItem,"imgview") %>')">
<asp:Image ID="ImgView" runat="server" Height="116px" Width="128px" ImageUrl='<%# ("~/Images/")+DataBinder.Eval(Container.DataItem,"imgview") %>'/></a></td>
<td style="text-align: justify; font-weight: bold; width: 283px;">
City: </td>
<td style="text-align: justify; width: 304px;">
<asp:Label ID="lblPartLoc" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"City") %>'></asp:Label>
</td>
</tr>
<tr>
<td style="text-align: justify; width: 283px;">
<strong>Religion:</strong></td>
<td style="text-align: justify; width: 304px;">
<asp:Label ID="lblPartRel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"religion") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 283px; text-align: justify">
<strong>Caste:</strong></td>
<td style="width: 304px; text-align: justify">
<asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"sub_religion") %>'></asp:Label></td>
</tr>
<tr>
<td style="text-align: justify; width: 283px;">
<strong>Ethnicity:</strong></td>
<td style="text-align: justify; width: 304px;">
<asp:Label ID="lblPartEthn" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ethnicity") %>'></asp:Label></td>
</tr>
<tr>
<td style="text-align: justify; width: 283px; height: 30px;">
<strong>Height:</strong></td>
<td style="text-align: justify; width: 304px; height: 30px;">
<asp:Label ID="lblPartHeight" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"height") %>'></asp:Label></td>
</tr>
<tr>
<td style="text-align: justify; width: 283px;">
<strong>Complexion:</strong></td>
<td style="text-align: justify; width: 304px;">
<asp:Label ID="lblPartComplex" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"complexion") %>'></asp:Label></td>
</tr>
<tr>
<td style="text-align: justify; width: 283px; height: 30px;">
<strong>Body Type:</strong></td>
<td style="text-align: justify; width: 304px; height: 30px;">
<asp:Label ID="lblPartBodType" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"body_type") %>' Width="112px"></asp:Label></td>
</tr>
</table>
</asp:Panel>
</ItemTemplate>
<HeaderTemplate>
<br />
</HeaderTemplate>
</asp:DataList>
|
|
|
|
|
So, you are uploading the image into your server and stroing the image path into database want to show the image in the image box.
smraj1503 wrote: I will retrieve image path from database to show the images iam didnt use any java script to display iamges..
Right click on the Image icon and check that path is valid or not?
Where did you write the code for upload and display? can you please put the code ?
|
|
|
|
|
Hi..
Right click on the Image icon and check that path is valid the path display the images but the same images display in firefox...
|
|
|
|
|
smraj1503 wrote: Right click on the Image icon and check that path is valid the path display the images but the same images display in firefox...
check the image url. This is problem with "/" in url.
|
|
|
|
|
Hi all,
Can any one give me a good example of Dynamic data website,i.e., i want to create a login page using it and redirect to another page.
Thanks in advance
|
|
|
|
|
sarang_k wrote: Can any one give me a good example of Dynamic data website,
what do you mean by dyanmic data web site?
|
|
|
|
|
I don't see what a website that gets it's data dynamically has to do with having a login page. Best guess, you have no idea what you're doing.,
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
tell me briefly what u want.I m not getting ur point.actually what u want.in ur question biggners can do it easilly.
How i will design a a form in windows service to print a document.
|
|
|
|
|
i m developing a cms and for that i want to know that how the code of html page will be loaded in fck without html tags
|
|
|
|