|
|
Hi all,
I want to convert PDF files to HTML files in our web application(ASP.NET).
If any one knows the procedure or source code or any source link, then kindly send me.
Thanks
|
|
|
|
|
hello to all......
I want to get ASCII value of enter key through ASP.Net and what namespace should be included for that.
thanx in advacne...
Raushan
|
|
|
|
|
Hi Raushan,
When a user hits a key on the keyboard, a client-side event is fired. The server is not used to capture or use this information as the server is simply recieving a request from the client (through the HTTP GET and POST protocols). Therefore you should focus on capturing and handling keyboard strokes on the client-side. The DOM's event object should provide you with the information you need when used in conjuction with the DOM onkeydown event (this is the event that is fired when a user hits a key). The following code shows an example of how to achieve this:
Function to handle the key stroke:
function checkKeyStroke(e) {<br />
var characterCode;<br />
<br />
if ( e && e.which ) {<br />
e = e;<br />
characterCode = e.which;<br />
}<br />
else {<br />
e = event;<br />
characterCode = e.keyCode;<br />
}<br />
<br />
if ( characterCode == 13 ) {
}<br />
}
Attach it to the onkeydown event of the required element, in this case the body element:
<body onkeydown="checkKeyStroke(event); ">
Clean code is the key to happiness.
|
|
|
|
|
Hello Friends,
I've designed a contact page for the clients. But as i press Enter key from the keyboard it throws me on the Home Page or Default Page. But it must either save the record or fire the validation if the textboxes are empty.
Thnx
|
|
|
|
|
yes buddy ..
wats u prob
make clear...
.
yogesh
|
|
|
|
|
You ought to trap the button click event and if the event keyCode turns out to be of ENTER key, then invoke the submit button click event.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
The following JS should perform the above operation:
function checkEnter(e) {<br />
var characterCode;<br />
<br />
if ( e && e.which ) {<br />
e = e;<br />
characterCode = e.which;<br />
}<br />
else {<br />
e = event;<br />
characterCode = e.keyCode;<br />
}<br />
<br />
if ( characterCode == 13 ) {
document.getElementById('button_id').click();<br />
}<br />
}
Attach the above function to the body / window elements onkeydown event.
Clean code is the key to happiness.
|
|
|
|
|
Hi,
I have got one dropdownlist and a gridview control on my form.
Dropdownlist is outside the gridview.I want that no of column in grid view should appear in dropdownlist.
Suppose gridview contains a column with the name Details1, Details2, Details3........etc.
All that column name should appear in dropdownlist.
How it is possible?
Regards,
Pranav
Pranav Dave
|
|
|
|
|
Hi,
It is possible to simply enumerate the columns collection of the GridView control and extract the required data. The following code will need to be run after the DataBind() method of the grid view has been executed:
for (int index = 0; index < grdTest.Columns.Count; index++)<br />
{<br />
ddlTest.Items.Add(new ListItem(grdTest.Columns[index].HeaderText, index.ToString()));<br />
}
Using the code to then hook up events between the DropdownList and the GridView is another matter...
Clean code is the key to happiness.
|
|
|
|
|
Hello Everybody,
I want to set a menu in master page which would be link with a xml file. Because i want to use different different menu for different type of users. when i creating xml - like this :
<HOME>
<Node url="" title="Dipak" description="">
<Node url="" title="Dipak1" description="" />
<Node url="" title="Dipak2" description="" />
<Node url="" title="Dipak3" description="" />
<Node url="" title="Dipak4" description="" />
</Node>
<Node url="" title="Rajesh" description="">
<Node url="" title="Rajesh1" description="" />
<Node url="" title="Rajesh2" description="">
<Node url="" title="Rajesh2-1" description="" />
<Node url="" title="Rajesh2-2" description="" />
</Node>
</Node>
</HOME>
<DOWNLOAD></DOWNLOAD> // error shows here
It prevents to create multiple root. When i remove the <DOWNLOAD></DOWNLOAD> portion, on the page it shows only one menu item at starting. and on mouse over on HOME shows other child items.
Please help me to create menu items and their child items using xml.
Or any special idea...
Help me.
Thank you in advance.
Dipak
|
|
|
|
|
You seem to have an extra closing node tag.
|
|
|
|
|
Hi,
I have an application, where in i want a new data grid to be displayed when i click a record in the grid. and the new grid should be displayed just beneath the row clicked (i.e) the new grid should be within the old grid.
Can somebody help me in this regard.
Thanks in advance
|
|
|
|
|
Use template column and put a new grid inside that. Find this inner grid in main grid's data bound event. Bind the child grid with the required data. By default the child grid's style can be set to "none " and when the link is clicked, using JS change this visibility to "block " which will display your inner grid.
|
|
|
|
|
hi,
I am very new to ASP.NEt and struggling to update a cell in Gridview .
Following is my gridview code: I want to edit "Value" column. I have tried writing Texbox changed event but the event never fires up!!!
<asp:GridView ID="GridView1"
runat="server" AutoGenerateColumns="False" Style="position: relative; left: 11px; top: 49px;" CellSpacing="1" BorderColor="#C0C000" BorderStyle="Double" OnRowDataBound="GridView1_RowDataBound" OnRowUpdating="GridView1_RowUpdating" OnRowEditing="GridView1_RowEditing" >
<HeaderStyle Font-Names="verdana" BackColor="#9CD8F6" ForeColor="#716336" />
<Columns>
<asp:BoundField DataField="AttributeName" HeaderText="AttributeName" />
<asp:TemplateField HeaderText="Value">
<ItemTemplate>
<asp:TextBox ID="TextBox1" OnTextChanged="TextBox_TextChanged" runat="server" AutoPostBack=true Text='<%# Bind("Value") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
|
|
|
|
|
Hello Everybody
I have a gridview in my application which values are comes from a DataTable generated in codebehind(means gridview is bind to a DataTable).I want to impliment paging in the gridview.
I do it as the code below but it won't work..
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.Visible = true;
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
Thanks in advance,
Happy Coding
A key to every Solution
|
|
|
|
|
You are not setting the data source again. You need to set the data source again in the page index changed event, before you do DataBind() .
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.Visible = true;
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = YourDataTable;
GridView1.DataBind();
}
|
|
|
|
|
Hi,
Thanks yaar ...
As it is not the exact solution for my problem but it helps me a lot to solve my problem..
thanks again..
Happy Coding
A key to every Solution
|
|
|
|
|
AS@13 wrote: I do it as the code below but it won't work..
Very clear...
AS@13 wrote: GridView1.Visible = true;
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
When the paging is clicked, the page will postback, where your DataTable will be clear. So you have to generate the DataTable again and assign it to the GridView. Call the DataBind now.
|
|
|
|
|
Hi,
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
Gridview1.DataSource = tblData; //this should be your data table
GridView1.DataBind();
}
The logic written above will work if and only if you declare your data table as shared,
(i.e) shared tblData as DataTable
Check out this
|
|
|
|
|
HI All,
Pls Help me,
I want to develop DrillThrough Reports using ReportViewerControl.
for example : Country - State - City - Pincode
i want use documentmapping in ReportViewer for Drilling the Reprts and i m using LOCAL MODE
any example or Code will help me.
PLS PLS HELP ME
T&R,
bhaskar
modified on Monday, January 28, 2008 2:36:40 AM
|
|
|
|
|
Hi,
I am trying to create a custom workflow using Visual Studio 2005 for SharePoint Services 3.0.
I've installed the VS 2005 extensions for SharePoint and for WorkFlow Foundation. When I try to create a new project, I'm getting the error:
" The designer could not be shown for this file because none of the classes within it can be designed."
Initially it showed that the dll "microsoft.sharepoint.WorkflowActions" could not be found. So I copied this dll form Server where WSS 3.0 is installed and put in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI" in my PC and added the reference. Still the designer error persists.
Could someone please assist me with this issue?
Regards,
Blumen
|
|
|
|
|
hi,
I'm using sql server 2000 and I set the permissions of stored procedures to be executed by ASPNET user and sometimes I need also to set the Insert and Update permissions on some tables also on ASPNET user.
I was wondering is this safe or unsage for my database?
I need advice..
|
|
|
|
|
Hi everyone!
Please Help me I will be greatful for early response
When I click on any webpage which contain files list. webbrowser start to download that file.
my problem is this that I do not want to download the file with any downloader instead I want to redirect that file to the concerned application like if i click on for example song file i want webbrowser to open the media player and give that to media player.
i m using vs 2005 and coding with vsual basic
please help me to sort out this problem
Juli
Julian
|
|
|
|
|
Wouldn't it do this by the file association from the suffix anyway? Another approch is to stream the bytes to the output stream and set the mime type.
Try using "server.Transfer"
TadMcClellan.Com
|
|
|
|