
protected
void Page_Load(object sender, EventArgs e)
{
Form.Controls.Add(
new Telerik.Web.UI.RadStyleSheetManager());
}
in web.config
<
httpHandlers>
<
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
</
httpHandlers>
It's combining css request well, but not js request. Please help me out if i am missing something or not using RadStyleSheetManager properly.
Also can i use this setting for whole application. Can i combine our local css into this request?
Kindly reply ASAP.
Regards
Devanand Jha
DataValueField
In order to populate that value correctly not theDataKeyField
| Dim js As String |
| js = _ |
| " var promptpromptComments=prompt(Validation failed, still want to proceed','Comments...');" & _ |
| " if(promptComments!=null && promptComments!='')" & _ |
| " {" & _ |
| " document.getElementById('<% InsertRecord.ClientID %>').click;" & _ |
| " document.getElementById('InsertCmtsHdnFld').value=promptComments;" & _ |
| " } " & _ |
| " else" & _ |
| " {" & _ |
| " alert('insert has been terminated');" & _ |
| " }" |
| ScriptManager.RegisterStartupScript(Me, GetType(Page), "PromptScript", js, True) |
ALTER PROCEDURE [dbo].[spGetName]
@prodID as nvarchar(50)
AS
BEGIN
Declare @invoiceID as Nvarchar(50)
Set @invoiceID = Replace(replace(Replace(replace(CONVERT(Nvarchar(50),Getdate(),120),'-',''),' ' ,''),':',''),'.','')
Insert into dbo.Invoice(invoiceID,ProdID) values(@invoiceID,@prodID)
Return @invoiceID
END
Shared Function Invoice(ByVal prodID As String) As String
Dim Invoice As String
Using sqlcmd As New SqlCommand("spGetName", getConn)
sqlcmd.CommandType = Data.CommandType.StoredProcedure
sqlcmd.Parameters.Add(New SqlParameter("@prodID", SqlDbType.NVarChar, 50)).Value = prodID
Invoice = sqlcmd.Parameters.Add(New SqlParameter("@Return_Value", SqlDbType.NVarChar, 50)).Direction = ParameterDirection.ReturnValue
sqlcmd.ExecuteNonQuery()
End Using
getConn.Close()
Return Invoice
End Function