|
HI!
when user press enter on a textbox, cursor move to next textbox. is it possible without using javascript?
|
|
|
|
|
fmlove wrote: without using javascript?
Of course not. Why do people keep asking questions in this forum and saying 'without using javascript'. You have NO other options on the client side, unless you want to support IE only and use VBScript.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Because i write a javascript but it not support on Firefox Browser
|
|
|
|
|
Hi,
This is from Chandrakanth. I am using GridView Control. And I would like
to update the records through Coding. Can any one tell me how to go for
that.
Thansk in Advance
With Regards
Chandrakanth
Chandrakanth
|
|
|
|
|
A gridview supports in place adding and editing of rows. Deleting is also easy to add. There are tons of tutorials on the web, there's no way I could explain it as well as an article could, in a forum reply.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
I want to generate images on button click by using image paths present in listbox.
|
|
|
|
|
Do a postback, and generate your image using GDI+, just draw them based on the values in question. You can then use Response.BinaryWrite to send the image back down, or write it to the local file system and generate an img tag. Or you can just send it as a download.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
its very urgent.........
sir/madam,i have the method below where i want to refer textbox control but im unable to do so..plz help. Im calling this method using javascript.
thanx in advance
[AjaxPro.AjaxMethod()]
public string add()
{
SqlConnection cn = new SqlConnection("user id=sa;password=sa;database=pubs;data source=.");
cn.Open();
string str="select imagename from tbemp where imageid="+cnt;
SqlDataAdapter da = new SqlDataAdapter(str, cn);
DataSet ds = new DataSet();
da.Fill(ds);
string imagepath=ds.Tables[0].Rows[0]["imagename"].ToString(); TextBox1.Text=imagepath;//error comes..unable to refer textbox here at runtime
return imagepath;
}
-- modified at 3:08 Saturday 18th August, 2007
|
|
|
|
|
I developed a web application in VWD2005 and uploaded on net. But i got an error, which is "An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. "
What to do??
And when i transfered it to Visual studio .net IT WONT WORK AT ALL..
What to do...?
|
|
|
|
|
Hi,
In your web.config add:
<configuration>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
Tiru
-- modified at 8:15 Thursday 16th August, 2007
|
|
|
|
|
What should i add... "BR"...?
|
|
|
|
|
Sorry, fixed the first post so that it should present the solution...
/Tiru
|
|
|
|
|
I developed a web application in VWD2005 and uploaded on net. But i got an error, which is "An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. "
What to do??
And when i transfered it to Visual studio .net IT WONT WORK AT ALL..
What to do...?
|
|
|
|
|
sacheesach wrote: I developed a web application in VWD2005 and uploaded on net. But i got an error, which is "An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. "
The extra line to web.config i wrote would get you trough this part as then you will see the error occuring.
Tiru
|
|
|
|
|
Where is that EXTRA LINE?
|
|
|
|
|
<configuration>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
The extra line is: <customErrors mode="Off" />
|
|
|
|
|
Sorry to say but still im getting the same error. I thought VWD2005 is not generating bin folder which according to my information is necessary.
Please Comment and help.
|
|
|
|
|
Hi Everyone,
How to remove the URLs in web printouts. Can anyone help me in this regard.
Regards,
Manowj
|
|
|
|
|
For Internet Explorer. go to page setup and empty the header and footer text box before printing
|
|
|
|
|
Hi,
How to handle this through code?..
Regards,
Manowj
|
|
|
|
|
Hi,
I'm not sure if this is possible at all, but my intention is to use the gridview to display the data in it in two columns next to eachother. Lets say i have just a string in my databinding and 10 rows. Then i wish to display it like this:
row1 | row2
row3 | row4
row5 | row6
row7 | row8
row9 | row10
But as the gridview is making a table this cannot be done it seams. I have tried using itemtemplate and alternatetemplate but with no success as the gridview after each row inserts a new tr / td and ending thesame at the end.
Is there anyway this can be done with the gridview or do i need to use repeaters and make my own paging for that?
Thanks
Daniel Tiru
|
|
|
|
|
Yeah it is possible. Iterate through the results of your query. And convert each set of two rows into one. Then bind to the datatable. I didn't test the following code but you should get the idea.
<br />
DataTable dt = new DataTable();<br />
DataColumn dc = new DataColumn("RowOdd", Type.GetType("System.Int32"));<br />
DataColumn dc1 = new DataColumn("RowEven", Type.GetType("System.Int32"));<br />
dt.Columns.Add(dc);<br />
dt.Columns.Add(dc1);<br />
<br />
Int16 Count = 0;<br />
DataRow r;<br />
while (YourDataReaderObject.read())<br />
{<br />
<br />
if (Count = 0)<br />
{<br />
r = dt.NewRow();<br />
r["RowOdd"] = dr.GetInt32(0);<br />
Count = 1;<br />
}<br />
else<br />
{<br />
r["RowEven"] = dr.GetInt32(1);<br />
dt.rows.add(r);<br />
Count = 0;<br />
}<br />
<br />
}
I didn't get any requirements for the signature
|
|
|
|
|
Thanks, i get the general idee, i have used the click/drag/drop functions in VS with data but that should i figure out how to do...
But one thing more... as i in reality have more than one column, is this the right aproach?
DataTable dt = new DataTable();
DataColumn dc = new DataColumn("RowOdd", Type.GetType("System.Int32"));
DataColumn dc1 = new DataColumn("RowOdd1", Type.GetType("System.Int32"));
DataColumn dc2 = new DataColumn("RowOdd2", Type.GetType("System.Int32"));
DataColumn dc3 = new DataColumn("RowEven", Type.GetType("System.Int32"));
DataColumn dc4 = new DataColumn("RowEven1", Type.GetType("System.Int32"));
DataColumn dc5 = new DataColumn("RowEven2", Type.GetType("System.Int32"));
dt.Columns.Add(dc);
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
dt.Columns.Add(dc3);
dt.Columns.Add(dc4);
dt.Columns.Add(dc6);
I think that should be fine... (I realized when writing the code)
Thanks alot
Tiru
|
|
|
|
|
Yes, that looks correct to me.
And you're welcome.
I didn't get any requirements for the signature
|
|
|
|
|
As an alternative you could use a DataList and use its RepeateColumn feature.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|