Hi shameel, this will not work . priority for same designation is different for different customer type
Anish Gopi
Posts
-
Stored Procedure to find emails -
Data Access application Block with support to asp.net 3.5Use Microsoft Enterprise Library 4.0 – May 2008. This version supports .NET famework 3.5 Download link : http://www.microsoft.com/downloads/details.aspx?familyid=90de37e0-7b42-4044-99be-f8ecfbbc5b65[^]
-
Data inserted once again after Refreshing the browserRedirect to the same page using Response.Redirect() once you have successfully enter the data. This will prevent the refreshing in performing a postback.
-
Validators are not working in liveCheckout if you have any Custom HTTPModule that interfering with WebResource.axd handler
-
label viewstate not preservedCheck your label for following scenarios : 1. Is the property EnableViewState is set to false for the label control or its parent control 2. Is the control is being dynamically added to your page. if yes recreate the control on "Init" 3. Binding a "Null" or "Empty" value to label on postbacks
-
How to hide label ?On Client side Labels are render as "SPAN" tag. So write a javascript method which set an empty string to the control on your button click
function clearControls()
{
var ctrl = document.getElementById('labelname');
if (ctrl != null)
{
ctrl.innerHTML = '';
}
}Call the above method on button click
It would be great if you turn off the ViewStatate for this particular labe1.
-
Showing PPT in WebpageThnaks for your response. To use ZOHO show we need to create presentations using this application . In our case the users are creataing application using Microsoft Power Point . ZOHO is not free for commercial use :(( .
-
Configuration problem in web.configHai, In webconfig file remove 'xmlns' attribute from configuration Tag . <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> </configuration>
-
Using javascript confirmation box in gridviewHai Sandeep,
_ctrlName_.Attributes.Add("onClick","JavaScript:return confirm('Are you sure');");
-
To change the size of the textboxes in a datagrid that is in edit modeHai Mayl, Try to use Templated Coloums so that you can have a better control over the cell controls.
-
too many arguments on Boolean funtionHai, The error is self explanatory Your function declaration contain only one argument
Private Function checkNumber(ByVal intQNbr As Integer) As Boolean
but you are trying to call this function with two argumentsCall checkNumber(intQueNumber, **bolfound**)
The call must be like this bolfound = checkNumber(intQueNumber) -
web.config fileHai, When ever you update Webconfig file your webapplication will restart.
-
Page InheritanceHai, I will be better to keep the method in a seperate class file. Eg:
classs Utilities
{
public static void doCommonJob()
{
}
}or create a custom page class with this function implemnted. Then make all pages you need to call this fucntion inherit from this class eg:
classs MyBasePage : Page
{
public void doCommonJob()
{
}
}classs MyPage : MyBasePage{}
-
two relation Drop down listLovelyHelp wrote:
cmdSelect2 = New SqlCommand("SELECT link_titleid, link_title, t_linkTitle.link_chapterid, t_linkChapter.link_chapterid FROM t_linkTitle LEFT JOIN t_linkChapter ON t_linkChapter.link_chapterid = t_linkTitle.link_titleid", myConnection) dr2 = cmdSelect2.ExecuteReader()
you are joining
t_linkChapter.link_chapterid = t_linkTitle.link_titleid
but what you need ist_linkChapter.link_chapterid = t_linkTitle.link_chapterid
Try out this Code Set ddlLessonAutoPostBack
property to True. Which will fireddlLesson_SelectedIndexChanged
When ever user select a new TitlePrivate Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
LoadChapters()
LoadTitle()
End If
End SubPrivate Sub ddlLesson\_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged 'Load Title when ever a new chapter is selected LoadTitle() End Sub Private Sub LoadChapters() Dim myConnection As SqlConnection Dim cmdSelect As SqlCommand Dim dr As SqlDataReader myConnection = New SqlConnection("server=localhost;UID=;pwd=;database=abc") myConnection.Open() 'call the Chapter item to drop down list cmdSelect = New SqlCommand("select \* from t\_linkChapter", myConnection) dr = cmdSelect.ExecuteReader() ddlLesson.DataSource = dr ddlLesson.DataTextField = "link\_chapter" ddlLesson.DataValueField = "link\_chapterid" ddlLesson.DataBind() dr.Close() myConnection.Close() End Sub Private Sub LoadTitle() Dim myConnection As SqlConnection myConnection = New SqlConnection("server=localhost;UID=;pwd=;database=abc") myConnection.Open() Dim cmdSelect2 As SqlCommand Dim dr2 As SqlDataReader cmdSelect2 = New SqlCommand("SELECT link\_titleid, link\_title FROM t\_linkTitle Where t\_linkTitle.link\_chapterid = " & ddlLesson.SelectedValue, myConnection) dr2 = cmdSelect2.ExecuteReader() ddlTitle.DataSource = dr2 ddlTitle.DataTextField = "link\_title" ddlTitle.DataValueField = "link\_titleid" ddlTitle.DataBind() dr2.Close() myConnection.Close() End Sub
-
put data in arrayCreate array as per your row count
public static Int32[] tcode = new Int32[ds.tables[0].rows.count] ; for(int i=0;i<ds.tables[0].rows.count;i++) { tcode[i] = Convert.ToInt32(ds.Tables[0].Rows[i][0]); }
-
put two field in listboxHai, String Concatenation is quite simple in C# with the use of
+
operator,eg:
string tmp = row["id"] + " ------" + row["name"];We can also do the code with much more redabilty like,
string tmp = string.Format("{0} ----- {1}", row["id"], row["name"]);
-
put two field in listboxHai, Its not possible to bind multiple coloums to ListBox. To do so you need to loop through data and do things manually.
Eg:
foreach(DataRow row in tblUser.Rows)
{
ListItem itm = new ListItem(row["id"] + row["name"], row[id);
listbox.Items.Add(itm);
} -
How to handle events of dynamically created buttons???Hai Try out this one
Private Sub Page_Load
InitPage()
End subWhile working with dynamic controls you need to build controls on each post back. Its better to build dynamic controls in
Page_Init
Private Sub Page_Init ....
InitPage()
End Sub -
problem with radio buttonBy Setting RadioButton1.ID = "Newvalue"; Both the Name and ID value Can be set at Runtime Radio buttons are rendered With in a span Tag in Client Side By setting RadioButton1.Attributes.Add("Name","Value"); We can specefying an Name attribute to SPAN Tag
-
help me...html tableHai vtalau To make a HTML table control accesable at server make it HTML server control
(runat=Server).
Then in code behind 1. To itreate through each cellforeach(HtmlTableRow row in Table1.Rows)
{
foreach(HtmlTableCell cell in row.Cells)
{
Response.Write (cell.InnerText);
}
}2. Explicitly get values from a cell
Table1.Rows[0].Cells[0].InnerText
Hope this will solve your problem Thanks and Regards