15,890,947 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by karan joshua (Top 128 by date)
karan joshua
26-Jun-11 10:11am
View
follow some asking question convention...
your question seems to be the main content ..
add this :
HOW TO BROWSE A FILE AND HOW TO STORE IN DATABASE AND HOW TO VIEW AND HOW TO DOWNLOAD.i WANT CODE
in content section
and give the title as:File browsing and storing in database
this is more conventional..
please follow this...
karan joshua
19-Jun-11 11:48am
View
thank you for your response.. But my problem is not to load image in crystal..My problem is i have 14 fields...How to display all these fields in one crystal report.Because space will be less.. you can maximum put 6 fields in a row..
Rest 8 fields where to put?
Thanks in advance..
karan joshua
19-Jun-11 11:48am
View
thank you for your response.. But my problem is not to load image in crystal..My problem is i have 14 fields...How to display all these fields in one crystal report.Because space will be less.. you can maximum put 6 fields in a row..
Rest 8 fields where to put?
Thanks in advance..
karan joshua
16-Jun-11 9:35am
View
Ok Thank you very much for your answer.
My 5.
Thank you once again.
karan joshua
16-Jun-11 9:13am
View
should i check it in page_load event?
karan joshua
16-Jun-11 9:03am
View
oh k.thank u. i had same idea... Is it (sesssion)giving problem if many user is accessing simultaneously.?
karan joshua
16-Jun-11 6:33am
View
yeah . selected index doesn't work sometime when page_load occurs.
the best way to do is add one more button at the DDl and try to handle the selecte d item of the combo box.
karan joshua
16-Jun-11 6:29am
View
Thank you
karan joshua
16-Jun-11 4:52am
View
yes. sure. thank u for your valuable suggestions.
karan joshua
16-Jun-11 4:45am
View
your welcome..
karan joshua
16-Jun-11 4:45am
View
i am not familiar with stored procedure...
karan joshua
16-Jun-11 4:43am
View
oh Simple it is..i didn't get this idea..
Thank you very much..
any other posssibility using single query.?
karan joshua
16-Jun-11 4:42am
View
actually it is application requirement..
karan joshua
16-Jun-11 4:13am
View
In crystal report have u given user name and password?
karan joshua
16-Jun-11 3:38am
View
<pre> SqlCommand cmdSelect = new SqlCommand("SELECT ImageFile FROM MyImageTable WHERE ImgID ='" + ImgIDTextBox.Text + "'", connection,st);
byte[] barrImg = (byte[])cmdSelect.ExecuteScalar();
string sqlquery1 = "insert into myTable(ImageFile) values('"+barrImg+"')";
command1 = new SqlCommand(sqlquery1, connection,st);
int numTo = command1.ExecuteNonQuery();
</pre>
i have used above code to insert into another table.In sql server database it shows column ImageFile with binary data
when i display it in image control using handler it won't show any image.
what is problem in code?
plz help me...
karan joshua
15-Jun-11 13:55pm
View
thank u very much.. it was 3 line code...But since i have used function and returned it it was giving problem,that was the problem. now i removed function. it is working fine now.thanks.
karan joshua
15-Jun-11 12:35pm
View
i added following code:
<pre>public Stream SaveToMyDB()
{
SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["conStr"].ConnectionString);
try{
connection.Open();
string strCmd = String.Format("SELECT ImageFile FROM MyImageTable WHERE ImgID ='"+ImgIDTextBox.Text+"'");
SqlCommand cmd = new SqlCommand(strCmd, connection);
byte[] b = (byte[])cmd.ExecuteScalar();
if(b.Length > 0)
{
// Open a stream for the image and write the bytes into it
System.IO.MemoryStream stream = new System.IO.MemoryStream(b, true);
stream.Write(b, 0, b.Length);
// Create a bitmap from the stream
Bitmap bmp = new Bitmap(stream);
// Check for scaling and assign the bitmap to the Picturebox
return stream;
stream.Close();
}
}</pre>
but it is giving error like:: not all code paths return a value .
karan joshua
15-Jun-11 11:20am
View
i tried but it is giving error.
karan joshua
15-Jun-11 11:04am
View
how to do that?please help me..
karan joshua
12-Jun-11 5:40am
View
Oh nice solution.. thank u very much...Looks very simple...
Thank you very much...My 5..
Thank you once again...
karan joshua
12-Jun-11 5:37am
View
Thank you.. This one helped me a lot.... thank u very much....
i solved My problem using this...
My 5.
Thank u once again..
karan joshua
12-Jun-11 4:41am
View
thank u for your link...
If i use say <pre>Text='<%# Bind("col1") %>'</pre>
next time time it will be <pre>Text='<%# Bind("col2") %>'</pre> in aspx page. but i cant change it to that when the application runs.
Any solution?
karan joshua
12-Jun-11 4:07am
View
how to do that?
any code help?
My problem is if i use <pre>Text='<%#Eval("col1") %>'</pre> second time it will be col2.
karan joshua
11-Jun-11 4:58am
View
what is RC?
karan joshua
10-Jun-11 8:18am
View
Deleted
<pre>
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
conn = new SqlConnection(ConfigurationManager.ConnectionStrings["conStr"].ConnectionString);
GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex];
// Label lbl = (Label)row.FindControl("lblid");
//TextBox textmarks = (TextBox)row.FindControl("textbox2");
GridView1.EditIndex = -1;
SqlTransaction SQLTransaction = null;
try
{
conn.Open();
SQLTransaction = conn.BeginTransaction();
string textBoxFindingTypeDesc = ((TextBox)row.FindControl("FindingTypeDescTextBox")).Text;
string textBoxFindingText = ((TextBox)row.FindControl("FindingTextBox")).Text;
string textBoxFindingID = ((TextBox)row.FindControl("FindingIDTextBox")).Text;
string textBoxDateTimeStamp = ((TextBox)row.FindControl("DateTimeStampTextBox")).Text;
string textBoxFindingTypeID = ((TextBox)row.FindControl("FindingTypeIDTextBox")).Text;
string textBoxSliceID = ((TextBox)row.FindControl("SliceIDTextBox")).Text;
string textBoxHowToFT = ((TextBox)row.FindControl("HowToFindThisTextBox")).Text;
SqlCommand cmdToFindingType = new SqlCommand("update FindingType set FindingTypeDesc='" + textBoxFindingTypeDesc + "' where FindingTypeID='" + Convert.ToInt32(textBoxFindingTypeID) + "'", conn,SQLTransaction);
cmdToFindingType.CommandTimeout = 6000;
SqlCommand cmdToFinding = new SqlCommand("update Finding set DateTimeStamp='" + Convert.ToDateTime(textBoxDateTimeStamp) + "',FindingText='" + textBoxFindingText + "',SliceID='" + textBoxSliceID + "',HowToFindThis='" + textBoxHowToFT + "' where FindingID='" + Convert.ToInt32(textBoxFindingID) + "'", conn, SQLTransaction);// SELECT @@IDENTITY";
cmdToFinding.CommandTimeout = 6000;
int numToFindingType = cmdToFindingType.ExecuteNonQuery();
cmdToFinding.CommandTimeout = 6000;
if (numToFindingType != 0)
{
int numToFinding = cmdToFinding.ExecuteNonQuery();
cmdToFinding.CommandTimeout = 6000;
if (numToFinding != 0)
{
BindGrid();
//string script = "<script type='text/javascript'>alert('The Finding data is successfully updated..');</script>";
//Page page = HttpContext.Current.CurrentHandler as Page;
//if (!(page.ClientScript.IsClientScriptBlockRegistered("alert")))
//{
// page.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", script);
//}
}
}
}
catch(Exception ex)
{
if (SQLTransaction == null)
SQLTransaction.Rollback();
Label4.Text = ex.Message;
string script = "<script type='text/javascript'>alert('ERROR!!!!!Problem in Updating the selected row....');</script>";
Page page = HttpContext.Current.CurrentHandler as Page;
if (!(page.ClientScript.IsClientScriptBlockRegistered("alert")))
{
page.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", script);
}
}
finally
{
conn.Close();
}
</pre>
karan joshua
10-Jun-11 8:10am
View
Deleted
all other command are working properly like insert delete,,, when i use gridview and do edit and update there is a problem
karan joshua
10-Jun-11 8:01am
View
Deleted
i am using sql server 2005,
i tried but not working still,,
i set cmdTToAdd.CommandTimeout = 6000;
karan joshua
10-Jun-11 7:58am
View
i am using sql server 2005,
i tried but not working still,,
i set cmdTToAdd.CommandTimeout = 6000;
karan joshua
8-Jun-11 10:51am
View
thank u it works...
karan joshua
8-Jun-11 6:46am
View
i tried this method but doesn't worked for me,... thank u very much for your response...
karan joshua
8-Jun-11 6:45am
View
thank u very much ....it works... My 5
karan joshua
7-Jun-11 6:32am
View
Thanks to every one..
karan joshua
3-Jun-11 3:09am
View
why Reposting....? Be specific in asking question...
karan joshua
2-Jun-11 12:24pm
View
thank you sir,,,,I followed all your steps... but still not working,
my issue is that when i put 3 buttons on master page that should be available in addPage.aspx so that i need not put the 3 buttons once again in addpage.aspx,,,
It should be like left side will be having buttons(content1) and when user clicks button,, right side corresponding page should be displayed(content2)... same design should be there in all other pages..
karan joshua
2-Jun-11 10:06am
View
check it again by removing all private specifier....
karan joshua
2-Jun-11 10:04am
View
Deleted
copy your code ....
karan joshua
2-Jun-11 10:02am
View
Deleted
yes check whether it is selecting any rows from the database using reader...
karan joshua
2-Jun-11 10:00am
View
Deleted
then check with the database connection... check whether it is connecting to the database?
copy your updated code ...
karan joshua
1-Jun-11 7:16am
View
where you opened the file?
karan joshua
1-Jun-11 6:38am
View
yes well said by Hemant-sharma....
karan joshua
1-Jun-11 6:34am
View
your most welcome......
karan joshua
31-May-11 10:10am
View
yes this is the code conversion from C#.net to vb.net...
My 5...
This will definitely help you...
karan joshua
31-May-11 10:04am
View
Deleted
My 5...good answer... to solve this first you have to close the reader that is already opened by rdr.close()
then use second reader...
or else
follow the steps suggested by Mr.S Mewara
karan joshua
31-May-11 9:59am
View
i think he would like to tell about button1_load event.....
karan joshua
30-May-11 4:53am
View
thank u...
karan joshua
30-May-11 4:53am
View
thank u....
karan joshua
30-May-11 4:14am
View
thank u...turning off firewall will be a problem....means security is not ensured?
and is there any issue with database connection...?
karan joshua
30-May-11 4:10am
View
thank u....Is there any other issue that may come across while accessing?
karan joshua
24-May-11 14:06pm
View
ok .. thank you very much..
karan joshua
23-May-11 5:07am
View
thank u for your solution sir... I got the problem cleared....
karan joshua
23-May-11 5:04am
View
good job sir... u have provided with the essential link...
Finally i got it... your tutorial was very helpful...
struggling for 5 days with this problem...
Thank u sir...
THANK U..THANK U..THANK U..THANK U..THANK U..THANK U..THANK U..
THANK U..THANK U..THANK U..THANK U..THANK U..THANK U..
THANK U..
THANK U..
THANK U..
karan joshua
23-May-11 4:48am
View
ya i have installed after installing VS.net
karan joshua
22-May-11 13:34pm
View
actualy i have used table itself but still not working....
karan joshua
22-May-11 13:22pm
View
i didnt get your solution...?
karan joshua
22-May-11 13:16pm
View
nice solution..is there any property of content1 i can use there instead of table...
karan joshua
21-May-11 9:12am
View
<asp:Content ID="Content1" ContentPlaceHolderID="ButtonContentPlaceHolder" Runat="Server">
<br />
<table border="3" style="border-color:Teal">
<tr>
<td>
<asp:Button ID="AddStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" OnClick="AddStudyButton_Click" Text="Add Study" Width="119px" /><br />
<br />
<asp:Button ID="EditStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Edit Study" Width="119px" OnClick="EditStudyButton_Click" /><br />
<br />
<asp:Button ID="DeletestudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Delete" Width="119px" OnClick="DeletestudyButton_Click" ToolTip="click here to delete study..." /><br />
<br />
<asp:Button ID="ViewStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="View Study" Width="119px" OnClick="ViewStudyButton_Click" /><br />
<br />
<asp:Button ID="HelpButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="Help" Width="119px" OnClick="HelpButton_Click" /><br />
<br />
<asp:Button ID="AboutUsButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="About Us" Width="119px" OnClick="AboutUsButton_Click" /><br />
<br />
</td>
</tr>
</table>
karan joshua
21-May-11 9:12am
View
<asp:Content ID="Content1" ContentPlaceHolderID="ButtonContentPlaceHolder" Runat="Server">
<br />
<table border="3" style="border-color:Teal">
<tr>
<td>
<asp:Button ID="AddStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" OnClick="AddStudyButton_Click" Text="Add Study" Width="119px" /><br />
<br />
<asp:Button ID="EditStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Edit Study" Width="119px" OnClick="EditStudyButton_Click" /><br />
<br />
<asp:Button ID="DeletestudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="Delete" Width="119px" OnClick="DeletestudyButton_Click" ToolTip="click here to delete study..." /><br />
<br />
<asp:Button ID="ViewStudyButton" runat="server" Font-Bold="True" Font-Size="Large"
ForeColor="Blue" Text="View Study" Width="119px" OnClick="ViewStudyButton_Click" /><br />
<br />
<asp:Button ID="HelpButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="Help" Width="119px" OnClick="HelpButton_Click" /><br />
<br />
<asp:Button ID="AboutUsButton" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text="About Us" Width="119px" OnClick="AboutUsButton_Click" /><br />
<br />
</td>
</tr>
</table>
karan joshua
21-May-11 4:27am
View
still not working
karan joshua
21-May-11 4:12am
View
actually i dont want to provide user id and password.. It is open access..
It is giving error like:Login Failed To KARAN\ASPNET
karan joshua
21-May-11 4:06am
View
It will still give exception like:Login Failed to KARAN\ASPNET
karan joshua
21-May-11 0:52am
View
if (!IsPostBack)
{
SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["conStr"].ConnectionString);
SqlDataReader rdr = null;
SqlDataReader rdr1 = null;
try
{
SqlCommand commandToItemTable = new SqlCommand("select StudyTypeDesc from ItemTable", connection);
SqlCommand commandToItemTable1 = new SqlCommand("select * from ItemTable1", connection);
connection.Open();
rdr = commandToItemTable.ExecuteReader();
while (rdr.Read())
{
StudyTypeDescDropDownList.Items.Add(rdr.GetString(0));
}
rdr.Close();
rdr1 = commandToItemTable1.ExecuteReader();
while (rdr1.Read())
{
ModalityNameDropDownList.Items.Add(rdr1.GetString(0));
}
rdr1.Close();
}
catch(NullReferenceException)
{
rdr.Close();
string script = "<script type='text/javascript'>alert('ERROR!!!!Connection with database failed...........');</script>";
Page page = HttpContext.Current.CurrentHandler as Page;
if (!(page.ClientScript.IsClientScriptBlockRegistered("alert")))
{
page.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", script);
}
}
catch (Exception ex)
{
rdr.Close();<-------------------------------showing here error
string script = "<script type='text/javascript'>alert('ERROR!!!!Data Not found ...........');</script>";
Page page = HttpContext.Current.CurrentHandler as Page;
if (!(page.ClientScript.IsClientScriptBlockRegistered("alert")))
{
page.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", script);
}
}
finally
{
connection.Close();
}
Even i remove rdr.close() from catch block it will show that script MessageBox.. saying data Not found..
karan joshua
21-May-11 0:45am
View
Deleted
same machine i have instaled sql..
and when i run on IIS all the page say help page it will show... But database related page won't show...
karan joshua
20-May-11 13:18pm
View
Deleted
i have granted permission...still not working..
karan joshua
20-May-11 13:10pm
View
Server Error in '/WebSetup1' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 101: {
Line 102:
Line 103: rdr.Close();
Line 104:
Line 105: string script = "<script type='text/javascript'>alert('ERROR!!!!Data Not found ...........');</script>";
Source File: c:\Inetpub\wwwroot\WebSetup1\AddStudy.aspx.cs Line: 103
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
AddStudy.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebSetup1\AddStudy.aspx.cs:103
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3620; ASP.NET Version:2.0.50727.3618
karan joshua
20-May-11 12:41pm
View
still not working...same problem...
karan joshua
19-May-11 8:42am
View
k thank very much....
karan joshua
19-May-11 8:16am
View
stepwise explaination was very good...I have followed your steps...but when i do all these steps and check there the "Show hidden files and folders" option it is disabled once again...
karan joshua
19-May-11 7:07am
View
k thank u....
karan joshua
18-May-11 10:20am
View
<input id="Button2" önclick="w_displayDatePicker('ctl00_MainContentPlaceHolder_555')" style="font-weight: bolder; color: olive" type="button" value="Calender" />
Thank u very much now it is working......
karan joshua
18-May-11 9:11am
View
calender is working but it is not displayin the date in text box.....
karan joshua
18-May-11 8:44am
View
i want to call inside the asp:content control in child master page....
karan joshua
18-May-11 2:24am
View
Is it possible to add existing aspx page to multiview beacause the aspx page also contains javascript function that will display calender....
karan joshua
18-May-11 1:59am
View
thank u very much...
karan joshua
17-May-11 13:05pm
View
it is giving error..
karan joshua
17-May-11 10:00am
View
thank u John simmons.......
karan joshua
17-May-11 9:37am
View
thank u... very clear answer..
karan joshua
16-May-11 8:45am
View
protected void DeleteButton_Click(object sender, EventArgs e)
{
if(System.Windows.Forms.MessageBox.Show("Are You Sure you want to delete this Study?","Confirm Delete",System.Windows.Forms.MessageBoxButtons.YesNo,
System.Windows.Forms.MessageBoxIcon.Question)==(System.Windows.Forms.DialogResult.Yes))
{
}
}
karan joshua
16-May-11 8:42am
View
how to get yes no confirmation using this/
it should be like:
when the button is clicked : a yes no confirmation shuld be asked..
if yes
then do this
how to go for it?
karan joshua
13-May-11 11:10am
View
yes zeeroCool u r correct... .... actually it is working fine now...
one simple coding mistake that is i have written st.Rollback(); directly instead of :if(st==null)
st.Rollback();
but i got code like st!=null then st.rollback(); from net .. actuly it is wrong ...it should be
if(st==null)
st.Rollback();
thank u very much for your patience...
thank u...thank u...thank u...thank u...thank u...
karan joshua
13-May-11 11:09am
View
yes marc u r correct... m wrong .... actually it is working fine now...
one simple coding mistake that is i have written st.Rollback(); directly instead of :if(st==null)
st.Rollback();
but i got code like st!=null then st.rollback(); from net .. actuly it is wrong ...it should be
if(st==null)
st.Rollback();
thank u very much for your patience...
thank u...thank u...thank u...thank u...thank u...
karan joshua
13-May-11 10:14am
View
k .. Is there any way to catch all standatd exception?
karan joshua
13-May-11 10:06am
View
why it is going to catch block when there is no exception?
k thank u...
tell me this...
catch
{
if(st!=null)
st.Rollback();
}
Is it st!=null or st==null?
karan joshua
13-May-11 10:02am
View
It works... but i want to catch all exception...there r many exception ...Can we write catch block for every exception?
karan joshua
13-May-11 9:47am
View
it is giving like :This SqlTransaction has completed; it is no longer usable.it is showing near :
catch(Exception)
{
st.Rollback();<-------------here
connection.Close();
}
why it is so? when there is no exception in inserting the record to the DB why it is showing that error...
karan joshua
13-May-11 9:28am
View
try
{
connection.Open();
st = connection.BeginTransaction();
commandToFinding = new SqlCommand(sqlqueryToFinding, connection,st);
if (numToFinding != 0)
{
st.Commit();
Response.Redirect("AddStudy.aspx?stid=" + StudyIDTextBox.Text);
connection.Close();
}
}
catch(Exception)
{
st.Rollback();
connection.Close();
}
now it is giving error like InvalidperationException was unhandled by user code..
wht is the problem?
karan joshua
13-May-11 9:24am
View
try
{
connection.Open();
st = connection.BeginTransaction();
commandToFinding = new SqlCommand(sqlqueryToFinding, connection,st);
if (numToFinding != 0)
{
st.Commit();
Response.Redirect("AddStudy.aspx?stid=" + StudyIDTextBox.Text);
connection.Close();
}
}
catch(Exception)
{
st.Rollback();
connection.Close();
}
now it is giving error like InvalidperationException was unhandled by user code..
wht is the problem?
karan joshua
12-May-11 12:53pm
View
Deleted
any solution for this?
karan joshua
12-May-11 8:36am
View
thank u...
karan joshua
12-May-11 8:36am
View
thank u...
karan joshua
12-May-11 6:23am
View
Deleted
i tried .. but not working... anything related to refresh the table is required...?
karan joshua
12-May-11 5:03am
View
Deleted
how to do that?
karan joshua
12-May-11 3:36am
View
It is also working sir... thank u very much...
karan joshua
12-May-11 3:34am
View
k sir it works now..
i have added:
StudyIDTextBoxDropDownList.Items.Clear();
when the page_load occurs
thank u sir....
karan joshua
12-May-11 3:30am
View
<asp:DropDownList ID="StudyIDTextBoxDropDownList" runat="server" Font-Bold="True" AutoPostBack="true"
Font-Size="Large" ForeColor="Black" Height="23px"
Width="198px" OnSelectedIndexChanged="StudyIDTextBoxDropDownList_SelectedIndexChanged" >
<asp:ListItem Value="-1" Selected="True">Select
karan joshua
12-May-11 3:23am
View
thank u sir... It works
one more question:
when i SelectedIndexChanged occurs whatever items there in dropdownlist is added again to DDL..
i.e. if initially 4 items were there on 1 event 8 items will be added then one more event 12 etc
wht s the problem..?
regards
karan
karan joshua
10-May-11 4:48am
View
how to do that?
karan joshua
10-May-11 1:42am
View
oh thank u...
always helpful ...
and always code working correctly
thank u very much SIR....
once again thank u...
karan joshua
9-May-11 10:52am
View
Deleted
yes...two tables r linked using foreign key..
karan joshua
9-May-11 7:58am
View
oh great...
I wasted 4hrs to do this..
Thank U.. Thank U.. Thank U.. Thank U.. Thank U.. Thank U.. Thank U.. Thank U.. Thank U..
thank u very much
my vote is 5/5...thank u once again
karan joshua
9-May-11 7:48am
View
Deleted
what is that Text='<%#Eval("name") %>'.. it will display with no values in text box.. but it will display the time then all other four text box are blank..
karan joshua
9-May-11 7:13am
View
textbox is present inside the gridview..
karan joshua
9-May-11 7:13am
View
Deleted
It is giving error:
Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.GridView'
karan joshua
9-May-11 4:43am
View
no
karan joshua
9-May-11 4:21am
View
it is true only..
karan joshua
9-May-11 4:14am
View
Is the statement:
e.Row.Cells[0].Text = (rdr.GetDateTime(0)).ToString();
is correct to fill the datagrid column?
karan joshua
9-May-11 4:06am
View
datagrid is not visible at all during run time...have set visible proprty of DG true..
karan joshua
9-May-11 3:54am
View
is it possible to fill the textbox using bindgrid() method.. i have to fill those 5 text boxes with the data from the database
karan joshua
9-May-11 3:51am
View
if i try to call this in page load it will give an error message saying invalid argument e.
karan joshua
9-May-11 3:50am
View
ya it will return one row...
karan joshua
9-May-11 3:14am
View
thank u....
wht is the event GridView1_RowDataBound();
when it occcurs?
whether when :the data is bound to the gridview from the database?
karan joshua
9-May-11 1:53am
View
k thank u very much..
It works..
but how i can add values...say i want to fill textbox1 with datetime.now() when the page load event occurs..i tried but textbox1 is not accesible ... and how to fill the textbox2,3,4 with database values when the page_load event occurs.
karan joshua
7-May-11 7:41am
View
Deleted
how i can set the width of frame1 to 20% of the browser window and second frame to 80% of the browser window. also height of frame1 and frame2 to 100%
Do u have any idea?
i tried but is not covering complete window size ..
plz help me...
karan joshua
7-May-11 7:26am
View
thank u.. it works...
karan joshua
7-May-11 1:03am
View
OH THANK U VERY MUCH PMITHUN...
karan joshua
5-May-11 11:11am
View
thank u S mewara..
karan joshua
4-May-11 13:19pm
View
k thank u.
karan joshua
3-May-11 1:34am
View
thank u ashishmanu and s Mewara...
It works...
Thank u once again
karan joshua
27-Apr-11 1:23am
View
thank u very much....
we have calender control in asp.net 2005...but this is not resizable...So i thought there is some other way...so i prefered javascript...But i dnt knw javascript thats why i askd..
sorry for disturbance...
regrads
karan
karan joshua
27-Apr-11 1:18am
View
thank u very much,very useful information i got from these links.
Thank u once again..
karan joshua
27-Apr-11 1:17am
View
Deleted
thank u very useful information i got from these links.
Thank u once again..
karan joshua
27-Apr-11 1:10am
View
this code is working .. but the alert message will not be displayed .. it will automatically redirect to another page without giving alert message.
Code suggested by OriginalGrif is working correctly...
Thank u...
karan joshua
25-Apr-11 6:48am
View
k thank you very much...
karan joshua
25-Apr-11 6:13am
View
sorry fo disturbance....
Do u knw hw to display crystal report vertically?
I am using sql server 2005 and visual studio 2005 and asp.net platform and C#.
I have a table in database that contains say 3 columns say name,regno,mark1
Nw whn i use crystal report and drag these fields into crystal report it is displaying horizontally like :
name: regno: mark1:
karan 55 88
But i want to display like as follows:
name:
karan
regno:
55
mark1
88
can u help me plz.......
karan joshua
25-Apr-11 6:03am
View
Yes it is working ..Thank u...
I was strugling with this..
Once again thank u very much...
regards
Karan
karan joshua
25-Apr-11 5:10am
View
k thank u very much for ur reply....
thanks again
karan joshua
21-Apr-11 2:02am
View
Thank u for reply and detail explaination... But didnt find answer for my question...
Actuly it is displaying like:
name: role: image: DOB:
abc Admin Displays image here 12/09/1986
But i want to display vertically something like:
name:
abc
role:
admin
image:
displays image here
DOB:
12/09/1986
Can U give solution...?
Plz help me..
Thank u again..
karan joshua
19-Apr-11 7:36am
View
And my problem is that calender control takes lot of space in web page..I have to minimize that. only when the user clicks on that the drop down calender shuld be displayed otherwise not, so i can save space in my web page.
thank u again
karan
karan joshua
19-Apr-11 7:34am
View
Yes gud solution. thank u very much.
But i am using visual studio 2005. In that date time picker is not available. only calender control is available.
Can u help me...
thanks again
karan
Show More