|
thanks a lot it's working.
Kovuru Sreedhar
|
|
|
|
|
You are welcome
|
|
|
|
|
Hi,
when i click the sortoption button in my module
This error will shown : "Failed to compare two elements in the array."
This is my code ascx.cs)
protected void Previous_Routine(object sender, CommandEventArgs e)
{
EgtFlashController objEgtFlashs = new EgtFlashController();
List<egtflashinfo> lstItems = objEgtFlashs.GetEgtFlashs(this.ModuleId);
lstItems.Sort();
int Sorter = 0;
foreach (EgtFlashInfo obj in lstItems)
{
obj.SortId = Sorter;
objEgtFlashs.UpdateEgtFlash(obj);
Sorter++;
}
for (int i = 0; i < lstItems.Count; i++)
{
EgtFlashInfo obj = (EgtFlashInfo)lstItems[i];
if (obj.ItemId == Convert.ToInt32(e.CommandArgument.ToString()))
{
if (i == 0)
{
break;
}
obj.SortId--;
objEgtFlashs.UpdateEgtFlash(obj);
obj = (EgtFlashInfo)lstItems[i - 1];
obj.SortId++;
objEgtFlashs.UpdateEgtFlash(obj);
}
}
//refresh cache
SynchronizeModule();
ExportXml(false);
Response.Redirect(Request.Url.AbsoluteUri, true);
}
This is for design page(.ascx)
<asp:imagebutton imageurl="~/Images/up_arrow.gif" id="BtnPrevious" xmlns:asp="#unknown">
OnCommand="Previous_Routine" CommandName="Previous"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ItemId") %>' runat="server"/>
Please tell where i made mistake in my code.
Regards
soona
|
|
|
|
|
here i am using a web application where i wanted to send a word document to the clients when the checkbox control is checked what might be the procedure to attatch a word.doc file and what are the different name spaces used in doing this process
|
|
|
|
|
hi
here i am using a gridview control
binding the data using the dataset in to the gridview control
here after i populate the gridview with the data in the data base, i wanted to add a column which is editable into the same grid into a specified position say column[4] so that i can give some values into the cell and update.
any one who has an thaught about the specified points can help me
|
|
|
|
|
Hi Sumanth,
Create a datatable and set it to dataset.table[0] now add one more column in datatable and bind the gridview with this table.
and for editable value for this column use below..
<asp:TemplateColumn SortExpression="Description" HeaderText="Description">
<HeaderStyle HorizontalAlign="Left" Width="160px" CssClass="grid-header" VerticalAlign="Top"></HeaderStyle>
lt;ItemStyle CssClass="grid-item"></ItemStyle>
<ItemTemplate>
<asp:textbox id=EntryDescription runat="server" CssClass="Standard-text" Width="137px" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>' MaxLength="250">
</asp:textbox>
</ItemTemplate>
</asp:TemplateColumn>
Thanks
Hem
|
|
|
|
|
Hi I have grid view with a details view binded to it.
I have View details button binded to gridview select property. I also have a add to list button field which should select the current row and insert its certain column to the listbox.
I tried to bind it to select command but its showing the details view also. confused:
Code, Code, Code, chill lol.
|
|
|
|
|
I am developing asp.net application. i have a visual basic exe. when use this exe in asp.net. for the below code
-------------------------------------
Process startinfo = new Process();
startinfo.EnableRaisingEvents = false;
startinfo.StartInfo.FileName = Server.MapPath("~//FolderName\\RR.exe");
startinfo.Start();
--------------------------------------
it is succeffully runing.
when my asp.net web application to run the IIS after publishing. Then that exe not running.
Plz help me. what's probleam.
I have been already full control that folder within store exe.
|
|
|
|
|
Hi Rinki,
If your web application is hosted on Xp machine then give permision to ASPNet user and if it it 2003 server then to the network services.
Let me know if it helps you..
Thanks
Hem
|
|
|
|
|
my applicaion hosted on IIS in xp machine. please tell me clearly that which location of permission to ASPNet user
|
|
|
|
|
is by giving permision to the exe folder to the ASPNET user not working?
|
|
|
|
|
|
i have grid....in which displaying data....but data not get display properly. first line display proerly but problem is in 2nd line.
full line(2nd) get display....but only above part.(ie half line get dispay)
i have set wrap property as true...still not working
my grid is as below
<C1WebGrid:C1BoundColumn DataField="Remarks" HeaderText="Review Comments" SortExpression="Comments"
Visible="true">
<HeaderStyle HorizontalAlign="center" Wrap="true"></HeaderStyle>
<ItemStyle HorizontalAlign="left" Wrap="true" Width="350px"></ItemStyle>
</C1WebGrid:C1BoundColumn>
|
|
|
|
|
Have you tried width="100%" on your column?
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
i tried tht
but no use.......
|
|
|
|
|
Hi,
I have a web page which allow user to upload files to the server over the Internet and print it out on the local printer.
What I did now is after the user upload the pdf file, when click 'process', it will open the Save As dialog box for user to download and save the file on to the local computer for printing.
What I wish to do is when click 'process', I want it to directly start printing to the local printer without any user interaction.
What I have thought of till now is, to download from the backgroud to the user's computer and trigger the printing on the computer but I just don't know how can I do that.
Need you guys to shed some light for me, thanks.
|
|
|
|
|
J Liang wrote: What I did now is after the user upload the pdf file, when click 'process', it will open the Save As dialog box for user to download and save the file on to the local computer for printing.
Looks odd. Since file has been uploaded from user's local machine, why to download again for printing?
J Liang wrote: What I have thought of till now is, to download from the backgroud to the user's computer and trigger the printing on the computer but I just don't know how can I do that.
You can't trigger printing in that way. ASP.NET won't have permissions to write files to local machine. User should explicitly trigger the printing.
|
|
|
|
|
Oh, the reason that the user needs to upload the pdf file to the server is because it needs to be attach with banners as header and footer of the pdf file. Meaning, the server will re-alter the content of the pdf file with extra information.
I actually found this link which will print the pdf without prompting user to click print. http://www.planetpdf.com/forumarchive/110829.asp[^]
It seems working though, still in the process of testing it.
|
|
|
|
|
hi
i want to add a link on my web site - "set this page as homepage"
can sm1 pls give me c# or vb code for that
with thanks
Tarun Suneja
|
|
|
|
|
Hi Tarun ,
Refer to the following links:
Link #1[^]
Link #2[^]
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Use the following ant coorect your website URL..
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Click here to make Dynamic Drive your default homepage</a>
|
|
|
|
|
Hi,
I have dropdown box in the form and it is populated by a query. What I want is to place an item such as "Select an item" as 1st item in the drop down box. How could I do that?
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Add "Select an item" to the items collection
And set the appenddatabouditems to true
Alexei Rodriguez
|
|
|
|
|
WOW! That's a good one. 5ed
|
|
|
|
|
use this
dropdownlist1.Items.Insert(0, "--Select an item--");
|
|
|
|