|
Hi Kavi:
The solution is that you should do this by dividing big task into small tasks...first you know how to design GUI? Know how to read data from DB?....And ask the specific questions here
<< >>
|
|
|
|
|
Divide the problem in three parts GUI,Business and database layer
crate one after another First try yourself any problem arrives then ask
|
|
|
|
|
hai,
i want to develope asp.net web project.any tools to design the project specs,Preparing DSD,screen shots.
Thanks and regards
surendra
|
|
|
|
|
Hi..
I am devoloping one site in which i want to code such way that one user can send mail to other user. Is it possibel???
I got 30 mail id from our isp provider can i use it??
How should i use this?? plese give in detail.
(Asp.net and c#)
Thanks in advance...
girish donde
|
|
|
|
|
Hi there:
Yes it's possible...using this namespace System.Web.Mail
<< >>
|
|
|
|
|
you can use MailMessage object in System.mail namespace...
JO
|
|
|
|
|
Hi all,
I have a problem with my datagrid. i have created three template columns in my datagrid but i cant access the column contents in code behind. I used
Allot_Grid.SelectedItem.Cells[1].Text to access the first col of the grid but it returns null.
Help!!!
|
|
|
|
|
Hi use
Allot_Grid.SelectedItem.FindControl("controlId")
you must be using some control inside your TemplateColumn. The above code will give you the reference to the control as an object. You have to typecast it to the control and then use can use the properties of the control.
Thanks,
Pradipta Basu
|
|
|
|
|
Dear all'
I have an ASP.Net page where i create dynamic asp table and inside it i create dropdpwnlist, i want to retrieve the values of the dropdownlist when i press the submit button
Could any one help me ????
|
|
|
|
|
Hi there:
You have to re-bind dropdownlist when posting back...
<< >>
|
|
|
|
|
Hi All,
Can someone give me help in sorting GridView.I need to sort the GirdView the up and down image.I have done this in C# in my pervious project but now I want to do it in VB. But its not working.Can any one convert this code in VB which should be working???
Please Help me...Thanks in advance.
public static void GetSort(System.Web.UI.WebControls.DataGrid dgGrid,System.Data.DataTable ds,string sortExpr)
{
//Sorts the DataGrid
DataView dv = new DataView(ds);
for(int i=0; i<dgGrid.Columns.Count; i++)
{
if (dgGrid.Columns[i].HeaderText.Trim().Length > 0 && dgGrid.Columns[i].Visible == true)
{
int index = dgGrid.Columns[i].HeaderText.IndexOf("<img");
if (dgGrid.Columns[i].SortExpression == sortExpr && dgGrid.Columns[i].SortExpression.Length > 0)
{
if (index >= 0) // Already sorted
{
int index1 = dgGrid.Columns[i].HeaderText.IndexOf("bar_down.gif");
if (index1 >= 0)
{
// sort Asc
dgGrid.Columns[i].HeaderText = dgGrid.Columns[i].HeaderText.Substring(0,index);
dgGrid.Columns[i].HeaderText += "<img src=../Images/bar_up.gif height=13 width=13 border=0>";
dv.Sort = sortExpr+ " ASC ";
}
else
{
// sort Desc
dgGrid.Columns[i].HeaderText = dgGrid.Columns[i].HeaderText.Substring(0,index);
dgGrid.Columns[i].HeaderText += "<img src=../Images/bar_down.gif height=13 width=13 border=0>";
dv.Sort = sortExpr+ " DESC";
}
}
else
{
dgGrid.Columns[i].HeaderText += "<img src=../Images/bar_up.gif height=13 width=13 border=0>";
dv.Sort = sortExpr + " ASC";
}
}
else
{
if (index >=0)
{
dgGrid.Columns[i].HeaderText = dgGrid.Columns[i].HeaderText.Substring(0,index);
}
}
}
}
dgGrid.DataSource = dv;
dgGrid.DataBind();
}
}
|
|
|
|
|
Public Shared Sub GetSort(ByVal dgGrid As System.Web.UI.WebControls.DataGrid, ByVal ds As System.Data.DataTable, ByVal sortExpr As String) <br />
Dim dv As DataView = New DataView(ds) <br />
Dim i As Integer = 0 <br />
While i < dgGrid.Columns.Count <br />
If dgGrid.Columns(i).HeaderText.Trim.Length > 0 AndAlso dgGrid.Columns(i).Visible = True Then <br />
Dim index As Integer = dgGrid.Columns(i).HeaderText.IndexOf("<img") <br />
If dgGrid.Columns(i).SortExpression = sortExpr AndAlso dgGrid.Columns(i).SortExpression.Length > 0 Then <br />
If index >= 0 Then <br />
Dim index1 As Integer = dgGrid.Columns(i).HeaderText.IndexOf("bar_down.gif") <br />
If index1 >= 0 Then <br />
dgGrid.Columns(i).HeaderText = dgGrid.Columns(i).HeaderText.Substring(0, index) <br />
dgGrid.Columns(i).HeaderText += "<img src=../Images/bar_up.gif height=13 width=13 border=0>" <br />
dv.Sort = sortExpr + " ASC " <br />
Else <br />
dgGrid.Columns(i).HeaderText = dgGrid.Columns(i).HeaderText.Substring(0, index) <br />
dgGrid.Columns(i).HeaderText += "<img src=../Images/bar_down.gif height=13 width=13 border=0>" <br />
dv.Sort = sortExpr + " DESC" <br />
End If <br />
Else <br />
dgGrid.Columns(i).HeaderText += "<img src=../Images/bar_up.gif height=13 width=13 border=0>" <br />
dv.Sort = sortExpr + " ASC" <br />
End If <br />
Else <br />
If index >= 0 Then <br />
dgGrid.Columns(i).HeaderText = dgGrid.Columns(i).HeaderText.Substring(0, index) <br />
End If <br />
End If <br />
End If <br />
System.Math.Min(System.Threading.Interlocked.Increment(i),i-1) <br />
End While <br />
dgGrid.DataSource = dv <br />
dgGrid.DataBind <br />
End Sub
|
|
|
|
|
Hi,
Its not working I am getting the header as UserCode<img src=../Images/bar_up.gif height=13 width=13 border=0>
but I want the image there with UserCode.
Please help.
Thanks in advance...
|
|
|
|
|
Hi varshav,
This might work for u.
Public Shared Sub GetSort(ByVal dgGrid As System.Web.UI.WebControls.DataGrid, ByVal ds As System.Data.DataTable, ByVal sortExpr As String)
'Sorts the DataGrid
Dim dv As DataView = New DataView(ds)
Dim i As Integer = 0
Do While (i < dgGrid.Columns.Count)
If ((dgGrid.Columns(i).HeaderText.Trim.Length > 0) _
AndAlso (dgGrid.Columns(i).Visible = true)) Then
Dim index As Integer = dgGrid.Columns(i).HeaderText.IndexOf("<img")
if="" ((dggrid.columns(i).sortexpression="sortExpr)" _
="" andalso="" (dggrid.columns(i).sortexpression.length=""> 0)) Then
If (index >= 0) Then
Dim index1 As Integer = dgGrid.Columns(i).HeaderText.IndexOf("bar_down.gif")
If (index1 >= 0) Then
' sort Asc
dgGrid.Columns(i).HeaderText = dgGrid.Columns(i).HeaderText.Substring(0, index)
dgGrid.Columns(i).HeaderText = (dgGrid.Columns(i).HeaderText + "")
dv.Sort = (sortExpr + " ASC ")
Else
' sort Desc
dgGrid.Columns(i).HeaderText = dgGrid.Columns(i).HeaderText.Substring(0, index)
dgGrid.Columns(i).HeaderText = (dgGrid.Columns(i).HeaderText + "")
dv.Sort = (sortExpr + " DESC")
End If
Else
dgGrid.Columns(i).HeaderText = (dgGrid.Columns(i).HeaderText + "")
dv.Sort = (sortExpr + " ASC")
End If
ElseIf (index >= 0) Then
dgGrid.Columns(i).HeaderText = dgGrid.Columns(i).HeaderText.Substring(0, index)
End If
End If
i = (i + 1)
Loop
dgGrid.DataSource = dv
dgGrid.DataBind
End Sub
|
|
|
|
|
Hi,
Its not working I am getting the header as UserCode<img src=../Images/bar_up.gif height=13 width=13 border=0>
but I want the image there with Header Text.
Please help.
Thanks in advance...
|
|
|
|
|
I'm busy creating a report with Web Developer Express and the Reporting Add-In. Can anyone help me to add a tab-space to a textbox on a report. I've looked for a solution for a couple of hours now and can't seem to find anything that works.
Thank you.
|
|
|
|
|
textbox1.text += textbox1.text +"\t";
|
|
|
|
|
That doesn't work, this is a .rdlc report, not a normal aspx web form. Escape characters does not seem to work on these reports.
|
|
|
|
|
i created the Dataset and i configured the TableAdapter inside the dataset,i have 4 tableAdapter in 1 DataSet so i need to access those tableAdapter's method(Im using BisnessObject class for access that DataSet),i have shown bellow how do i access that DataSet)
DAO.SampleTableAdapter.sample s=new SampleTableAdapter.sample();
DAO.SampleDataSet.sample ds=new SampleDataSet.sample();
Report.sampleReport r=new Report.sampleReport();
r.setDataSource(s.GetMethodName());
return r;
Like this i can access one TableAdapter in one DataSet,but if i have more TableAdapter in 1 DataSet how can access each TableAdapters.
|
|
|
|
|
I have alredy created a report, where report shows basic information for whole customer. Like
CustID CustName
2 ABC
3 ABD
wot I would like to do is, when I will click any CustID then another page will come where I want see the CustID.
N:B: Im using Microsoft Reporting Service not Crystal Report
Thanks
Sarfarj Ahmed
|
|
|
|
|
Hi Sarfaraj
Are you getting Customer info from data base then put your custId in session and retrive the value from seesion in next page then call the database for getting his Info using that custID or
If you want to access database only once then create a class (datacontainer )in which you should have all private varibles and public properties of customer Info Pupulate this value once then you can use throught the session
|
|
|
|
|
Hi Sandeep
Thanks for your Email, Could you please send me an Example. Im getting Customer Information from Database.
Sarfarj Ahmed
|
|
|
|
|
Do you need to show the data many other page of this costomer ? please reply me so that i can try to give you best solution
|
|
|
|
|
Hi Sandeep
Thanks for ur mail. Yes I need show this CustID on many other page.
Thanks
Sarfarj Ahmed
|
|
|
|
|
Hi Sarfaraj
Do one thing when you are getting CustId from the user call all the info from database which you need in other pages also. So i will better to call one once to database and store them on one object of datacontainer i.e
create one class having private varibles and public properties ........
these varaibles will contain your customer info like
private string _custName
public string CustName
{
set
{ _custName=value; }
get
{ return _custName; }
}
i think this is better way to store values if you want to store more than one custmer info then create collection(list) of that object. i think this will help you
|
|
|
|